Skip to content

Commit

Permalink
E2E test vpc controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kovacs committed Feb 8, 2024
1 parent 1c4bc21 commit ef4190a
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e/linodevpc-controller/minimal/01-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: LinodeVPC
metadata:
name: linodevpc-sample
spec:
label: capli-e2e-byovpc-sample
region: us-sea
status:
ready: true
7 changes: 7 additions & 0 deletions e2e/linodevpc-controller/minimal/01-create-vpc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: LinodeVPC
metadata:
name: linodevpc-sample
spec:
label: capli-e2e-byovpc-sample
region: us-sea
6 changes: 6 additions & 0 deletions e2e/linodevpc-controller/minimal/02-delete-vpc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
delete:
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: LinodeVPC
name: linodevpc-sample
7 changes: 7 additions & 0 deletions e2e/linodevpc-controller/minimal/02-error.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: LinodeVPC
metadata:
name: linodevpc-sample
spec:
label: capli-e2e-byovpc-sample
region: us-sea
5 changes: 5 additions & 0 deletions e2e/linodevpc-controller/minimal/03-verify-vpc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |-
URI="vpcs" FILTER="{\"label\":\"CLi$(OBJ=linodevpcs/linodevpc-sample make getKubeUid | sed 's/-//g')\"}" make callLinodeApiGet | grep 'results": 0'
1 change: 1 addition & 0 deletions e2e/linodevpc-controller/minimal/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../Makefile

0 comments on commit ef4190a

Please sign in to comment.