-
Notifications
You must be signed in to change notification settings - Fork 20
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 #318 from trivir/feature/service-list-tests
Add service list test mocks
- Loading branch information
Showing
12 changed files
with
2,832 additions
and
0 deletions.
There are no files selected for viewing
440 changes: 440 additions & 0 deletions
440
mocks/service_1457512036/list_217798785/0_890022063/am_1076162899/recording.har
Large diffs are not rendered by default.
Oops, something went wrong.
138 changes: 138 additions & 0 deletions
138
mocks/service_1457512036/list_217798785/0_890022063/oauth2_393036114/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,138 @@ | ||
{ | ||
"log": { | ||
"_recordingName": "service/list/0/oauth2", | ||
"creator": { | ||
"comment": "persister:fs", | ||
"name": "Polly.JS", | ||
"version": "6.0.6" | ||
}, | ||
"entries": [ | ||
{ | ||
"_id": "ff75519a93ccab829f8ee8cf5e92b49f", | ||
"_order": 0, | ||
"cache": {}, | ||
"request": { | ||
"bodySize": 1138, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "accept", | ||
"value": "application/json, text/plain, */*" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "application/x-www-form-urlencoded" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "@rockcarver/frodo-lib/2.0.0-34" | ||
}, | ||
{ | ||
"name": "x-forgerock-transactionid", | ||
"value": "frodo-e62e104e-cae2-4706-a0ab-46fcbc85ec55" | ||
}, | ||
{ | ||
"name": "accept-api-version", | ||
"value": "protocol=2.1,resource=1.0" | ||
}, | ||
{ | ||
"name": "content-length", | ||
"value": 1138 | ||
}, | ||
{ | ||
"name": "host", | ||
"value": "openam-frodo-dev.forgeblocks.com" | ||
} | ||
], | ||
"headersSize": 397, | ||
"httpVersion": "HTTP/1.1", | ||
"method": "POST", | ||
"postData": { | ||
"mimeType": "application/x-www-form-urlencoded", | ||
"params": [], | ||
"text": "assertion=<assertion jwt token>&client_id=service-account&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&scope=fr:am:* fr:idm:* fr:idc:esv:*" | ||
}, | ||
"queryString": [], | ||
"url": "https://openam-frodo-dev.forgeblocks.com/am/oauth2/access_token" | ||
}, | ||
"response": { | ||
"bodySize": 1276, | ||
"content": { | ||
"mimeType": "application/json;charset=UTF-8", | ||
"size": 1276, | ||
"text": "{\"access_token\":\"<access token>\",\"scope\":\"fr:am:* fr:idc:esv:* fr:idm:*\",\"token_type\":\"Bearer\",\"expires_in\":899}" | ||
}, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "x-frame-options", | ||
"value": "SAMEORIGIN" | ||
}, | ||
{ | ||
"name": "content-security-policy-report-only", | ||
"value": "frame-ancestors 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'" | ||
}, | ||
{ | ||
"name": "x-content-type-options", | ||
"value": "nosniff" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "no-store" | ||
}, | ||
{ | ||
"name": "pragma", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "application/json;charset=UTF-8" | ||
}, | ||
{ | ||
"name": "content-length", | ||
"value": "1276" | ||
}, | ||
{ | ||
"name": "date", | ||
"value": "Thu, 05 Oct 2023 18:49:46 GMT" | ||
}, | ||
{ | ||
"name": "x-forgerock-transactionid", | ||
"value": "frodo-e62e104e-cae2-4706-a0ab-46fcbc85ec55" | ||
}, | ||
{ | ||
"name": "strict-transport-security", | ||
"value": "max-age=31536000; includeSubDomains; preload;" | ||
}, | ||
{ | ||
"name": "via", | ||
"value": "1.1 google" | ||
}, | ||
{ | ||
"name": "alt-svc", | ||
"value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" | ||
} | ||
], | ||
"headersSize": 541, | ||
"httpVersion": "HTTP/1.1", | ||
"redirectURL": "", | ||
"status": 200, | ||
"statusText": "OK" | ||
}, | ||
"startedDateTime": "2023-10-05T18:49:46.384Z", | ||
"time": 107, | ||
"timings": { | ||
"blocked": -1, | ||
"connect": -1, | ||
"dns": -1, | ||
"receive": 0, | ||
"send": 0, | ||
"ssl": -1, | ||
"wait": 107 | ||
} | ||
} | ||
], | ||
"pages": [], | ||
"version": "1.2" | ||
} | ||
} |
150 changes: 150 additions & 0 deletions
150
mocks/service_1457512036/list_217798785/0_890022063/openidm_3290118515/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,150 @@ | ||
{ | ||
"log": { | ||
"_recordingName": "service/list/0/openidm", | ||
"creator": { | ||
"comment": "persister:fs", | ||
"name": "Polly.JS", | ||
"version": "6.0.6" | ||
}, | ||
"entries": [ | ||
{ | ||
"_id": "ac31ccceb288fe104fb927288dc7c001", | ||
"_order": 0, | ||
"cache": {}, | ||
"request": { | ||
"bodySize": 0, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "accept", | ||
"value": "application/json, text/plain, */*" | ||
}, | ||
{ | ||
"name": "user-agent", | ||
"value": "@rockcarver/frodo-lib/2.0.0-34" | ||
}, | ||
{ | ||
"name": "x-forgerock-transactionid", | ||
"value": "frodo-e62e104e-cae2-4706-a0ab-46fcbc85ec55" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "application/json" | ||
}, | ||
{ | ||
"name": "authorization", | ||
"value": "Bearer <bearer token>" | ||
}, | ||
{ | ||
"name": "host", | ||
"value": "openam-frodo-dev.forgeblocks.com" | ||
} | ||
], | ||
"headersSize": 1562, | ||
"httpVersion": "HTTP/1.1", | ||
"method": "GET", | ||
"queryString": [ | ||
{ | ||
"name": "_fields", | ||
"value": "*" | ||
} | ||
], | ||
"url": "https://openam-frodo-dev.forgeblocks.com/openidm/managed/svcacct/b672336b-41ef-428d-ae4a-e0c082875377?_fields=%2A" | ||
}, | ||
"response": { | ||
"bodySize": 1045, | ||
"content": { | ||
"mimeType": "application/json;charset=utf-8", | ||
"size": 1045, | ||
"text": "{\"_id\":\"b672336b-41ef-428d-ae4a-e0c082875377\",\"_rev\":\"dac6d6c0-9ef5-4725-b8df-772785c9040e-4798\",\"accountStatus\":\"active\",\"name\":\"frodo-test\",\"description\":\"Frodo Test\",\"scopes\":[\"fr:am:*\",\"fr:idm:*\",\"fr:idc:esv:*\"],\"jwks\":\"{\\\"keys\\\":[{\\\"e\\\":\\\"AQAB\\\",\\\"kty\\\":\\\"RSA\\\",\\\"n\\\":\\\"8lN2UVDDHchL_gIYS5lAiEVAVocyqWHmqBPwPkd22NRMLetczaVSH2UQHoQu7SSKeAtojVJUYuxRtGPfGNExZurTy3CRlzpaNa67B6jyunycPHnyNked0ceFGfjD9c6e0b97L5wqwk2YNVVMGa9c1m8R9HWk2kg9lRwlZE_piwTM9bw8tuWfL1A2-fTDQB2PZSgGGz86jG1RGMY7dnafVKIX3HbW98xOxOwqIRz607IQr-NFia5zjTltpJjR1qOlEFmdHqGTGCnFcHxeJWmKOWcDM4WmfWcgK3zR9Br-aZoDTl8RMAths30Pc1pe_dl5OepxCYQ7b0BXg0zQaYcx5G5ZcNR3ldjDNfpiXg1viWjEBiwiCg7gkYksBu0aFHX2pc4KKHKcyIeD0sbhaLSK3JXhI1TJvm7rwyX1wsRKmMTGTZMxYJlADZufKKd-Jg7k2_iwP3WUJxdgkJsgvLj7ZbTf5Paz7_FLeSajjtGPu6hGSWV8uOGgRgcnJgz3DP2S9qfHI7nKswtgwFdjbOMK39iNjU8PI-cOaaVKQcH88xBCu1bpCX1MIVvZ5arQF783qasj9bBB4t27gKXOauIr-sXMUI6_L7CQ7IqWld8VvNWKReMMqiRQV9huEEV1chCFzZI_aEW82fDC9dRbFXG-w92PhPPVbNznWsrhO1aPxA8\\\"}]}\",\"maxCachingTime\":\"15\",\"maxIdleTime\":\"15\",\"maxSessionTime\":\"15\",\"quotaLimit\":\"5\"}" | ||
}, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "date", | ||
"value": "Thu, 05 Oct 2023 18:49:46 GMT" | ||
}, | ||
{ | ||
"name": "cache-control", | ||
"value": "no-store" | ||
}, | ||
{ | ||
"name": "content-security-policy", | ||
"value": "default-src 'none';frame-ancestors 'none';sandbox" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "application/json;charset=utf-8" | ||
}, | ||
{ | ||
"name": "cross-origin-opener-policy", | ||
"value": "same-origin" | ||
}, | ||
{ | ||
"name": "cross-origin-resource-policy", | ||
"value": "same-origin" | ||
}, | ||
{ | ||
"name": "etag", | ||
"value": "\"dac6d6c0-9ef5-4725-b8df-772785c9040e-4798\"" | ||
}, | ||
{ | ||
"name": "expires", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "pragma", | ||
"value": "no-cache" | ||
}, | ||
{ | ||
"name": "x-content-type-options", | ||
"value": "nosniff" | ||
}, | ||
{ | ||
"name": "x-frame-options", | ||
"value": "DENY" | ||
}, | ||
{ | ||
"name": "content-length", | ||
"value": "1045" | ||
}, | ||
{ | ||
"name": "x-forgerock-transactionid", | ||
"value": "frodo-e62e104e-cae2-4706-a0ab-46fcbc85ec55" | ||
}, | ||
{ | ||
"name": "strict-transport-security", | ||
"value": "max-age=31536000; includeSubDomains; preload;" | ||
}, | ||
{ | ||
"name": "via", | ||
"value": "1.1 google" | ||
}, | ||
{ | ||
"name": "alt-svc", | ||
"value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" | ||
} | ||
], | ||
"headersSize": 648, | ||
"httpVersion": "HTTP/1.1", | ||
"redirectURL": "", | ||
"status": 200, | ||
"statusText": "OK" | ||
}, | ||
"startedDateTime": "2023-10-05T18:49:46.595Z", | ||
"time": 83, | ||
"timings": { | ||
"blocked": -1, | ||
"connect": -1, | ||
"dns": -1, | ||
"receive": 0, | ||
"send": 0, | ||
"ssl": -1, | ||
"wait": 83 | ||
} | ||
} | ||
], | ||
"pages": [], | ||
"version": "1.2" | ||
} | ||
} |
Oops, something went wrong.