Skip to content

Commit

Permalink
Add vSphere e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Furkat Gofurov <[email protected]>
  • Loading branch information
furkatgofurov7 committed Oct 4, 2023
1 parent e2c2adb commit 3a33e7d
Show file tree
Hide file tree
Showing 7 changed files with 1,063 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/e2e/config/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ intervals:
default/wait-v2prov-create: ["25m", "30s"]
default/wait-capa-create-cluster: ["30m", "30s"]
default/wait-capz-create-cluster: ["30m", "30s"]
default/wait-capv-create-cluster: ["30m", "30s"]
default/wait-gitea: ["3m", "10s"]
default/wait-consistently: ["30s", "5s"]
default/wait-getservice: ["60s", "5s"]
default/wait-eks-delete: ["20m", "30s"]
default/wait-aks-delete: ["20m", "30s"]
default/wait-azure: ["30m", "30s"]
default/wait-vSphere-delete: ["20m", "30s"]

variables:
RANCHER_VERSION: "v2.7.6"
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ var (
//go:embed data/capi-operator/capz-identity-secret.yaml
AzureIdentitySecret []byte

//go:embed data/capi-operator/capv-variables.yaml
vSphereProviderSecret []byte

//go:embed data/rancher/ingress.yaml
IngressConfig []byte

Expand Down
9 changes: 9 additions & 0 deletions test/e2e/data/capi-operator/capv-variables.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: vSphere-variables
namespace: default
type: Opaque
stringData:
CLUSTER_TOPOLOGY: "true"
EXP_CLUSTER_RESOURCE_SET: "true"
13 changes: 13 additions & 0 deletions test/e2e/data/capi-operator/full-providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,17 @@ metadata:
namespace: capz-system
spec:
secretName: azure-variables
---
apiVersion: v1
kind: Namespace
metadata:
name: capv-system
---
apiVersion: operator.cluster.x-k8s.io/v1alpha1
kind: InfrastructureProvider
metadata:
name: vsphere
namespace: capv-system
spec:
secretName: vSphere-variables
secretNamespace: default
Loading

0 comments on commit 3a33e7d

Please sign in to comment.