test: fix app_check tests

This commit is contained in:
2023-09-25 10:52:47 +02:00
parent e438fc6e8e
commit b1774cc44b
3 changed files with 10 additions and 11 deletions

View File

@ -81,17 +81,17 @@ setup(){
}
@test "ensure recipe not up to date if --offline" {
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" reset --hard HEAD~3
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" reset --hard HEAD~1
assert_success
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status
assert_output --partial 'behind 3'
assert_output --partial 'behind 1'
run $ABRA app check "$TEST_APP_DOMAIN" --offline
assert_success
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" status
assert_output --partial 'behind 3'
assert_output --partial 'behind 1'
_reset_recipe
}
@ -113,8 +113,7 @@ setup(){
run $ABRA app check "$TEST_APP_DOMAIN" --chaos
assert_failure
assert_output --partial \
"$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env is missing NEW_VAR"
assert_output --partial "NEW_VAR"
_checkout_recipe
}