Skip to content

Commit

Permalink
e2e: switch to registry.access.redhat.com/ubi8/httpd-24
Browse files Browse the repository at this point in the history
quay.io/bitnami/nginx is no longer available, which breaks the test case.
The changes are more involved than just changing the image name, as
registry.access.redhat.com/ubi8/httpd-24 needs html data to be provided in /var/www/html.
This is done through a ConfigMap and a Volume which add an empty
index.html file in /var/www/html
  • Loading branch information
cfergeau authored and praveenkumar committed Jun 16, 2022
1 parent 6add9ad commit 4fc9802
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/features/story_health.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ Feature: End-to-end health check

@darwin @linux @windows
Scenario: Create and test app
When executing "oc create deployment httpd-example --image=quay.io/bitnami/nginx --port=8080" succeeds
When executing "oc create deployment httpd-example --image=registry.access.redhat.com/ubi8/httpd-24 --port=8080" succeeds
Then stdout should contain "deployment.apps/httpd-example created"
When executing "oc rollout status deployment httpd-example" succeeds
Then stdout should contain "successfully rolled out"
When executing "oc create configmap www-content --from-literal=index.html=" succeeds
Then stdout should contain "configmap/www-content created"
When executing "oc set volume deployment/httpd-example --add --type configmap --configmap-name www-content --name www --mount-path /var/www/html" succeeds
Then stdout should contain "deployment.apps/httpd-example volume updated"
When executing "oc expose deployment httpd-example --port 8080" succeeds
Then stdout should contain "httpd-example exposed"
When executing "oc expose svc httpd-example" succeeds
Expand Down

0 comments on commit 4fc9802

Please sign in to comment.