Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/functional_test_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ jobs:
- name: Update dependencies
run: |
make dep-update
- name: Build and load test images into kind
run: |
make kind-build-test-images
- name: run functional tests
id: run-functional-tests
env:
Expand Down
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,29 @@ kind-delete: ## Delete kind cluster and remove kubeconfig
fi
@echo "=== Kind cluster cleanup complete ==="

PYTHON_TEST_IMAGE ?= quay.io/splunko11ytest/python_test:latest
NODEJS_TEST_IMAGE ?= quay.io/splunko11ytest/nodejs_test:latest

.PHONY: kind-build-test-images
kind-build-test-images: ## Build test app images and load them into kind cluster
@echo "Building Python test app image..."
docker build -t $(PYTHON_TEST_IMAGE) functional_tests/functional/testdata/python
@echo "Building Node.js test app image..."
docker build -t $(NODEJS_TEST_IMAGE) functional_tests/functional/testdata/nodejs
@echo "Loading test app images into kind cluster..."
kind load docker-image $(PYTHON_TEST_IMAGE) --name=$(KIND_CLUSTER_NAME)
kind load docker-image $(NODEJS_TEST_IMAGE) --name=$(KIND_CLUSTER_NAME)
@echo "=== Test images loaded into kind ==="

.PHONY: functionaltest-local
functionaltest-local: ## Run functional tests using local kind cluster (automatically sets up and tears down cluster)
@echo "Running functional tests with automated kind cluster management..."
@echo "=== Setting up kind cluster ==="
$(MAKE) kind-setup
@echo ""
@echo "=== Building and loading test images ==="
$(MAKE) kind-build-test-images
@echo ""
@echo "=== Running functional tests ==="
@echo "Using kind cluster: $(KIND_CLUSTER_NAME)"
@echo "Using kubeconfig: $(KUBECONFIG_TEST)"
Expand Down
Loading
Loading