Skip to content

Commit

Permalink
Fill up supervisor e2e test
Browse files Browse the repository at this point in the history
- testing ClusterClass changes

Signed-off-by: Gong Zhang <[email protected]>
  • Loading branch information
zhanggbj committed May 20, 2024
1 parent 3bd6c93 commit a0a90f3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/e2e/clusterclass_changes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,29 @@ var _ = Describe("When testing ClusterClass changes [ClusterClass]", func() {
})
})
})

var _ = Describe("When testing ClusterClass changes [vcsim] [supervisor] [PR-Blocking] [ClusterClass]", func() {
const specName = "clusterclass-changes" // copied from CAPI
Setup(specName, func(testSpecificSettingsGetter func() testSettings) {
capie2e.ClusterClassChangesSpec(ctx, func() capie2e.ClusterClassChangesSpecInput {
return capie2e.ClusterClassChangesSpecInput{
E2EConfig: e2eConfig,
ClusterctlConfigPath: testSpecificSettingsGetter().ClusterctlConfigPath,
BootstrapClusterProxy: bootstrapClusterProxy,
ArtifactFolder: artifactFolder,
SkipCleanup: skipCleanup,
Flavor: testSpecificSettingsGetter().FlavorForMode("topology"),
PostNamespaceCreated: testSpecificSettingsGetter().PostNamespaceCreatedFunc,
ModifyControlPlaneFields: map[string]interface{}{
"spec.machineTemplate.nodeDrainTimeout": "10s",
},
ModifyMachineDeploymentBootstrapConfigTemplateFields: map[string]interface{}{
"spec.template.spec.verbosity": int64(4),
},
ModifyMachineDeploymentInfrastructureMachineTemplateFields: map[string]interface{}{
"spec.template.spec.powerOffMode": "hard",
},
}
})
})
})

0 comments on commit a0a90f3

Please sign in to comment.