Skip to content

Commit

Permalink
Add missing teardown to integration test (#1438)
Browse files Browse the repository at this point in the history
This test was missing a call to `snow app teardown` so it was leaving behind an app package.
  • Loading branch information
sfc-gh-fcampbell authored Aug 12, 2024
1 parent a027cc6 commit a2769db
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions tests_integration/nativeapp/test_project_templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,22 @@ def test_nativeapp_project_templating_bundle_deploy_successful(
local_test_env["APP_DIR"] = "app"

with pushd(project_dir):
result = runner.invoke_json(
["app", "bundle"],
env=local_test_env,
)
assert result.exit_code == 0
try:
result = runner.invoke_json(
["app", "bundle"],
env=local_test_env,
)
assert result.exit_code == 0

result = runner.invoke_with_connection_json(
["app", "deploy"],
env=local_test_env,
)
assert result.exit_code == 0
result = runner.invoke_with_connection_json(
["app", "deploy"],
env=local_test_env,
)
assert result.exit_code == 0
finally:
# teardown is idempotent, so we can execute it again with no ill effects
result = runner.invoke_with_connection_json(
["app", "teardown", "--force"],
env=local_test_env,
)
assert result.exit_code == 0

0 comments on commit a2769db

Please sign in to comment.