Skip to content

Commit

Permalink
e2e: Check that web application is up right after creating it
Browse files Browse the repository at this point in the history
This is also tested in the start/stop scenario, but this scenario is not
run by "make e2e-stories" as this is very slow. This commit moves the
check to the scenario creating the application. The timeouts are
reworked to check more often for app availability as waiting 60s if the
initial check fails is very long.
  • Loading branch information
cfergeau authored and praveenkumar committed Jun 16, 2022
1 parent 4fc9802 commit 3a0cf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/features/story_health.feature
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Feature: End-to-end health check
Then stdout should contain "httpd-example exposed"
When executing "oc expose svc httpd-example" succeeds
Then stdout should contain "httpd-example exposed"
And with up to "20" retries with wait period of "5s" http response from "http://httpd-example-testproj.apps-crc.testing" has status code "200"

@darwin @linux @windows @startstop
Scenario: Stop and start CRC, then check app still runs
Given with up to "2" retries with wait period of "60s" http response from "http://httpd-example-testproj.apps-crc.testing" has status code "200"
When executing "crc stop" succeeds
Then checking that CRC is stopped
When starting CRC with default bundle succeeds
Expand Down

0 comments on commit 3a0cf44

Please sign in to comment.