Skip to content

Commit

Permalink
APIGOV-SB001 - update based on sdk change (#274)
Browse files Browse the repository at this point in the history
* APIGOV-SB001 - update based on sdk change

* APIGOV-SB001 - update based on review
  • Loading branch information
sbolosan authored Sep 12, 2024
1 parent 1d023ee commit c07465d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discovery/pkg/apigee/pollproxiesjob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func Test_pollProxiesJob(t *testing.T) {
hasAPIKey: tc.hasAPIKey,
hasOauth: tc.hasOauth,
}

proxyJob := newPollProxiesJob().
SetSpecClient(client).
SetSpecCache(mockProxyCache{pathSpec: tc.specPath, nameSpec: tc.specName}).
Expand All @@ -123,7 +124,7 @@ func Test_pollProxiesJob(t *testing.T) {
if tc.hasOauth {
crds = append(crds, provisioning.OAuthSecretCRD)
}
assert.Equal(t, crds, sb.GetCredentialRequestDefinitions())
assert.Equal(t, crds, sb.GetCredentialRequestDefinitions(make([]string, 0)))

if tc.specFound {
assert.NotEmpty(t, sb.SpecDefinition)
Expand Down

0 comments on commit c07465d

Please sign in to comment.