Add check for openshift

This commit is contained in:
waseem
2019-07-04 10:25:22 +02:00
parent a8edefcdde
commit 9b48d320be
@@ -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)