File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments