e2e: Make enterprise runners optional for testing GitHub App

As GitHub App does not allow ARC to access enterprise runner related API endpoints, like the create-registration-token API.
This commit is contained in:
Yusuke Kuoka 2022-03-13 13:11:26 +00:00
parent 4551309e30
commit 1cc06e7408
1 changed files with 2 additions and 1 deletions

View File

@ -135,6 +135,7 @@ func TestE2ERunnerDeploy(t *testing.T) {
}
env := initTestEnv(t)
env.useApp = true
t.Run("build and load images", func(t *testing.T) {
env.buildAndLoadImages(t)
@ -219,7 +220,7 @@ func initTestEnv(t *testing.T) *env {
e.testRepo = testing.Getenv(t, "TEST_REPO", "")
e.testOrg = testing.Getenv(t, "TEST_ORG", "")
e.testOrgRepo = testing.Getenv(t, "TEST_ORG_REPO", "")
e.testEnterprise = testing.Getenv(t, "TEST_ENTERPRISE")
e.testEnterprise = testing.Getenv(t, "TEST_ENTERPRISE", "")
e.testEphemeral = testing.Getenv(t, "TEST_EPHEMERAL", "")
e.testJobs = createTestJobs(id, testResultCMNamePrefix, 20)