Skip to content

Commit

Permalink
Set Kind of StackConfigPolicy object in tests because the fakeclient …
Browse files Browse the repository at this point in the history
…no longer does it
  • Loading branch information
thbkrkr committed Jan 29, 2024
1 parent cc2cad9 commit 5a1c4a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/stackconfigpolicy/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ func TestReconcileStackConfigPolicy_Reconcile(t *testing.T) {
Name: "test-policy",
}
policyFixture := policyv1alpha1.StackConfigPolicy{
TypeMeta: metav1.TypeMeta{
Kind: "StackConfigPolicy",
},
ObjectMeta: metav1.ObjectMeta{
Namespace: "ns",
Name: "test-policy",
Expand Down

0 comments on commit 5a1c4a8

Please sign in to comment.