Skip to content

Commit

Permalink
test: fix resource name test cases
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed May 5, 2024
1 parent 8658d9e commit a54345a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestRunFunction(t *testing.T) {
Resource: resource.MustStructJSON(`{"apiVersion":"example.org/v1","kind":"XR"}`),
},
Resources: map[string]*fnv1beta1.Resource{
"": {
"example.org/v1-Generated--": {
Resource: resource.MustStructJSON(`{"apiVersion":"example.org/v1","kind":"Generated"}`),
},
},
Expand Down Expand Up @@ -101,7 +101,7 @@ func TestRunFunction(t *testing.T) {
Resource: resource.MustStructJSON(`{"apiVersion":"example.org/v1","kind":"XR"}`),
},
Resources: map[string]*fnv1beta1.Resource{
"": {
"sql.gcp.upbound.io/v1beta1-DatabaseInstance--": {
Resource: resource.MustStructJSON(`{"apiVersion": "sql.gcp.upbound.io/v1beta1", "kind": "DatabaseInstance", "spec": {"forProvider": {"project": "test-project", "settings": [{"databaseFlags": [{"name": "log_checkpoints", "value": "on"}]}]}}}`),
},
},
Expand Down

0 comments on commit a54345a

Please sign in to comment.