Skip to content

Commit

Permalink
e2e: Use new-project instead create namespace for openshift story
Browse files Browse the repository at this point in the history
`oc create namespace testproj` create the namespace but doesn't switch
the context to `testproj` namespace but `oc new-project testproj`
creates and switch to `testproj` namespace. Because of that our
health_story test cases were failing.
  • Loading branch information
praveenkumar authored and openshift-merge-robot committed Aug 4, 2023
1 parent 364a65e commit 90f45a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/features/story_openshift.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: 4 Openshift stories

@darwin @linux @windows @testdata @story_health @needs_namespace
Scenario: Overall cluster health
Given executing "oc create namespace testproj" succeeds
Given executing "oc new-project testproj" succeeds
When executing "oc apply -f httpd-example.yaml" succeeds
And executing "oc rollout status deployment httpd-example" succeeds
Then stdout should contain "successfully rolled out"
Expand All @@ -36,7 +36,7 @@ Feature: 4 Openshift stories

@darwin @linux @windows @testdata @story_registry @mirror-registry @needs_namespace
Scenario: Mirror image to OpenShift image registry
Given executing "oc create namespace testproj" succeeds
Given executing "oc new-project testproj" succeeds
# mirror
When executing "oc registry login --insecure=true" succeeds
Then executing "oc image mirror quay.io/centos7/httpd-24-centos7:latest=default-route-openshift-image-registry.apps-crc.testing/testproj/hello:test --insecure=true --filter-by-os=linux/amd64" succeeds
Expand All @@ -53,7 +53,7 @@ Feature: 4 Openshift stories
@darwin @linux @windows @testdata @story_registry @local-registry @needs_namespace
Scenario: Pull image locally, push to registry, deploy
Given podman command is available
And executing "oc create namespace testproj" succeeds
And executing "oc new-project testproj" succeeds
When pulling image "quay.io/centos7/httpd-24-centos7", logging in, and pushing local image to internal registry succeeds
And executing "oc apply -f hello.yaml" succeeds
When executing "oc rollout status deployment hello" succeeds
Expand All @@ -67,7 +67,7 @@ Feature: 4 Openshift stories

@darwin @linux @windows @testdata @story_marketplace @cleanup @needs_namespace
Scenario: Install new operator
Given executing "oc create namespace testproj" succeeds
Given executing "oc new-project testproj" succeeds
When executing "oc apply -f redis-sub.yaml" succeeds
Then with up to "20" retries with wait period of "30s" command "oc get csv" output matches ".*redis-operator\.(.*)Succeeded$"
# install redis operator
Expand Down

0 comments on commit 90f45a6

Please sign in to comment.