mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 04:26:51 +00:00
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:
@@ -135,6 +135,7 @@ func TestE2ERunnerDeploy(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
env := initTestEnv(t)
|
env := initTestEnv(t)
|
||||||
|
env.useApp = true
|
||||||
|
|
||||||
t.Run("build and load images", func(t *testing.T) {
|
t.Run("build and load images", func(t *testing.T) {
|
||||||
env.buildAndLoadImages(t)
|
env.buildAndLoadImages(t)
|
||||||
@@ -219,7 +220,7 @@ func initTestEnv(t *testing.T) *env {
|
|||||||
e.testRepo = testing.Getenv(t, "TEST_REPO", "")
|
e.testRepo = testing.Getenv(t, "TEST_REPO", "")
|
||||||
e.testOrg = testing.Getenv(t, "TEST_ORG", "")
|
e.testOrg = testing.Getenv(t, "TEST_ORG", "")
|
||||||
e.testOrgRepo = testing.Getenv(t, "TEST_ORG_REPO", "")
|
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.testEphemeral = testing.Getenv(t, "TEST_EPHEMERAL", "")
|
||||||
e.testJobs = createTestJobs(id, testResultCMNamePrefix, 20)
|
e.testJobs = createTestJobs(id, testResultCMNamePrefix, 20)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user