Skip to content

Commit 0e518ba

Browse files
committed
e2e test: introduce a go framework
This commit adds a minimal golang test framework to check the MVP functionality of the project. Signed-off-by: Miguel Duarte Barroso <[email protected]>
1 parent e56ce55 commit 0e518ba

File tree

3 files changed

+539
-1
lines changed

3 files changed

+539
-1
lines changed

.github/workflows/e2e-container.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
- name: Test - provisioning the examples
3232
run: e2e/test-provisioning-examples.sh
3333

34+
- name: Test - execute golang based e2e tests
35+
env:
36+
KUBECONFIG: /root/.kube/config
37+
run: make e2e/test
38+
3439
- name: Cleanup cluster
3540
run: |
3641
kind delete cluster # gracefully remove the cluster

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ manifests:
2424
IMAGE_REGISTRY=${IMAGE_REGISTRY} CRI_SOCKET_PATH=${CRI_SOCKET_PATH} hack/generate_manifests.sh
2525

2626
test:
27-
$(GO) test -v ./...
27+
$(GO) test -v ./pkg/...
28+
29+
e2e/test:
30+
$(GO) test -v -count=1 ./e2e/...

0 commit comments

Comments
 (0)