From 9b48d320be11402a27deb1270ab71fd7acd9ec4d Mon Sep 17 00:00:00 2001 From: waseem Date: Thu, 4 Jul 2019 10:25:22 +0200 Subject: [PATCH] Add check for openshift --- internal/pkg/controller/controller_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/pkg/controller/controller_test.go b/internal/pkg/controller/controller_test.go index 69191bf3..f6bb4f77 100644 --- a/internal/pkg/controller/controller_test.go +++ b/internal/pkg/controller/controller_test.go @@ -52,6 +52,10 @@ func TestMain(m *testing.M) { // Perform rolling upgrade on deploymentConfig and create env var upon updating the configmap func TestControllerUpdatingConfigmapShouldCreateEnvInDeploymentConfig(t *testing.T) { + // Don't run test on non-openshift environment + if !kube.IsOpenshift() { + return + } // Creating configmap configmapName := configmapNamePrefix + "-update-" + testutil.RandSeq(5)