Integration test two apps
Use localhost for app_with_roles and 127.0.0.1 for app. Confirm we can deploy both and the respond to requests. Ensure the proxy is removed once both have been removed.
This commit is contained in:
@@ -9,7 +9,7 @@ class BrokenDeployTest < IntegrationTest
|
||||
kamal :deploy
|
||||
|
||||
assert_app_is_up version: first_version
|
||||
assert_container_running host: :vm3, name: "app-workers-#{first_version}"
|
||||
assert_container_running host: :vm3, name: "app_with_roles-workers-#{first_version}"
|
||||
|
||||
second_version = break_app
|
||||
|
||||
@@ -17,8 +17,8 @@ class BrokenDeployTest < IntegrationTest
|
||||
|
||||
assert_failed_deploy output
|
||||
assert_app_is_up version: first_version
|
||||
assert_container_running host: :vm3, name: "app-workers-#{first_version}"
|
||||
assert_container_not_running host: :vm3, name: "app-workers-#{second_version}"
|
||||
assert_container_running host: :vm3, name: "app_with_roles-workers-#{first_version}"
|
||||
assert_container_not_running host: :vm3, name: "app_with_roles-workers-#{second_version}"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user