test: use proxy-test-sa for proxy tests and run e2e tests in parallel (#146)
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
This commit is contained in:
Родитель
887abce66e
Коммит
def32cdfed
2
Makefile
2
Makefile
|
@ -253,7 +253,7 @@ $(E2E_TEST):
|
|||
# Ginkgo configurations
|
||||
GINKGO_FOCUS ?=
|
||||
GINKGO_SKIP ?=
|
||||
GINKGO_NODES ?= 1
|
||||
GINKGO_NODES ?= 3
|
||||
GINKGO_NO_COLOR ?= false
|
||||
GINKGO_TIMEOUT ?= 5m
|
||||
GINKGO_ARGS ?= -focus="$(GINKGO_FOCUS)" -skip="$(GINKGO_SKIP)" -nodes=$(GINKGO_NODES) -noColor=$(GINKGO_NO_COLOR) -timeout=$(GINKGO_TIMEOUT)
|
||||
|
|
|
@ -25,9 +25,9 @@ var _ = ginkgo.Describe("Proxy [KindOnly][LinuxOnly]", func() {
|
|||
ginkgo.It("should get a valid AAD token with the proxy sidecar", func() {
|
||||
clientID, ok := os.LookupEnv("APPLICATION_CLIENT_ID")
|
||||
gomega.Expect(ok).To(gomega.BeTrue(), "APPLICATION_CLIENT_ID must be set")
|
||||
// trust is only set up for 'pod-identity-sa' service account in the default namespace for now
|
||||
// trust is only set up for 'proxy-test-sa' service account in the default namespace for now
|
||||
const namespace = "default"
|
||||
serviceAccount := createServiceAccount(f.ClientSet, namespace, "pod-identity-sa", map[string]string{webhook.UsePodIdentityLabel: "true"}, map[string]string{webhook.ClientIDAnnotation: clientID})
|
||||
serviceAccount := createServiceAccount(f.ClientSet, namespace, "proxy-test-sa", map[string]string{webhook.UsePodIdentityLabel: "true"}, map[string]string{webhook.ClientIDAnnotation: clientID})
|
||||
defer f.ClientSet.CoreV1().ServiceAccounts(namespace).Delete(context.TODO(), serviceAccount, metav1.DeleteOptions{})
|
||||
|
||||
pod := generatePodWithServiceAccount(
|
||||
|
|
Загрузка…
Ссылка в новой задаче