Skip to content

Commit 9e71eb9

Browse files
committed
test: fix breaking test
1 parent c981a68 commit 9e71eb9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

controllers/deployment/infrastructure_status_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/metal-stack/metal-lib/pkg/pointer"
1313
"github.com/metal-stack/metal-lib/pkg/testcommon"
1414
"github.com/stretchr/testify/require"
15+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1516
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
1617
"k8s.io/apimachinery/pkg/runtime"
1718
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -456,6 +457,11 @@ func Test_controller_updateInfrastructureStatus(t *testing.T) {
456457
err = ctrl.updateInfrastructureStatus(&controllers.Ctx[*v2.FirewallDeployment]{
457458
Ctx: ctx,
458459
Log: log,
460+
Target: &v2.FirewallDeployment{
461+
ObjectMeta: metav1.ObjectMeta{
462+
Namespace: testNamespace,
463+
},
464+
},
459465
}, "mycluster1", tt.ownedFirewalls)
460466
if diff := cmp.Diff(tt.wantErr, err, testcommon.ErrorStringComparer()); diff != "" {
461467
t.Errorf("error diff (+got -want):\n %s", diff)

0 commit comments

Comments
 (0)