Skip to content

Commit 30b6a16

Browse files
NutsaBaphralG
andauthored
Cleanup integration tests (#1066)
Co-authored-by: Aphral Griffin <a.griffin@f5.com>
1 parent 48d4f4d commit 30b6a16

File tree

11 files changed

+952
-834
lines changed

11 files changed

+952
-834
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ integration-test: $(SELECTED_PACKAGE) build-mock-management-plane-grpc
159159
TEST_ENV="Container" CONTAINER_OS_TYPE=$(CONTAINER_OS_TYPE) BUILD_TARGET="install-agent-local" CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} \
160160
PACKAGES_REPO=$(OSS_PACKAGES_REPO) PACKAGE_NAME=$(PACKAGE_NAME) BASE_IMAGE=$(BASE_IMAGE) DOCKERFILE_PATH=$(DOCKERFILE_PATH) IMAGE_PATH=$(IMAGE_PATH) TAG=${IMAGE_TAG} \
161161
OS_VERSION=$(OS_VERSION) OS_RELEASE=$(OS_RELEASE) \
162-
go test -v ./test/integration
162+
go test -v ./test/integration/installuninstall ./test/integration/managementplane ./test/integration/nginxless
163163

164164
official-image-integration-test: $(SELECTED_PACKAGE) build-mock-management-plane-grpc
165165
TEST_ENV="Container" CONTAINER_OS_TYPE=$(CONTAINER_OS_TYPE) CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} BUILD_TARGET="install" \
166166
PACKAGES_REPO=$(OSS_PACKAGES_REPO) TAG=${TAG} PACKAGE_NAME=$(PACKAGE_NAME) BASE_IMAGE=$(BASE_IMAGE) DOCKERFILE_PATH=$(OFFICIAL_IMAGE_DOCKERFILE_PATH) \
167167
OS_VERSION=$(OS_VERSION) OS_RELEASE=$(OS_RELEASE) IMAGE_PATH=$(IMAGE_PATH) \
168-
go test -v ./test/integration/grpc_management_plane_api_test.go
168+
go test -v ./test/integration/managementplane
169169

170170
performance-test:
171171
@mkdir -p $(TEST_BUILD_DIR)

test/helpers/test_containers_utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func StartContainer(
4646

4747
req := testcontainers.ContainerRequest{
4848
FromDockerfile: testcontainers.FromDockerfile{
49-
Context: "../../",
49+
Context: "../../../",
5050
Dockerfile: dockerfilePath,
5151
KeepImage: false,
5252
PrintBuildLog: true,
@@ -118,7 +118,7 @@ func StartAgentlessContainer(
118118

119119
req := testcontainers.ContainerRequest{
120120
FromDockerfile: testcontainers.FromDockerfile{
121-
Context: "../../",
121+
Context: "../../../",
122122
Dockerfile: dockerfilePath,
123123
KeepImage: false,
124124
PrintBuildLog: true,
@@ -179,7 +179,7 @@ func StartNginxLessContainer(
179179

180180
req := testcontainers.ContainerRequest{
181181
FromDockerfile: testcontainers.FromDockerfile{
182-
Context: "../../",
182+
Context: "../../../",
183183
Dockerfile: dockerfilePath,
184184
KeepImage: false,
185185
PrintBuildLog: true,
@@ -236,7 +236,7 @@ func StartMockManagementPlaneGrpcContainer(
236236

237237
req := testcontainers.ContainerRequest{
238238
FromDockerfile: testcontainers.FromDockerfile{
239-
Context: "../../",
239+
Context: "../../../",
240240
Dockerfile: "./test/mock/grpc/Dockerfile",
241241
KeepImage: false,
242242
PrintBuildLog: true,

0 commit comments

Comments
 (0)