Error if acceptance tests are targeting github or cli orgs
This commit is contained in:
parent
f9b24990d6
commit
fd66555510
1 changed files with 4 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue