From 19c2032afa3dcd7be43eb482d0f1bc4239c90a8e Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Mon, 9 Sep 2024 20:54:43 +0200 Subject: [PATCH] ci: fix unauthorized issue on e2e testS --- .gitea/workflows/pull-request-open.yml | 2 ++ tests/two_tier.tftest.hcl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pull-request-open.yml b/.gitea/workflows/pull-request-open.yml index 8a198d3..ddbadf6 100644 --- a/.gitea/workflows/pull-request-open.yml +++ b/.gitea/workflows/pull-request-open.yml @@ -112,3 +112,5 @@ jobs: run: tofu test shell: bash working-directory: ${{ gitea.workspace }} + env: + VAULT_TOKEN: ${{ steps.tofu-auth.outputs.vault_token }} diff --git a/tests/two_tier.tftest.hcl b/tests/two_tier.tftest.hcl index d71b500..b2d7dad 100644 --- a/tests/two_tier.tftest.hcl +++ b/tests/two_tier.tftest.hcl @@ -25,7 +25,7 @@ run "two_tier" { assert { condition = module.landing_zone.database_subnetpool == null - error_message = "The database subnetpool does not seem correct" + error_message = "The database subnetpool is not null" } assert {