This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
generated from JupiterOne-Archives/integration-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #571 from JupiterOne/INT-6706-integration-key-test
fix(INT-6706): check service account key in validateInvocationConfig
- Loading branch information
Showing
18 changed files
with
1,095 additions
and
1,029 deletions.
There are no files selected for viewing
510 changes: 0 additions & 510 deletions
510
src/__recordings__/getStepStartStatesExtraTests_2281574594/recording.har
This file was deleted.
Oops, something went wrong.
36 changes: 18 additions & 18 deletions
36
src/__recordings__/getStepStartStates_2244155193/recording.har
Large diffs are not rendered by default.
Oops, something went wrong.
264 changes: 264 additions & 0 deletions
264
src/__recordings__/validateInvocation-failure-invalidProjectId_3566742648/recording.har
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,264 @@ | ||
{ | ||
"log": { | ||
"_recordingName": "validateInvocation:failure:invalidProjectId", | ||
"creator": { | ||
"comment": "persister:JupiterOneIntegationFSPersister", | ||
"name": "Polly.JS", | ||
"version": "6.0.5" | ||
}, | ||
"entries": [ | ||
{ | ||
"_id": "acea721c8193b51ced888cae721cc423", | ||
"_order": 0, | ||
"cache": {}, | ||
"request": { | ||
"bodySize": 709, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"_fromType": "array", | ||
"name": "content-type", | ||
"value": "application/x-www-form-urlencoded" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "accept", | ||
"value": "application/json" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "content-length", | ||
"value": "709" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "user-agent", | ||
"value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "accept-encoding", | ||
"value": "gzip,deflate" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "connection", | ||
"value": "close" | ||
}, | ||
{ | ||
"name": "host", | ||
"value": "www.googleapis.com" | ||
} | ||
], | ||
"headersSize": 300, | ||
"httpVersion": "HTTP/1.1", | ||
"method": "POST", | ||
"postData": { | ||
"mimeType": "application/x-www-form-urlencoded", | ||
"params": [], | ||
"text": "[REDACTED]" | ||
}, | ||
"queryString": [], | ||
"url": "https://www.googleapis.com/oauth2/v4/token" | ||
}, | ||
"response": { | ||
"bodySize": 1275, | ||
"content": { | ||
"encoding": "utf-8", | ||
"mimeType": "application/json; charset=UTF-8", | ||
"size": 1275, | ||
"text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" | ||
}, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "content-type", | ||
"value": "application/json; charset=UTF-8" | ||
}, | ||
{ | ||
"name": "vary", | ||
"value": "Origin, X-Origin, Referer" | ||
}, | ||
{ | ||
"name": "date", | ||
"value": "Thu, 02 Feb 2023 12:43:21 GMT" | ||
}, | ||
{ | ||
"name": "server", | ||
"value": "scaffolding on HTTPServer2" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "private" | ||
}, | ||
{ | ||
"name": "x-xss-protection", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "x-frame-options", | ||
"value": "SAMEORIGIN" | ||
}, | ||
{ | ||
"name": "x-content-type-options", | ||
"value": "nosniff" | ||
}, | ||
{ | ||
"name": "alt-svc", | ||
"value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" | ||
}, | ||
{ | ||
"name": "connection", | ||
"value": "close" | ||
} | ||
], | ||
"headersSize": 390, | ||
"httpVersion": "HTTP/1.1", | ||
"redirectURL": "", | ||
"status": 200, | ||
"statusText": "OK" | ||
}, | ||
"startedDateTime": "2023-02-02T12:43:20.923Z", | ||
"time": 122, | ||
"timings": { | ||
"blocked": -1, | ||
"connect": -1, | ||
"dns": -1, | ||
"receive": 0, | ||
"send": 0, | ||
"ssl": -1, | ||
"wait": 122 | ||
} | ||
}, | ||
{ | ||
"_id": "7cafef90c67977cce09b676b39635c40", | ||
"_order": 0, | ||
"cache": {}, | ||
"request": { | ||
"bodySize": 0, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"_fromType": "array", | ||
"name": "x-goog-api-client", | ||
"value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "accept-encoding", | ||
"value": "gzip" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "user-agent", | ||
"value": "google-api-nodejs-client/5.0.2 (gzip)" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "authorization", | ||
"value": "[REDACTED]" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "accept", | ||
"value": "application/json" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "connection", | ||
"value": "close" | ||
}, | ||
{ | ||
"name": "host", | ||
"value": "serviceusage.googleapis.com" | ||
} | ||
], | ||
"headersSize": 1396, | ||
"httpVersion": "HTTP/1.1", | ||
"method": "GET", | ||
"queryString": [ | ||
{ | ||
"name": "pageSize", | ||
"value": "200" | ||
}, | ||
{ | ||
"name": "filter", | ||
"value": "state:ENABLED" | ||
} | ||
], | ||
"url": "https://serviceusage.googleapis.com/v1/projects/j1-gc-integration-dev-v312/services?pageSize=200&filter=state%3AENABLED" | ||
}, | ||
"response": { | ||
"bodySize": 792, | ||
"content": { | ||
"encoding": "utf-8", | ||
"mimeType": "application/json; charset=UTF-8", | ||
"size": 792, | ||
"text": "{\"error\":{\"code\":403,\"message\":\"Project 'j1-gc-integration-dev-v312' not found or permission denied.\\nHelp Token: AVUsNs2VIo3xz9nuqR13Q5EIqpx_jsYBy0a0adNKx63wfZbqbhB0Suhoyni35hl4aLPXOC7DAGXkunqWs-Pvfoe0jCYFLNcEBe5rRc_ZtLejisrJ\",\"errors\":[{\"message\":\"Project 'j1-gc-integration-dev-v312' not found or permission denied.\\nHelp Token: AVUsNs2VIo3xz9nuqR13Q5EIqpx_jsYBy0a0adNKx63wfZbqbhB0Suhoyni35hl4aLPXOC7DAGXkunqWs-Pvfoe0jCYFLNcEBe5rRc_ZtLejisrJ\",\"domain\":\"global\",\"reason\":\"forbidden\"}],\"status\":\"PERMISSION_DENIED\",\"details\":[{\"@type\":\"type.googleapis.com/google.rpc.PreconditionFailure\",\"violations\":[{\"type\":\"googleapis.com\",\"subject\":\"?error_code=210002&type=Project&resource_id=j1-gc-integration-dev-v312\"}]},{\"@type\":\"type.googleapis.com/google.rpc.ErrorInfo\",\"reason\":\"RESOURCES_NOT_FOUND\",\"domain\":\"serviceusage.googleapis.com\",\"metadata\":{\"type\":\"Project\",\"resource_id\":\"j1-gc-integration-dev-v312\"}}]}}" | ||
}, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "vary", | ||
"value": "Origin, X-Origin, Referer" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "application/json; charset=UTF-8" | ||
}, | ||
{ | ||
"name": "date", | ||
"value": "Thu, 02 Feb 2023 12:43:22 GMT" | ||
}, | ||
{ | ||
"name": "server", | ||
"value": "ESF" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "private" | ||
}, | ||
{ | ||
"name": "x-xss-protection", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "x-frame-options", | ||
"value": "SAMEORIGIN" | ||
}, | ||
{ | ||
"name": "x-content-type-options", | ||
"value": "nosniff" | ||
}, | ||
{ | ||
"name": "alt-svc", | ||
"value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" | ||
}, | ||
{ | ||
"name": "connection", | ||
"value": "close" | ||
} | ||
], | ||
"headersSize": 367, | ||
"httpVersion": "HTTP/1.1", | ||
"redirectURL": "", | ||
"status": 403, | ||
"statusText": "Forbidden" | ||
}, | ||
"startedDateTime": "2023-02-02T12:43:21.051Z", | ||
"time": 1151, | ||
"timings": { | ||
"blocked": -1, | ||
"connect": -1, | ||
"dns": -1, | ||
"receive": 0, | ||
"send": 0, | ||
"ssl": -1, | ||
"wait": 1151 | ||
} | ||
} | ||
], | ||
"pages": [], | ||
"version": "1.2" | ||
} | ||
} |
Oops, something went wrong.