mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #5303 from lhuard1A/skip_pd_test
Skip PD e2e test on non gce clusters
This commit is contained in:
commit
44e5bae320
@ -55,6 +55,12 @@ var _ = Describe("PD", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should schedule a pod w/ a RW PD, remove it, then schedule it on another host", func() {
|
It("should schedule a pod w/ a RW PD, remove it, then schedule it on another host", func() {
|
||||||
|
if testContext.provider != "gce" {
|
||||||
|
By(fmt.Sprintf("Skipping PD test, which is only supported for provider gce (not %s)",
|
||||||
|
testContext.provider))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
host0Pod := testPDPod(diskName, host0Name, false)
|
host0Pod := testPDPod(diskName, host0Name, false)
|
||||||
host1Pod := testPDPod(diskName, host1Name, false)
|
host1Pod := testPDPod(diskName, host1Name, false)
|
||||||
|
|
||||||
@ -104,6 +110,12 @@ var _ = Describe("PD", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("should schedule a pod w/ a readonly PD on two hosts, then remove both.", func() {
|
It("should schedule a pod w/ a readonly PD on two hosts, then remove both.", func() {
|
||||||
|
if testContext.provider != "gce" {
|
||||||
|
By(fmt.Sprintf("Skipping PD test, which is only supported for provider gce (not %s)",
|
||||||
|
testContext.provider))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
rwPod := testPDPod(diskName, host0Name, false)
|
rwPod := testPDPod(diskName, host0Name, false)
|
||||||
host0ROPod := testPDPod(diskName, host0Name, true)
|
host0ROPod := testPDPod(diskName, host0Name, true)
|
||||||
host1ROPod := testPDPod(diskName, host1Name, true)
|
host1ROPod := testPDPod(diskName, host1Name, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user