Skip to content

Commit

Permalink
Add self-hosted + ClusterClass test specs from CAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Nov 1, 2023
1 parent c82ab0c commit 5b9e6dc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions test/e2e/capi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,42 @@ var _ = Describe("Running the Cluster API E2E tests", func() {
}
})
})

Context("Running the self-hosted spec with ClusterClass", func() {
SelfHostedSpec(context.TODO(), func() SelfHostedSpecInput {
return SelfHostedSpecInput{
E2EConfig: e2eConfig,
ClusterctlConfigPath: clusterctlConfigPath,
BootstrapClusterProxy: bootstrapClusterProxy,
ArtifactFolder: artifactFolder,
SkipCleanup: skipCleanup,
Flavor: "topology",

Check failure on line 159 in test/e2e/capi_test.go

View workflow job for this annotation

GitHub Actions / coverage

unknown field Flavor in struct literal of type SelfHostedSpecInput
ControlPlaneMachineCount: ptr.To[int64](1),

Check failure on line 160 in test/e2e/capi_test.go

View workflow job for this annotation

GitHub Actions / coverage

unknown field ControlPlaneMachineCount in struct literal of type SelfHostedSpecInput
WorkerMachineCount: ptr.To[int64](1),

Check failure on line 161 in test/e2e/capi_test.go

View workflow job for this annotation

GitHub Actions / coverage

unknown field WorkerMachineCount in struct literal of type SelfHostedSpecInput
ControlPlaneWaiters: clusterctl.ControlPlaneWaiters{
WaitForControlPlaneInitialized: EnsureControlPlaneInitialized,
},
}
})
})

Context("Running the self-hosted spec with ClusterClass and an HA control plane", func() {
SelfHostedSpec(context.TODO(), func() SelfHostedSpecInput {
return SelfHostedSpecInput{
E2EConfig: e2eConfig,
ClusterctlConfigPath: clusterctlConfigPath,
BootstrapClusterProxy: bootstrapClusterProxy,
ArtifactFolder: artifactFolder,
SkipCleanup: skipCleanup,
Flavor: "topology",

Check failure on line 177 in test/e2e/capi_test.go

View workflow job for this annotation

GitHub Actions / coverage

unknown field Flavor in struct literal of type SelfHostedSpecInput
ControlPlaneMachineCount: ptr.To[int64](3),

Check failure on line 178 in test/e2e/capi_test.go

View workflow job for this annotation

GitHub Actions / coverage

unknown field ControlPlaneMachineCount in struct literal of type SelfHostedSpecInput
WorkerMachineCount: ptr.To[int64](1),

Check failure on line 179 in test/e2e/capi_test.go

View workflow job for this annotation

GitHub Actions / coverage

unknown field WorkerMachineCount in struct literal of type SelfHostedSpecInput (typecheck)
ControlPlaneWaiters: clusterctl.ControlPlaneWaiters{
WaitForControlPlaneInitialized: EnsureControlPlaneInitialized,
},
}
})
})
}

// TODO: Add test using KCPRemediationSpec
Expand Down

0 comments on commit 5b9e6dc

Please sign in to comment.