test: env version tests

See coop-cloud/organising#541
This commit is contained in:
2024-07-17 10:06:46 +02:00
parent d22e2c38ce
commit 8084bff104
9 changed files with 201 additions and 9 deletions

View File

@ -118,3 +118,20 @@ teardown(){
assert_success
assert_output --partial '❌'
}
# bats test_tags=slow
@test "respects env version" {
tagHash=$(_get_tag_hash "0.1.0+1.20.0")
run $ABRA app deploy "$TEST_APP_DOMAIN" "0.1.0+1.20.0" --no-input --no-converge-checks
assert_success
run grep -q "TYPE=$TEST_RECIPE:0.1.0+1.20.0" \
"$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env"
assert_success
run $ABRA app check "$TEST_APP_DOMAIN"
assert_success
assert_equal $(_get_current_hash) "$tagHash"
}