Skip to content

Commit b81750e

Browse files
authored
test(e2e): Set empty env vars for Nutanix e2e vars (#749)
When running e2e tests for other providers, it is currently necessary to export empty variables for `NUTANIX_ENDPOINT`, `NUTANIX_PASSWORD` and `NUTANIX_USER`. This commit sets these to empty values in the e2e configuration so they are not required for other providers e2e tests but can still be overridden when running the Nutanix e2e tests.
1 parent b4bd9cd commit b81750e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/e2e/config/caren.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,18 @@ variables:
185185
AMI_LOOKUP_BASEOS: "rocky-9.1"
186186
AMI_LOOKUP_ORG: "999867407951"
187187
# To run Nutanix provider tests, set following variables here or as an env var
188-
# # IP/FQDN of Prism Central.
189-
# NUTANIX_ENDPOINT: ""
188+
# IP/FQDN of Prism Central.
189+
# NOTE: This has to be overridden by specifying the env var NUTANIX_ENDPOINT when running the e2e tests. It is
190+
# set as empty here to enable running the e2e tests for non-nutanix providers locally without setting the env var.
191+
NUTANIX_ENDPOINT: ""
190192
# # Port of Prism Central. Default: 9440
191193
# NUTANIX_PORT: 9440
192194
# # Disable Prism Central certificate checking. Default: false
193195
# NUTANIX_INSECURE: false
194196
# # Prism Central user
195-
# NUTANIX_USER: ""
197+
NUTANIX_USER: ""
196198
# # Prism Central password
197-
# NUTANIX_PASSWORD: ""
199+
NUTANIX_PASSWORD: ""
198200
# # Host IP to be assigned to the CAPX Kubernetes cluster.
199201
# CONTROL_PLANE_ENDPOINT_IP: ""
200202
# # Port of the CAPX Kubernetes cluster. Default: 6443

0 commit comments

Comments
 (0)