Skip to content

Commit c38ea4a

Browse files
spencerugboAkshay2191
authored andcommitted
Add unreferenced file integration tests (#1399)
* add unreferenced file support to mock * add integration tests for unreferenced files * address lint issues * add referenced to unreferenced test case * add manifest check to update and delete tests * refactor test cases * fix failing test case * rename manifest helper function * add file existence check to each test case * revert Makefile change
1 parent 5211a57 commit c38ea4a

File tree

5 files changed

+516
-8
lines changed

5 files changed

+516
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ integration-test: $(SELECTED_PACKAGE) build-mock-management-plane-grpc
167167
TEST_ENV="Container" CONTAINER_OS_TYPE=$(CONTAINER_OS_TYPE) BUILD_TARGET="install-agent-local" CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} \
168168
PACKAGES_REPO=$(OSS_PACKAGES_REPO) PACKAGE_NAME=$(PACKAGE_NAME) BASE_IMAGE=$(BASE_IMAGE) DOCKERFILE_PATH=$(DOCKERFILE_PATH) IMAGE_PATH=$(IMAGE_PATH) TAG=${IMAGE_TAG} \
169169
OS_VERSION=$(OS_VERSION) OS_RELEASE=$(OS_RELEASE) \
170-
go test -v ./test/integration/installuninstall ./test/integration/managementplane ./test/integration/auxiliarycommandserver ./test/integration/nginxless
170+
go test -v ./test/integration/installuninstall ./test/integration/managementplane ./test/integration/auxiliarycommandserver ./test/integration/nginxless
171171

172172
upgrade-test: $(SELECTED_PACKAGE) build-mock-management-plane-grpc
173173
TEST_ENV="Container" CONTAINER_OS_TYPE=$(CONTAINER_OS_TYPE) BUILD_TARGET="install-agent-repo" CONTAINER_NGINX_IMAGE_REGISTRY=${CONTAINER_NGINX_IMAGE_REGISTRY} \

test/integration/managementplane/config_apply_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,5 @@ func (s *ConfigApplyChunkingTestSuite) TestConfigApplyChunking() {
366366
func TestConfigApplyTestSuite(t *testing.T) {
367367
suite.Run(t, new(ConfigApplyTestSuite))
368368
suite.Run(t, new(ConfigApplyChunkingTestSuite))
369+
suite.Run(t, new(ConfigApplyUnreferencedFilesTestSuite))
369370
}

0 commit comments

Comments
 (0)