• Kubernetes Submit Queue's avatar
    Merge pull request #61738 from ianchakeres/osx-volume-ut-fix · 06e3fefc
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 61452, 61727, 61462, 61692, 61738). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Skip volume unit tests that don't work on osx.
    
    **What this PR does / why we need it**:
    
    `volume/fc` and `volume/rbd` unit tests fail on osx.
    
    ```
    $ pwd
    <snip>/gopath/src/k8s.io/kubernetes/pkg/volume/fc
    $ go test
    --- FAIL: Test_ConstructVolumeSpec (0.00s)
        fc_test.go:450: couldn't fetch mountrefs
        fc_test.go:469: failed to retrieve WWIDs
        fc_test.go:450: couldn't fetch mountrefs
        fc_test.go:469: failed to retrieve WWIDs
    FAIL
    exit status 1
    FAIL    k8s.io/kubernetes/pkg/volume/fc    0.054s
    <snip>
    $ pwd
    <snip>/gopath/src/k8s.io/kubernetes/pkg/volume/rbd
    $ go test
    --- FAIL: TestConstructVolumeSpec (0.00s)
    	rbd_test.go:575: ConstructVolumeSpec failed: directory /var/folders/59/yc7_f4fd53nbyw868zqpk78cn7shx9/T/rbd_test144865306/pods/pod123/volumes/kubernetes.io~rbd/vol is not mounted
    	rbd_test.go:575: ConstructVolumeSpec failed: directory /var/folders/59/yc7_f4fd53nbyw868zqpk78cn7shx9/T/rbd_test144865306/pods/pod123/volumes/kubernetes.io~rbd/vol is not mounted
    FAIL
    exit status 1
    FAIL	k8s.io/kubernetes/pkg/volume/rbd	0.063s
    ```
    
    **Which issue(s) this PR fixes** :
    Fixes #61569 and #61571 
    
    **Special notes for your reviewer**:
    
    To see these unit test fail, you need to run `go test` on an osx machine.
    
    **Release note**:
    ```release-note
    NONE
    ```
    06e3fefc
Name
Last commit
Last update
..
aws_ebs Loading commit data...
azure_dd Loading commit data...
azure_file Loading commit data...
cephfs Loading commit data...
cinder Loading commit data...
configmap Loading commit data...
csi Loading commit data...
downwardapi Loading commit data...
empty_dir Loading commit data...
fc Loading commit data...
flexvolume Loading commit data...
flocker Loading commit data...
gce_pd Loading commit data...
git_repo Loading commit data...
glusterfs Loading commit data...
host_path Loading commit data...
iscsi Loading commit data...
local Loading commit data...
nfs Loading commit data...
photon_pd Loading commit data...
portworx Loading commit data...
projected Loading commit data...
quobyte Loading commit data...
rbd Loading commit data...
scaleio Loading commit data...
secret Loading commit data...
storageos Loading commit data...
testing Loading commit data...
util Loading commit data...
validation Loading commit data...
vsphere_volume Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
metrics_cached.go Loading commit data...
metrics_du.go Loading commit data...
metrics_du_test.go Loading commit data...
metrics_errors.go Loading commit data...
metrics_nil.go Loading commit data...
metrics_nil_test.go Loading commit data...
metrics_statfs.go Loading commit data...
metrics_statfs_test.go Loading commit data...
plugins.go Loading commit data...
plugins_test.go Loading commit data...
volume.go Loading commit data...
volume_linux.go Loading commit data...
volume_unsupported.go Loading commit data...