From a326051325d51b94e10180428dad1b43e62221b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9na=C3=AFc=20Huard?= Date: Wed, 11 Mar 2015 17:58:40 +0100 Subject: [PATCH] Skip PD e2e test on non gce clusters --- test/e2e/pd.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/e2e/pd.go b/test/e2e/pd.go index 625a62c554b..a643d8c6d20 100644 --- a/test/e2e/pd.go +++ b/test/e2e/pd.go @@ -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() { + 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) 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() { + 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) host0ROPod := testPDPod(diskName, host0Name, true) host1ROPod := testPDPod(diskName, host1Name, true)