Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DNM] Test e2e
Browse files Browse the repository at this point in the history
eromanova committed Jan 21, 2025

Verified

This commit was signed with the committer’s verified signature.
eromanova Ekaterina Kazakova
1 parent 42f3eb2 commit d9c751d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
@@ -55,6 +55,43 @@ var _ = BeforeSuite(func() {
_, err = utils.Run(cmd)
Expect(err).NotTo(HaveOccurred())

var errs error
for _, envVar := range []string{
clusterdeployment.EnvVarAWSAccessKeyID,
clusterdeployment.EnvVarAWSSecretAccessKey,
clusterdeployment.EnvVarAzureSubscription,
clusterdeployment.EnvVarAzureTenantID,
clusterdeployment.EnvVarAzureClientID,
clusterdeployment.EnvVarAzureClientSecret,
clusterdeployment.EnvVarAzureClientSecret,
clusterdeployment.EnvVarVSphereUser,
clusterdeployment.EnvVarVSpherePassword,
"VSPHERE_SERVER",
"VSPHERE_THUMBPRINT",
"VSPHERE_DATACENTER",
"VSPHERE_DATASTORE",
"VSPHERE_RESOURCEPOOL",
"VSPHERE_FOLDER",
"VSPHERE_CONTROL_PLANE_ENDPOINT",
"VSPHERE_VM_TEMPLATE",
"VSPHERE_NETWORK",
"VSPHERE_SSH_KEY",
} {
result, isSet := os.LookupEnv(envVar)
if !isSet {
_, _ = fmt.Fprintf(GinkgoWriter, "env var %s is unset\n", envVar)
} else {
_, _ = fmt.Fprintf(GinkgoWriter, "env var %s is set\n", envVar)
}
if len(result) == 0 {
_, _ = fmt.Fprintf(GinkgoWriter, "env var %s is empty\n", envVar)
} else {
_, _ = fmt.Fprintf(GinkgoWriter, "env var %s is not empty\n", envVar)
}
}

Skip("Skip for testing")

By("validating that the kcm-controller and CAPI provider controllers are running and ready")
kc := kubeclient.NewFromLocal(internalutils.DefaultSystemNamespace)
Eventually(func() error {

0 comments on commit d9c751d

Please sign in to comment.