@@ -67,23 +65,16 @@ var _ = utils.SIGDescribe("vsphere cloud provider stress [Feature:vsphere]", fun
// if VCP_STRESS_INSTANCES = 12 and VCP_STRESS_ITERATIONS is 10. 12 threads will run in parallel for 10 times.
// Resulting 120 Volumes and POD Creation. Volumes will be provisioned with each different types of Storage Class,
// Each iteration creates PVC, verify PV is provisioned, then creates a pod, verify volume is attached to the node, and then delete the pod and delete pvc.
instancesStr:=os.Getenv("VCP_STRESS_INSTANCES")
Expect(instancesStr).NotTo(BeEmpty(),"ENV VCP_STRESS_INSTANCES is not set")
Expect(instances<=volumesPerNode*len(nodeList.Items)).To(BeTrue(),fmt.Sprintf("Number of Instances should be less or equal: %v",volumesPerNode*len(nodeList.Items)))
Expect(instances>len(scNames)).To(BeTrue(),"VCP_STRESS_INSTANCES should be greater than 3 to utilize all 4 types of storage classes")
iterationStr:=os.Getenv("VCP_STRESS_ITERATIONS")
Expect(instancesStr).NotTo(BeEmpty(),"ENV VCP_STRESS_ITERATIONS is not set")
Expect(clusterDatastore).NotTo(BeEmpty(),"Please set CLUSTER_DATASTORE system environment. eg: export CLUSTER_DATASTORE=<cluster_name>/<datastore_name")