Skip to content

Commit

Permalink
Add template check
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Dec 9, 2024
1 parent 70f2321 commit f83cff8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var _ = BeforeSuite(func() {
Eventually(func() error {
err = managedcluster.ValidateClusterTemplates(context.Background(), kc)
if err != nil {
_, _ = fmt.Fprintf(GinkgoWriter, "cluster tempolate validation failed: %v\n", err)
_, _ = fmt.Fprintf(GinkgoWriter, "cluster template validation failed: %v\n", err)
return err
}
return nil
Expand Down
8 changes: 8 additions & 0 deletions test/e2e/provider_aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ var _ = Describe("AWS Templates", Label("provider:cloud", "provider:aws"), Order
return nil
}).WithTimeout(15 * time.Minute).WithPolling(10 * time.Second).Should(Succeed())

Eventually(func() error {
err = managedcluster.ValidateClusterTemplates(context.Background(), standaloneClient)
if err != nil {
_, _ = fmt.Fprintf(GinkgoWriter, "cluster template validation failed: %v\n", err)
return err
}
return nil
}).WithTimeout(15 * time.Minute).WithPolling(10 * time.Second).Should(Succeed())
// Ensure AWS credentials are set in the standalone cluster.
clusteridentity.New(standaloneClient, managedcluster.ProviderAWS)

Expand Down

0 comments on commit f83cff8

Please sign in to comment.