@@ -275,14 +275,14 @@ func TestBaremetalGeneratedAssetFiles(t *testing.T) {
275
275
},
276
276
},
277
277
ControlPlane : & types.MachinePool {
278
- Replicas : pointer . Int64Ptr ( 1 ),
278
+ Replicas : ptr. To [ int64 ]( 3 ),
279
279
Platform : types.MachinePoolPlatform {
280
280
BareMetal : & baremetal.MachinePool {},
281
281
},
282
282
},
283
283
Compute : []types.MachinePool {
284
284
{
285
- Replicas : pointer . Int64Ptr (1 ),
285
+ Replicas : ptr. To [ int64 ] (1 ),
286
286
Platform : types.MachinePoolPlatform {},
287
287
},
288
288
},
@@ -306,13 +306,13 @@ func TestBaremetalGeneratedAssetFiles(t *testing.T) {
306
306
master := & Master {}
307
307
assert .NoError (t , master .Generate (context .Background (), parents ))
308
308
309
- assert .Len (t , master .HostFiles , 2 )
309
+ assert .Len (t , master .HostFiles , 4 )
310
310
verifyHost (t , master .HostFiles [0 ], "openshift/99_openshift-cluster-api_hosts-0.yaml" , "master-0" )
311
- verifyHost (t , master .HostFiles [1 ], "openshift/99_openshift-cluster-api_hosts-1.yaml" , "worker-0" )
311
+ verifyHost (t , master .HostFiles [3 ], "openshift/99_openshift-cluster-api_hosts-1.yaml" , "worker-0" )
312
312
313
- assert .Len (t , master .SecretFiles , 2 )
313
+ assert .Len (t , master .SecretFiles , 4 )
314
314
verifySecret (t , master .SecretFiles [0 ], "openshift/99_openshift-cluster-api_host-bmc-secrets-0.yaml" , "master-0-bmc-secret" , "map[password:[112 119 100 45 48] username:[117 115 114 45 48]]" )
315
- verifySecret (t , master .SecretFiles [1 ], "openshift/99_openshift-cluster-api_host-bmc-secrets-1.yaml" , "worker-0-bmc-secret" , "map[password:[112 119 100 45 49] username:[117 115 114 45 49]]" )
315
+ verifySecret (t , master .SecretFiles [3 ], "openshift/99_openshift-cluster-api_host-bmc-secrets-1.yaml" , "worker-0-bmc-secret" , "map[password:[112 119 100 45 49] username:[117 115 114 45 49]]" )
316
316
317
317
assert .Len (t , master .NetworkConfigSecretFiles , 1 )
318
318
verifySecret (t , master .NetworkConfigSecretFiles [0 ], "openshift/99_openshift-cluster-api_host-network-config-secrets-0.yaml" , "master-0-network-config-secret" , "map[nmstate:[105 110 116 101 114 102 97 99 101 115 58 32 110 117 108 108 10]]" )
0 commit comments