Skip to content

Commit

Permalink
refactor integration tests into modular functions
Browse files Browse the repository at this point in the history
  • Loading branch information
silphid committed Jun 25, 2024
1 parent bdd825a commit 4d12693
Show file tree
Hide file tree
Showing 4 changed files with 473 additions and 646 deletions.
19 changes: 5 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,11 @@ generate: crds.clean
# integration tests
e2e.run: test-integration

# Run all integration tests.
test-integration: test-integration-no-tls test-integration-tls

# Run integration tests with TLS disabled.
test-integration-no-tls: $(KIND) $(KUBECTL) $(UP) $(HELM3)
@$(INFO) running integration tests without TLS using kind $(KIND_VERSION)
@KIND_NODE_IMAGE_TAG=${KIND_NODE_IMAGE_TAG} $(ROOT_DIR)/cluster/local/integration_tests_no_tls.sh || $(FAIL)
@$(OK) integration tests without TLS passed

# Run integration tests with TLS enabled.
test-integration-tls: $(KIND) $(KUBECTL) $(UP) $(HELM3)
@$(INFO) running integration tests with TLS using kind $(KIND_VERSION)
@KIND_NODE_IMAGE_TAG=${KIND_NODE_IMAGE_TAG} $(ROOT_DIR)/cluster/local/integration_tests_tls.sh || $(FAIL)
@$(OK) integration tests with TLS passed
# Run integration tests.
test-integration: $(KIND) $(KUBECTL) $(UP) $(HELM3)
@$(INFO) running integration tests using kind $(KIND_VERSION)
@KIND_NODE_IMAGE_TAG=${KIND_NODE_IMAGE_TAG} $(ROOT_DIR)/cluster/local/integration_tests.sh || $(FAIL)
@$(OK) integration tests passed

# Update the submodules, such as the common build scripts.
submodules:
Expand Down
Loading

0 comments on commit 4d12693

Please sign in to comment.