test: int suite fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-17 13:22:14 +02:00
parent e5a6dea10c
commit 8b8e158664
20 changed files with 115 additions and 79 deletions

View File

@ -1,10 +1,17 @@
#!/usr/bin/env bash
setup_file(){
load "$PWD/tests/integration/helpers/common"
_common_setup
_ensure_catalogue
}
setup() {
load "$PWD/tests/integration/helpers/common"
_common_setup
}
@test "recipe versions" {
run $ABRA recipe versions gitea
assert_success
@ -12,11 +19,9 @@ setup() {
}
@test "local tags used if no catalogue entry" {
latestRelease=$(git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l | tail -n 1)
run $ABRA recipe versions "$TEST_RECIPE"
assert_success
assert_output --partial "$latestRelease"
assert_output --partial "$(_latest_release)"
}
@test "versions listed in correct order" {