This commit is contained in:
Enrico Candino
2026-06-15 16:10:07 +02:00
parent d01ae2e820
commit 9d0feeef0d
+2
View File
@@ -104,10 +104,12 @@ var _ = When("creating an HCP mode cluster", Label(e2eTestLabel), Label(slowTest
ctx := GinkgoT().Context()
var tokenSecret corev1.Secret
err := k8sClient.Get(ctx, client.ObjectKey{
Name: k3kcluster.TokenSecretName(virtualCluster.Cluster.Name),
Namespace: virtualCluster.Cluster.Namespace,
}, &tokenSecret)
Expect(err).NotTo(HaveOccurred())
Expect(tokenSecret.Data["token"]).NotTo(BeEmpty())
})