forked from toolshed/abra
test: fix app_check tests
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user