Only use barrier when needed, more descriptive info

This commit is contained in:
Donal McBreen
2024-05-20 12:17:01 +01:00
parent bb2ca81d87
commit ee758d951a
4 changed files with 18 additions and 18 deletions

View File

@@ -136,10 +136,10 @@ class CliAppTest < CliTestCase
.returns("running").at_least_once # workers health check
run_command("boot", config: :with_roles, host: nil).tap do |output|
assert_match "Waiting at web barrier (1.1.1.3)...", output
assert_match "Waiting at web barrier (1.1.1.4)...", output
assert_match "Barrier opened (1.1.1.3)", output
assert_match "Barrier opened (1.1.1.4)", output
assert_match "Waiting for a healthy web container (1.1.1.3)...", output
assert_match "Waiting for a healthy web container (1.1.1.4)...", output
assert_match "First web container is healthy, continuing (1.1.1.3)", output
assert_match "First web container is healthy, continuing (1.1.1.4)", output
end
end
@@ -160,10 +160,10 @@ class CliAppTest < CliTestCase
stderred do
run_command("boot", config: :with_roles, host: nil, allow_execute_error: true).tap do |output|
assert_match "Waiting at web barrier (1.1.1.3)...", output
assert_match "Waiting at web barrier (1.1.1.4)...", output
assert_match "Barrier closed, shutting down new container (1.1.1.3)...", output
assert_match "Barrier closed, shutting down new container (1.1.1.4)...", output
assert_match "Waiting for a healthy web container (1.1.1.3)...", output
assert_match "Waiting for a healthy web container (1.1.1.4)...", output
assert_match "First web container is unhealthy, stopping (1.1.1.3)", output
assert_match "First web container is unhealthy, stopping (1.1.1.4)", output
assert_match "Running docker container ls --all --filter name=^app-web-latest$ --quiet | xargs docker stop on 1.1.1.1", output
assert_match "Running docker container ls --all --filter name=^app-web-latest$ --quiet | xargs docker stop on 1.1.1.2", output
assert_match "Running docker container ls --all --filter name=^app-workers-latest$ --quiet | xargs docker stop on 1.1.1.3", output