mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Tag persistent volume GCE tests [Serial]
Added [Volume] tag per issue #35542; added [Flaky] to GCE tests until confirmed fixed. Added [Serial] to NFS to address possible cross test contamination.
This commit is contained in:
		@@ -560,7 +560,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
			// Create an nfs PV, then a claim that matches the PV, and a pod that
 | 
								// Create an nfs PV, then a claim that matches the PV, and a pod that
 | 
				
			||||||
			// contains the claim. Verify that the PV and PVC bind correctly, and
 | 
								// contains the claim. Verify that the PV and PVC bind correctly, and
 | 
				
			||||||
			// that the pod can write to the nfs volume.
 | 
								// that the pod can write to the nfs volume.
 | 
				
			||||||
			It("should create a non-pre-bound PV and PVC: test write access [Flaky]", func() {
 | 
								It("should create a non-pre-bound PV and PVC: test write access [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
				pv, pvc = createPVPVC(c, pvConfig, ns, false)
 | 
									pv, pvc = createPVPVC(c, pvConfig, ns, false)
 | 
				
			||||||
				completeTest(f, c, ns, pv, pvc)
 | 
									completeTest(f, c, ns, pv, pvc)
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
@@ -568,7 +568,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
			// Create a claim first, then a nfs PV that matches the claim, and a
 | 
								// Create a claim first, then a nfs PV that matches the claim, and a
 | 
				
			||||||
			// pod that contains the claim. Verify that the PV and PVC bind
 | 
								// pod that contains the claim. Verify that the PV and PVC bind
 | 
				
			||||||
			// correctly, and that the pod can write to the nfs volume.
 | 
								// correctly, and that the pod can write to the nfs volume.
 | 
				
			||||||
			It("create a PVC and non-pre-bound PV: test write access [Flaky]", func() {
 | 
								It("create a PVC and non-pre-bound PV: test write access [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
				pv, pvc = createPVCPV(c, pvConfig, ns, false)
 | 
									pv, pvc = createPVCPV(c, pvConfig, ns, false)
 | 
				
			||||||
				completeTest(f, c, ns, pv, pvc)
 | 
									completeTest(f, c, ns, pv, pvc)
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
@@ -576,7 +576,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
			// Create a claim first, then a pre-bound nfs PV that matches the claim,
 | 
								// Create a claim first, then a pre-bound nfs PV that matches the claim,
 | 
				
			||||||
			// and a pod that contains the claim. Verify that the PV and PVC bind
 | 
								// and a pod that contains the claim. Verify that the PV and PVC bind
 | 
				
			||||||
			// correctly, and that the pod can write to the nfs volume.
 | 
								// correctly, and that the pod can write to the nfs volume.
 | 
				
			||||||
			It("create a PVC and a pre-bound PV: test write access [Flaky]", func() {
 | 
								It("create a PVC and a pre-bound PV: test write access [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
				pv, pvc = createPVCPV(c, pvConfig, ns, true)
 | 
									pv, pvc = createPVCPV(c, pvConfig, ns, true)
 | 
				
			||||||
				completeTest(f, c, ns, pv, pvc)
 | 
									completeTest(f, c, ns, pv, pvc)
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
@@ -584,7 +584,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
			// Create a nfs PV first, then a pre-bound PVC that matches the PV,
 | 
								// Create a nfs PV first, then a pre-bound PVC that matches the PV,
 | 
				
			||||||
			// and a pod that contains the claim. Verify that the PV and PVC bind
 | 
								// and a pod that contains the claim. Verify that the PV and PVC bind
 | 
				
			||||||
			// correctly, and that the pod can write to the nfs volume.
 | 
								// correctly, and that the pod can write to the nfs volume.
 | 
				
			||||||
			It("create a PV and a pre-bound PVC: test write access [Flaky]", func() {
 | 
								It("create a PV and a pre-bound PVC: test write access [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
				pv, pvc = createPVPVC(c, pvConfig, ns, true)
 | 
									pv, pvc = createPVPVC(c, pvConfig, ns, true)
 | 
				
			||||||
				completeTest(f, c, ns, pv, pvc)
 | 
									completeTest(f, c, ns, pv, pvc)
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
@@ -615,7 +615,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			// Create 2 PVs and 4 PVCs.
 | 
								// Create 2 PVs and 4 PVCs.
 | 
				
			||||||
			// Note: PVs are created before claims and no pre-binding
 | 
								// Note: PVs are created before claims and no pre-binding
 | 
				
			||||||
			It("should create 2 PVs and 4 PVCs: test write access[Flaky]", func() {
 | 
								It("should create 2 PVs and 4 PVCs: test write access [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
				numPVs, numPVCs := 2, 4
 | 
									numPVs, numPVCs := 2, 4
 | 
				
			||||||
				pvols, claims = createPVsPVCs(numPVs, numPVCs, c, ns, pvConfig)
 | 
									pvols, claims = createPVsPVCs(numPVs, numPVCs, c, ns, pvConfig)
 | 
				
			||||||
				waitAndVerifyBinds(c, ns, pvols, claims, true)
 | 
									waitAndVerifyBinds(c, ns, pvols, claims, true)
 | 
				
			||||||
@@ -624,7 +624,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			// Create 3 PVs and 3 PVCs.
 | 
								// Create 3 PVs and 3 PVCs.
 | 
				
			||||||
			// Note: PVs are created before claims and no pre-binding
 | 
								// Note: PVs are created before claims and no pre-binding
 | 
				
			||||||
			It("should create 3 PVs and 3 PVCs: test write access[Flaky]", func() {
 | 
								It("should create 3 PVs and 3 PVCs: test write access [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
				numPVs, numPVCs := 3, 3
 | 
									numPVs, numPVCs := 3, 3
 | 
				
			||||||
				pvols, claims = createPVsPVCs(numPVs, numPVCs, c, ns, pvConfig)
 | 
									pvols, claims = createPVsPVCs(numPVs, numPVCs, c, ns, pvConfig)
 | 
				
			||||||
				waitAndVerifyBinds(c, ns, pvols, claims, true)
 | 
									waitAndVerifyBinds(c, ns, pvols, claims, true)
 | 
				
			||||||
@@ -633,7 +633,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			// Create 4 PVs and 2 PVCs.
 | 
								// Create 4 PVs and 2 PVCs.
 | 
				
			||||||
			// Note: PVs are created before claims and no pre-binding.
 | 
								// Note: PVs are created before claims and no pre-binding.
 | 
				
			||||||
			It("should create 4 PVs and 2 PVCs: test write access[Flaky]", func() {
 | 
								It("should create 4 PVs and 2 PVCs: test write access [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
				numPVs, numPVCs := 4, 2
 | 
									numPVs, numPVCs := 4, 2
 | 
				
			||||||
				pvols, claims = createPVsPVCs(numPVs, numPVCs, c, ns, pvConfig)
 | 
									pvols, claims = createPVsPVCs(numPVs, numPVCs, c, ns, pvConfig)
 | 
				
			||||||
				waitAndVerifyBinds(c, ns, pvols, claims, true)
 | 
									waitAndVerifyBinds(c, ns, pvols, claims, true)
 | 
				
			||||||
@@ -694,7 +694,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		// Attach a persistent disk to a pod using a PVC.
 | 
							// Attach a persistent disk to a pod using a PVC.
 | 
				
			||||||
		// Delete the PVC and then the pod.  Expect the pod to succeed in unmounting and detaching PD on delete.
 | 
							// Delete the PVC and then the pod.  Expect the pod to succeed in unmounting and detaching PD on delete.
 | 
				
			||||||
		It("should test that deleting a PVC before the pod does not cause pod deletion to fail on PD detach", func() {
 | 
							It("should test that deleting a PVC before the pod does not cause pod deletion to fail on PD detach [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
			By("Creating the PV and PVC")
 | 
								By("Creating the PV and PVC")
 | 
				
			||||||
			pv, pvc = createPVPVC(c, pvConfig, ns, false)
 | 
								pv, pvc = createPVPVC(c, pvConfig, ns, false)
 | 
				
			||||||
			waitOnPVandPVC(c, ns, pv, pvc)
 | 
								waitOnPVandPVC(c, ns, pv, pvc)
 | 
				
			||||||
@@ -717,7 +717,7 @@ var _ = framework.KubeDescribe("PersistentVolumes", func() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		// Attach a persistent disk to a pod using a PVC.
 | 
							// Attach a persistent disk to a pod using a PVC.
 | 
				
			||||||
		// Delete the PV and then the pod.  Expect the pod to succeed in unmounting and detaching PD on delete.
 | 
							// Delete the PV and then the pod.  Expect the pod to succeed in unmounting and detaching PD on delete.
 | 
				
			||||||
		It("should test that deleting the PV before the pod does not cause pod deletion to fail on PD detach", func() {
 | 
							It("should test that deleting the PV before the pod does not cause pod deletion to fail on PD detach [Volume][Serial][Flaky]", func() {
 | 
				
			||||||
			By("Creating the PV and PVC")
 | 
								By("Creating the PV and PVC")
 | 
				
			||||||
			pv, pvc = createPVPVC(c, pvConfig, ns, false)
 | 
								pv, pvc = createPVPVC(c, pvConfig, ns, false)
 | 
				
			||||||
			waitOnPVandPVC(c, ns, pv, pvc)
 | 
								waitOnPVandPVC(c, ns, pv, pvc)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user