Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
fix(INT-6706): check service account key in validateInvocationConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaston Yelmini authored and gastonyelmini committed Feb 10, 2023
1 parent 95c6e33 commit 8fc031b
Show file tree
Hide file tree
Showing 16 changed files with 1,230 additions and 1,020 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"log": {
"_recordingName": "getStepStartStateKeyValidation",
"creator": {
"comment": "persister:JupiterOneIntegationFSPersister",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "acea721c8193b51ced888cae721cc423",
"_order": 0,
"cache": {},
"request": {
"bodySize": 711,
"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": "711"
},
{
"_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": 181,
"content": {
"encoding": "utf-8",
"mimeType": "application/json; charset=UTF-8",
"size": 181,
"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": "Mon, 30 Jan 2023 13:47:19 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": 400,
"statusText": "Bad Request"
},
"startedDateTime": "2023-01-30T13:47:19.203Z",
"time": 120,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 120
}
}
],
"pages": [],
"version": "1.2"
}
}

This file was deleted.

36 changes: 18 additions & 18 deletions src/__recordings__/getStepStartStates_2244155193/recording.har

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"log": {
"_recordingName": "validateInvocation:failure:accountNotFound",
"creator": {
"comment": "persister:JupiterOneIntegationFSPersister",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "acea721c8193b51ced888cae721cc423",
"_order": 0,
"cache": {},
"request": {
"bodySize": 711,
"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": "711"
},
{
"_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": 144,
"content": {
"encoding": "utf-8",
"mimeType": "application/json; charset=UTF-8",
"size": 144,
"text": "{\"error\":\"invalid_grant\",\"error_description\":\"Invalid grant: account not found\"}"
},
"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:30:16 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": 400,
"statusText": "Bad Request"
},
"startedDateTime": "2023-02-02T12:30:16.257Z",
"time": 118,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 118
}
}
],
"pages": [],
"version": "1.2"
}
}
Loading

0 comments on commit 8fc031b

Please sign in to comment.