Skip to content

Commit

Permalink
NE-1324: E2E tests for Assume Role in Shared VPC Cluster
Browse files Browse the repository at this point in the history
New e2e_sharedvpc E2E test package which contains the E2E tests for
AWS shared VPC clusters. These tests are isolated because of their
unique requirement for a specific cluster configuration. A common
package has been added to support both types of E2E tests. The new E2E
test validates the use of `spec.provider.aws.assumeRole.arn` in a shared
VPC cluster.
  • Loading branch information
gcs278 committed Oct 12, 2023
1 parent af2bc85 commit fe8617d
Show file tree
Hide file tree
Showing 14 changed files with 1,165 additions and 428 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ SHORTCOMMIT ?= $(shell git rev-parse --short HEAD)
GOBUILD_VERSION_ARGS = -ldflags "-X $(PACKAGE)/pkg/version.SHORTCOMMIT=$(SHORTCOMMIT) -X $(PACKAGE)/pkg/version.COMMIT=$(COMMIT)"

E2E_TIMEOUT ?= 1h
TEST_PKG ?= ./test/e2e

all: build

Expand Down Expand Up @@ -120,7 +121,11 @@ test-e2e:
-v \
-tags e2e \
-run "$(TEST)" \
./test/e2e
$(TEST_PKG)

.PHONY: test-e2e-sharedvpc
test-e2e-sharedvpc:
TEST_PKG=./test/e2e_sharedvpc make test-e2e

verify: lint
hack/verify-gofmt.sh
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ require (
google.golang.org/api v0.58.0
k8s.io/api v0.27.4
k8s.io/apimachinery v0.27.4
k8s.io/apiserver v0.27.2
k8s.io/client-go v0.27.4
k8s.io/utils v0.0.0-20230209194617-a36077c30491
sigs.k8s.io/controller-runtime v0.15.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,8 @@ k8s.io/apimachinery v0.27.4 h1:CdxflD4AF61yewuid0fLl6bM4a3q04jWel0IlP+aYjs=
k8s.io/apimachinery v0.27.4/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
k8s.io/apiserver v0.21.3/go.mod h1:eDPWlZG6/cCCMj/JBcEpDoK+I+6i3r9GsChYBHSbAzU=
k8s.io/apiserver v0.22.1/go.mod h1:2mcM6dzSt+XndzVQJX21Gx0/Klo7Aen7i0Ai6tIa400=
k8s.io/apiserver v0.27.2 h1:p+tjwrcQEZDrEorCZV2/qE8osGTINPuS5ZNqWAvKm5E=
k8s.io/apiserver v0.27.2/go.mod h1:EsOf39d75rMivgvvwjJ3OW/u9n1/BmUMK5otEOJrb1Y=
k8s.io/client-go v0.21.3/go.mod h1:+VPhCgTsaFmGILxR/7E1N0S+ryO010QBeNCv5JwRGYU=
k8s.io/client-go v0.22.1/go.mod h1:BquC5A4UOo4qVDUtoc04/+Nxp1MeHcVc1HJm1KmG8kk=
k8s.io/client-go v0.27.4 h1:vj2YTtSJ6J4KxaC88P4pMPEQECWMY8gqPqsTgUKzvjk=
Expand Down
Loading

0 comments on commit fe8617d

Please sign in to comment.