Skip to content

Commit

Permalink
Add finalizers to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Jul 21, 2023
1 parent e96c612 commit 927413b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions controllers/azuremanagedmachinepool_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ func newReadyAzureManagedMachinePoolCluster() (*clusterv1.Cluster, *infrav1.Azur
// AzureManagedMachinePool
ammp := &infrav1.AzureManagedMachinePool{
ObjectMeta: metav1.ObjectMeta{
Name: "foo-ammp",
Namespace: "foobar",
Name: "foo-ammp",
Namespace: "foobar",
Finalizers: []string{"test"},
OwnerReferences: []metav1.OwnerReference{
{
Name: "foo-mp1",
Expand Down
5 changes: 3 additions & 2 deletions exp/controllers/azuremachinepoolmachine_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ func getAReadyMachinePoolMachineCluster() (*clusterv1.Cluster, *infrav1.AzureClu

ampm := &infrav1exp.AzureMachinePoolMachine{
ObjectMeta: metav1.ObjectMeta{
Name: "ampm1",
Namespace: "default",
Name: "ampm1",
Namespace: "default",
Finalizers: []string{"test"},
OwnerReferences: []metav1.OwnerReference{
{
Name: amp.Name,
Expand Down

0 comments on commit 927413b

Please sign in to comment.