Skip to content

Commit

Permalink
Saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaja Omer committed Apr 23, 2024
1 parent 9c0897b commit 015839f
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 19 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.github_token }}
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}

- name: Partial E2E Test
run: make e2etest-pr
- name: Quick E2E Test
if: github.ref != 'refs/heads/main'
run: make e2etest-quick
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ test: generate fmt vet envtest ## Run tests.

.PHONY: e2etest
e2etest: generate local-deploy chainsaw
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e --assert-timeout 600s
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e/default-capl-cluster --assert-timeout 600s --cluster child-cluster=/e2e/default-capl-cluster/child-cluster-kubeconfig.yaml

.PHONY: e2etest-pr
e2etest-pr: generate local-deploy chainsaw
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e --selector on-pr
e2etest-quick: generate local-deploy chainsaw
GIT_REF=$(GIT_REF) $(CHAINSAW) test ./e2e --selector quick

local-deploy: kind ctlptl tilt kustomize clusterctl
@echo -n "LINODE_TOKEN=$(LINODE_TOKEN)" > config/default/.env.linode
Expand Down
5 changes: 0 additions & 5 deletions e2e/default-CAPL-cluster/04-cleanup-cluster.yaml

This file was deleted.

17 changes: 13 additions & 4 deletions e2e/default-CAPL-cluster/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ spec:
($error): ~
(json_parse($stdout)):
results: 2
- name: step-02b - get child cluster kubeconfig
try:
- script:
content: |
clusterctl get kubeconfig ($cluster) > child-cluster-kubeconfig.yaml
check:
($error == null): true
# - name: step-02c - check child cluster
# try:
# - script:
# cluster: child-cluster
# content: |
# kubectl get nodes -o wide
- name: step-03
try:
- delete:
Expand Down Expand Up @@ -79,7 +92,3 @@ spec:
($error): ~
(json_parse($stdout)):
results: 0
- name: step-05
try:
- apply:
file: 04-cleanup-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: minimal-linodecluster
# Label to trigger the test on every PR
labels:
on-pr:
quick:
spec:
bindings:
# A short identifier for the E2E test run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: minimal-linodemachine
# Label to trigger the test on every PR
labels:
on-pr:
quick:
spec:
bindings:
# A short identifier for the E2E test run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: vpc-integration
# Label to trigger the test on every PR
labels:
on-pr:
quick:
spec:
bindings:
# A short identifier for the E2E test run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: minimal-linodeobjectstoragebucket
# Label to trigger the test on every PR
labels:
on-pr:
quick:
spec:
bindings:
# A short identifier for the E2E test run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: minimal-linodevpc
# Label to trigger the test on every PR
labels:
on-pr:
quick:
spec:
bindings:
# A short identifier for the E2E test run
Expand Down

0 comments on commit 015839f

Please sign in to comment.