From fd665555109c457ba932a72095c1089ce41c688e Mon Sep 17 00:00:00 2001 From: William Martin Date: Fri, 11 Oct 2024 17:51:17 +0200 Subject: [PATCH] Error if acceptance tests are targeting github or cli orgs --- acceptance/acceptance_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/acceptance/acceptance_test.go b/acceptance/acceptance_test.go index fdad1e576..7b249aaca 100644 --- a/acceptance/acceptance_test.go +++ b/acceptance/acceptance_test.go @@ -141,6 +141,10 @@ func (e *testScriptEnv) fromEnv() error { return missingEnvError{missingEnvs: missingEnvs} } + if envMap["GH_ACCEPTANCE_ORG"] == "github" || envMap["GH_ACCEPTANCE_ORG"] == "cli" { + return fmt.Errorf("GH_ACCEPTANCE_ORG cannot be 'github' or 'cli'") + } + e.host = envMap["GH_ACCEPTANCE_HOST"] e.org = envMap["GH_ACCEPTANCE_ORG"] e.token = envMap["GH_ACCEPTANCE_TOKEN"]