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 17, 2024
1 parent 57bf330 commit 469d925
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 @@ -2,17 +2,11 @@

class MainTest < IntegrationTest
test "deploy, redeploy, rollback, details and audit" do
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 @@ -21,7 +15,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 All @@ -44,7 +38,7 @@ class MainTest < IntegrationTest
test "app with roles" do
@app = "app_with_roles"

version = latest_app_version
version = update_app_rev

assert_app_is_down

Expand Down

0 comments on commit 469d925

Please sign in to comment.