From c07465dc36e94adc5da99b56605dbfe651ecf5d9 Mon Sep 17 00:00:00 2001 From: sbolosan <47189541+sbolosan@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:03:45 -0700 Subject: [PATCH] APIGOV-SB001 - update based on sdk change (#274) * APIGOV-SB001 - update based on sdk change * APIGOV-SB001 - update based on review --- discovery/pkg/apigee/pollproxiesjob_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discovery/pkg/apigee/pollproxiesjob_test.go b/discovery/pkg/apigee/pollproxiesjob_test.go index 88dae1a..d465fdc 100644 --- a/discovery/pkg/apigee/pollproxiesjob_test.go +++ b/discovery/pkg/apigee/pollproxiesjob_test.go @@ -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}). @@ -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)