Skip to content

Commit

Permalink
Fix some nits in Cluster topology engine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Sep 19, 2023
1 parent 2d7d193 commit 5fd8f3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/controllers/topology/cluster/patches/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ func TestApply(t *testing.T) {
// * A ClusterClass with its corresponding templates:
// * ControlPlaneTemplate with a corresponding ControlPlane InfrastructureMachineTemplate.
// * MachineDeploymentClass "default-worker" with corresponding BootstrapTemplate and InfrastructureMachineTemplate.
// * MachinePoolClass "default-mp-worker" with corresponding BootstrapTemplate and InfrastructureMachineTemplate.
// * MachinePoolClass "default-mp-worker" with corresponding BootstrapTemplate and InfrastructureMachinePoolTemplate.
// * The corresponding Cluster.spec.topology:
// * with 3 ControlPlane replicas
// * with a "default-worker-topo1" MachineDeploymentTopology without replicas (based on "default-worker")
Expand Down Expand Up @@ -988,13 +988,13 @@ func setupTestObjects() (*scope.ClusterBlueprint, *scope.ClusterState) {

workerInfrastructureMachineTemplate := builder.InfrastructureMachineTemplate(metav1.NamespaceDefault, "linux-worker-inframachinetemplate").
Build()
workerInfrastructureMachinePoolTemplate := builder.InfrastructureMachinePoolTemplate(metav1.NamespaceDefault, "linux-worker-inframachinetemplate").
workerInfrastructureMachinePoolTemplate := builder.InfrastructureMachinePoolTemplate(metav1.NamespaceDefault, "linux-worker-inframachinepooltemplate").
Build()
workerInfrastructureMachinePool := builder.InfrastructureMachinePool(metav1.NamespaceDefault, "linux-worker-inframachinetemplate").
workerInfrastructureMachinePool := builder.InfrastructureMachinePool(metav1.NamespaceDefault, "linux-worker-inframachinepool").
Build()
workerBootstrapTemplate := builder.BootstrapTemplate(metav1.NamespaceDefault, "linux-worker-bootstraptemplate").
workerBootstrapTemplate := builder.BootstrapTemplate(metav1.NamespaceDefault, "linux-worker-bootstrapconfigtemplate").
Build()
workerBootstrapConfig := builder.BootstrapConfig(metav1.NamespaceDefault, "linux-worker-bootstraptemplate").
workerBootstrapConfig := builder.BootstrapConfig(metav1.NamespaceDefault, "linux-worker-bootstrapconfig").
Build()
mdClass1 := builder.MachineDeploymentClass("default-worker").
WithInfrastructureTemplate(workerInfrastructureMachineTemplate).
Expand Down Expand Up @@ -1064,7 +1064,7 @@ func setupTestObjects() (*scope.ClusterBlueprint, *scope.ClusterState) {
},
{
Name: "default-mp-worker-infra",
// This value should be overwritten for the default-mp-worker-topo1 MachineDeployment.
// This value should be overwritten for the default-mp-worker-topo1 MachinePool.
Value: apiextensionsv1.JSON{Raw: []byte(`"default-mp-worker-topo2"`)},
DefinitionFrom: "inline",
},
Expand Down

0 comments on commit 5fd8f3d

Please sign in to comment.