From c456d13881577d36eb1e7579b61491fe1be06f2e Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 25 Sep 2023 11:27:36 +0200 Subject: [PATCH] test: fix recipe_* tests [ci skip] --- tests/integration/recipe_lint.bats | 2 ++ tests/integration/recipe_version.bats | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/integration/recipe_lint.bats b/tests/integration/recipe_lint.bats index fec51a03d..0b2617b4d 100644 --- a/tests/integration/recipe_lint.bats +++ b/tests/integration/recipe_lint.bats @@ -1,6 +1,8 @@ #!/usr/bin/env bash teardown_file() { + load "$PWD/tests/integration/helpers/common" + _common_setup _reset_recipe } diff --git a/tests/integration/recipe_version.bats b/tests/integration/recipe_version.bats index 5efc9f5d5..42d2e4d05 100644 --- a/tests/integration/recipe_version.bats +++ b/tests/integration/recipe_version.bats @@ -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' }