Skip to content

Commit 33c8701

Browse files
author
Mladen Rusev
committed
remove redundant test snippet
1 parent c8cdb01 commit 33c8701

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

pkg/internal/cyberark/servicediscovery/discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (c *Client) DiscoverServices(ctx context.Context, subdomain string) (*Servi
128128
if err == io.ErrUnexpectedEOF {
129129
return nil, fmt.Errorf("rejecting JSON response from server as it was too large or was truncated")
130130
}
131-
return nil, fmt.Errorf("failed to parse JSON from otherwise successful request to service discovery endpoint: %w", err)
131+
return nil, fmt.Errorf("failed to parse JSON from otherwise successful request to service discovery endpoint: %s", err)
132132
}
133133
var identityAPI, discoveryContextAPI string
134134
for _, svc := range discoveryResp.Services {

pkg/internal/cyberark/servicediscovery/mock.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,6 @@ func (mds *mockDiscoveryServer) ServeHTTP(w http.ResponseWriter, r *http.Request
107107
case "no-identity":
108108
// return a snippet of valid service discovery JSON, but don't include the identity service
109109
_, _ = w.Write([]byte(`{
110-
"region": "us-east-1",
111-
"dr_region": "us-east-2",
112-
"subdomain": "venafi-test",
113-
"platform_id": "platform-123",
114-
"identity_id": "identity-456",
115-
"default_url": "https://venafi-test.integration-cyberark.cloud",
116-
"tenant_flags": {
117-
"is_crdr_supported": "true",
118-
"is_crdr_active": "true"
119-
},
120110
"services": [
121111
{
122112
"service_name": "data_privacy",

0 commit comments

Comments
 (0)