test: fix recipe_* tests [ci skip]

This commit is contained in:
decentral1se 2023-09-25 11:27:36 +02:00
parent c7c553164d
commit c456d13881
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
teardown_file() {
load "$PWD/tests/integration/helpers/common"
_common_setup
_reset_recipe
}

View File

@ -21,17 +21,17 @@ setup() {
latestVersion=$(jq -r '.gitea.versions[-1] | keys[0]' < "$ABRA_DIR/catalogue/recipes.json")
refute [ -z "$latestVersion" ];
run bash -c '$ABRA recipe versions gitea --machine | jq -r ".[0].Version" | head -n 1'
run bash -c '$ABRA recipe versions gitea --machine | jq -r ".[0].version" | head -n 1'
assert_success
assert_output "$latestVersion"
}
@test "app is first service listed" {
run bash -c '$ABRA recipe versions gitea --machine | jq -r ".[0].Service" | uniq'
run bash -c '$ABRA recipe versions gitea --machine | jq -r ".[0].service" | uniq'
assert_success
assert_output 'app'
run bash -c '$ABRA recipe versions gitea --machine | jq -r ".[1].Service" | uniq'
run bash -c '$ABRA recipe versions gitea --machine | jq -r ".[1].service" | uniq'
assert_success
assert_output 'db'
}