k3s/test/e2e/storage/vsphere
Anusha Ragunathan b13d35caf7 Fix Panic in PersistentVolumes:vsphere
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: Anusha Ragunathan <anusha.ragunathan@docker.com>
2018-09-21 13:46:58 -07:00
..
BUILD e2e test harness - use busybox from dockerhub 2018-08-07 11:22:16 -04:00
bootstrap.go Addressed review comments 2018-02-13 16:59:46 -08:00
config.go removing production code usage from e2e tests code 2018-02-13 10:41:16 -08:00
connection.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
context.go vSphere test infrastructure improvement and new node-unregister test 2018-02-09 12:45:35 -08:00
nodemapper.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
persistent_volumes-vsphere.go Fix Panic in PersistentVolumes:vsphere 2018-09-21 13:46:58 -07:00
pv_reclaimpolicy.go Addressed review comments 2018-02-13 16:59:46 -08:00
pvc_label_selector.go Addressed review comments 2018-02-13 16:59:46 -08:00
vsphere.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
vsphere_common.go Add multi-vc configuration for e2e tests 2018-01-18 15:29:27 -08:00
vsphere_scale.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_statefulsets.go removing production code usage from e2e tests code 2018-02-13 10:41:16 -08:00
vsphere_stress.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_utils.go Merge pull request #61212 from charrywanganthony/duplicated_import 2018-08-14 20:18:00 -07:00
vsphere_volume_cluster_ds.go Adds e2e test for the VMware vpxd restart scenario 2018-03-23 16:49:03 -07:00
vsphere_volume_datastore.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_volume_diskformat.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_volume_disksize.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_volume_fstype.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_volume_master_restart.go Error in return value should be tested and fix Description Info 2018-08-18 10:11:08 +08:00
vsphere_volume_node_delete.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
vsphere_volume_node_poweroff.go Error in return value should be tested and fix Description Info 2018-08-18 10:11:08 +08:00
vsphere_volume_ops_storm.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_volume_perf.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
vsphere_volume_placement.go Adds e2e test for the VMware vpxd restart scenario 2018-03-23 16:49:03 -07:00
vsphere_volume_vpxd_restart.go Addresses review comments 2018-04-09 11:23:58 -07:00
vsphere_volume_vsan_policy.go Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00