Skip to content

Commit

Permalink
test: extending finalization test
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Jan 23, 2025
1 parent ec46ef8 commit 945710b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/subroutines/extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,15 @@ func TestExtensionSubroutine_Finalize(t *testing.T) {
Kind: "AccountExtension",
APIVersion: "core.openmfp.io/v1alpha1",
},
MetadataGoTemplate: apiextensionsv1.JSON{

Check failure on line 657 in pkg/subroutines/extensions_test.go

View workflow job for this annotation

GitHub Actions / pipe / lint / lint

composites: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON struct literal uses unkeyed fields (govet)
[]byte(`{
"annotations": {
"account.core.openmfp.io/owner": "{{ .Account.metadata.name }}",
"account.core.openmfp.io/owner-namespace": "{{ .Account.metadata.namespace }}"
},
"name": "{{ .Account.metadata.name }}"
}`),
},
SpecGoTemplate: apiextensionsv1.JSON{},
},
},
Expand Down

0 comments on commit 945710b

Please sign in to comment.