From cf0c1f188b66e130059bd1af6098fd2b634a5da3 Mon Sep 17 00:00:00 2001 From: Mihaela Balutoiu Date: Wed, 2 Aug 2023 20:23:46 +0300 Subject: [PATCH] Fix org_name/repo_name Signed-off-by: Mihaela Balutoiu --- .github/workflows/integration-tests.yml | 2 ++ test/integration/e2e.go | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 43447c8f..3be23581 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -61,6 +61,8 @@ jobs: GARM_FULLNAME: Local GARM Admin GARM_EMAIL: admin@example.com GARM_NAME: local_garm + ORG_NAME: gsamfira + REPO_NAME: garm-testing CREDENTIALS_NAME: test-garm-creds - name: Show GARM logs diff --git a/test/integration/e2e.go b/test/integration/e2e.go index 51553aca..ba173504 100644 --- a/test/integration/e2e.go +++ b/test/integration/e2e.go @@ -26,11 +26,6 @@ import ( openapiRuntimeClient "github.com/go-openapi/runtime/client" ) -const ( - orgName = "gsamfira" - repoName = "scripts" -) - var ( cli *client.GarmAPI cfg config.Config @@ -41,11 +36,13 @@ var ( repoID string repoPoolID string repoInstanceName string + repoName = os.Getenv("REPO_NAME") repoWebhookSecret = os.Getenv("REPO_WEBHOOK_SECRET") orgID string orgPoolID string orgInstanceName string + orgName = os.Getenv("ORG_NAME") orgWebhookSecret = os.Getenv("ORG_WEBHOOK_SECRET") username = os.Getenv("GARM_USERNAME")