• Anusha Ragunathan's avatar
    Fix Panic in PersistentVolumes:vsphere · b13d35ca
    Anusha Ragunathan authored
    Bootstrap initializes the necessary vSphere objects before the tests are
    run. A call to Bootstrap was missing in persistent_volumes-vsphere.go's
    BeforeEach. This results in Panic while running e2e tests for 'vsphere'
    provider with a stack trace like this:
    
      	/usr/local/go/src/runtime/panic.go:502 +0x229
      github.com/docker/kube-e2e-image/vendor/k8s.io/kubernetes/test/e2e/storage/vsphere.glob..func1.1()
      	/go/src/github.com/docker/kube-e2e-image/vendor/k8s.io/kubernetes/test/e2e/storage/vsphere/persistent_volumes-vsphere.go:77
    +0xa21
      github.com/docker/kube-e2e-image/vendor/github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync(0xc4217c9b60,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
      	/go/src/github.com/docker/kube-e2e-image/e2e_test.go:88 +0x2c8
      testing.tRunner(0xc4206e01e0, 0x4212900)
      	/usr/local/go/src/testing/testing.go:777 +0xd0
      created by testing.(*T).Run
      	/usr/local/go/src/testing/testing.go:824 +0x2e0
    
    This change fixes the Panic by calling Bootstrap.
    
    Testing:
    After this change, tests with FOCUS set to "PersistentVolumes:vsphere"
     dont Panic. They pass as expected.
    Signed-off-by: 's avatarAnusha Ragunathan <anusha.ragunathan@docker.com>
    b13d35ca
Name
Last commit
Last update
..
drivers Loading commit data...
testpatterns Loading commit data...
testsuites Loading commit data...
utils Loading commit data...
vsphere Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
csi_objects.go Loading commit data...
csi_volumes.go Loading commit data...
empty_dir_wrapper.go Loading commit data...
ephemeral_volume.go Loading commit data...
flexvolume.go Loading commit data...
generic_persistent_volume-disruptive.go Loading commit data...
in_tree_volumes.go Loading commit data...
mounted_volume_resize.go Loading commit data...
nfs_persistent_volume-disruptive.go Loading commit data...
pd.go Loading commit data...
persistent_volumes-gce.go Loading commit data...
persistent_volumes-local.go Loading commit data...
persistent_volumes.go Loading commit data...
pv_protection.go Loading commit data...
pvc_protection.go Loading commit data...
regional_pd.go Loading commit data...
subpath.go Loading commit data...
volume_expand.go Loading commit data...
volume_metrics.go Loading commit data...
volume_provisioning.go Loading commit data...
volumes.go Loading commit data...