By(fmt.Sprintf("%v Verifing the volume: %v is attached to the node VM: %v",logPrefix,persistentvolumes[0].Spec.VsphereVolume.VolumePath,pod.Spec.NodeName))
By(fmt.Sprintf("%v Verifing the volume: %v is attached to the node VM: %v",logPrefix,persistentvolumes[0].Spec.VsphereVolume.VolumePath,pod.Spec.NodeName))
By(fmt.Sprintf("%v Waiting for volume: %v to be detached from the node: %v",logPrefix,persistentvolumes[0].Spec.VsphereVolume.VolumePath,pod.Spec.NodeName))
By(fmt.Sprintf("%v Waiting for volume: %v to be detached from the node: %v",logPrefix,persistentvolumes[0].Spec.VsphereVolume.VolumePath,pod.Spec.NodeName))
@@ -72,7 +72,7 @@ var _ = utils.SIGDescribe("Volume Provisioning on Datastore [Feature:vsphere]",
...
@@ -72,7 +72,7 @@ var _ = utils.SIGDescribe("Volume Provisioning on Datastore [Feature:vsphere]",
Expect(err).To(HaveOccurred())
Expect(err).To(HaveOccurred())
errorMsg:=`Failed to provision volume with StorageClass \"`+DatastoreSCName+`\": The specified datastore `+InvalidDatastore+` is not a shared datastore across node VMs`
errorMsg:=`Failed to provision volume with StorageClass \"`+DatastoreSCName+`\": The specified datastore `+InvalidDatastore+` is not a shared datastore across node VMs`
if!strings.Contains(err.Error(),errorMsg){
if!strings.Contains(err.Error(),errorMsg){
Expect(err).NotTo(HaveOccurred(),errorMsg)
framework.ExpectNoError(err,errorMsg)
}
}
})
})
})
})
...
@@ -80,12 +80,12 @@ var _ = utils.SIGDescribe("Volume Provisioning on Datastore [Feature:vsphere]",
...
@@ -80,12 +80,12 @@ var _ = utils.SIGDescribe("Volume Provisioning on Datastore [Feature:vsphere]",