Skip to content

Commit

Permalink
Fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
npezza93 committed Sep 11, 2024
1 parent 6a89a2b commit eb248dc
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/integration/main_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@ class MainTest < IntegrationTest
assert_env_files
remove_local_env_file

first_version = latest_app_version
first_version = update_app_rev

assert_app_is_down

mock = Minitest::Mock.new
mock.expect(:manifest, false, [ first_version ])
mock.expect(:installed?, true)
mock.expect(:running?, true)
Kamal::Commands::Docker.stub(:new, mock) do
kamal :deploy
end
kamal :deploy
assert_app_is_up version: first_version
assert_hooks_ran "pre-connect", "pre-build", "pre-deploy", "post-deploy"
assert_envs version: first_version
Expand All @@ -25,7 +19,7 @@ class MainTest < IntegrationTest

kamal :redeploy
assert_app_is_up version: second_version
assert_hooks_ran "pre-connect", "pre-deploy", "post-deploy"
assert_hooks_ran "pre-connect", "pre-build", "pre-deploy", "post-deploy"

assert_accumulated_assets first_version, second_version

Expand Down Expand Up @@ -53,7 +47,7 @@ class MainTest < IntegrationTest

kamal :envify

version = latest_app_version
version = update_app_rev

assert_app_is_down

Expand Down

0 comments on commit eb248dc

Please sign in to comment.