Files
romm/backend/handler/tests/cassettes/test_get_platform.yaml
2024-05-21 10:18:13 -04:00

427 lines
13 KiB
YAML
Generated

interactions:
- request:
body: fields id,name; where slug="n64"; limit 200;
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer test_token
Client-ID:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
- keep-alive
Content-Length:
- "44"
User-Agent:
- python-requests/2.31.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
body:
string:
"{\n \"message\": \"Authorization Failure. Have you tried:\",\n \"Tip
1\": \"Ensure you are sending Authorization and Client-ID as headers.\",\n
\ \"Tip 2\": \"Ensure Authorization value starts with 'Bearer ', including
the space\",\n \"Tip 3\": \"Ensure Authorization value ends with the App
Access Token you generated, NOT your Client Secret.\",\n \"Docs\": \"https://api-docs.igdb.com/#authentication\",\n
\ \"Discord\": \"https://discord.gg/FrvfwQg\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 850a6a084fe22491-ZAG
Connection:
- keep-alive
Content-Length:
- "437"
Content-Type:
- application/json
Date:
- Mon, 05 Feb 2024 10:19:17 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=wI5qRiMVg9zeRFC16EWmg5QX4LC2PiWBKed5CMdjsrs-1707128357-1-AdqBajl1HykmrPno2Olmo7Zpm1T2Izl1AN267NfkMklNUNsMll5MKFYK9+X0hB6xMDwYFuaYqPMsN1TIEfK0bLA=;
path=/; expires=Mon, 05-Feb-24 10:49:17 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Via:
- 1.1 4ca98b546b8d71c72caf6a3d8f75dc24.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- QvQSlzbZxMCrYfGYRZS0RrTn75PhhgRT3v52Ht0I77p2OfVZIe_kEQ==
X-Amz-Cf-Pop:
- VIE50-C2
X-Cache:
- Error from cloudfront
X-Content-Type-Options:
- nosniff
alt-svc:
- h3=":443"; ma=86400
x-amz-apigw-id:
- SqFl3EmCvHcEiEw=
x-amzn-ErrorType:
- AccessDeniedException
x-amzn-RequestId:
- 33d240f8-5a87-42ee-bb46-fa1364caa51e
status:
code: 401
message: Unauthorized
- request:
body: null
headers:
Accept:
- "*/*"
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- "0"
User-Agent:
- python-requests/2.31.0
method: POST
uri: https://id.twitch.tv/oauth2/token?client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&grant_type=client_credentials
response:
body:
string:
'{"access_token":"g7ae578ve5tifqtdn3bezx80bstfue","expires_in":5314976,"token_type":"bearer"}
'
headers:
Access-Control-Allow-Origin:
- "*"
Connection:
- keep-alive
Content-Length:
- "93"
Content-Type:
- application/json
Date:
- Mon, 05 Feb 2024 10:19:18 GMT
Server:
- nginx
X-Ctxlog-Logid:
- 1-65c0b626-79607bfc1350e4771b26d79a
status:
code: 200
message: OK
- request:
body: fields id,name; where slug="n64"; limit 200;
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer g7ae578ve5tifqtdn3bezx80bstfue
Client-ID:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
- keep-alive
Content-Length:
- "44"
User-Agent:
- python-requests/2.31.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
body:
string: "[\n {\n \"id\": 4,\n \"name\": \"Nintendo 64\"\n }\n]"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 850a6a127e4a2480-ZAG
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Mon, 05 Feb 2024 10:19:19 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=BhoByQbyH5w5XxZfGFgNDyCdYOO4_tsv4VbwckN.V.k-1707128359-1-AfyHumutGxUowqCOTMklr91ddX5Q0JcCx3fEVGCMDj/EgPxnZ1+MTSPUUqHNzKEXgv7ofFoFgRd4Sm2PbA7yf9A=;
path=/; expires=Mon, 05-Feb-24 10:49:19 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
- chunked
Via:
- 1.1 4ca98b546b8d71c72caf6a3d8f75dc24.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- Q-_mlygniUPJuoMIWeVazYnAUKO-JwlI6ICG8BHyyU7LqUtioQBnqA==
X-Amz-Cf-Pop:
- VIE50-C2
X-Cache:
- Miss from cloudfront
X-Content-Type-Options:
- nosniff
X-Count:
- "1"
alt-svc:
- h3=":443"; ma=86400
x-amz-apigw-id:
- SqFmLEj9vHcEY_Q=
x-amzn-Remapped-Content-Length:
- "50"
x-amzn-Remapped-Date:
- Mon, 05 Feb 2024 10:19:19 GMT
x-amzn-RequestId:
- fff69edb-7d6d-4333-9b3f-866113a347b7
status:
code: 200
message: OK
- request:
body: fields id,name; where slug="not-real"; limit 200;
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer test_token
Client-ID:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
- keep-alive
Content-Length:
- "49"
User-Agent:
- python-requests/2.31.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
body:
string:
"{\n \"message\": \"Authorization Failure. Have you tried:\",\n \"Tip
1\": \"Ensure you are sending Authorization and Client-ID as headers.\",\n
\ \"Tip 2\": \"Ensure Authorization value starts with 'Bearer ', including
the space\",\n \"Tip 3\": \"Ensure Authorization value ends with the App
Access Token you generated, NOT your Client Secret.\",\n \"Docs\": \"https://api-docs.igdb.com/#authentication\",\n
\ \"Discord\": \"https://discord.gg/FrvfwQg\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 850a6a17aaf22480-ZAG
Connection:
- keep-alive
Content-Length:
- "437"
Content-Type:
- application/json
Date:
- Mon, 05 Feb 2024 10:19:19 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=VCUWPaFo1l0.hhcoY8TNbX.7v.sHgv3o5msGbW4IwY4-1707128359-1-AV/UMB6hyybtdlkNtDX05HkPHB47tI6KsqFMb3tqKal7TTIv6Xz/vDTpEhLXDk7N4+UU5aMO6QKlmosR6ZUvL7c=;
path=/; expires=Mon, 05-Feb-24 10:49:19 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Via:
- 1.1 c8710a117c1dfdaea4e9dfc4d41970d2.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- vbQSmJ-mKi0-ExOR5HRDVL-iUet_f91se4KurIK-GWFAtJPMaw9Vgg==
X-Amz-Cf-Pop:
- VIE50-C2
X-Cache:
- Error from cloudfront
X-Content-Type-Options:
- nosniff
alt-svc:
- h3=":443"; ma=86400
x-amz-apigw-id:
- SqFmQEslvHcEnmg=
x-amzn-ErrorType:
- AccessDeniedException
x-amzn-RequestId:
- c4f1e9b7-87a1-48a8-9ff3-c829e6a79f5e
status:
code: 401
message: Unauthorized
- request:
body: null
headers:
Accept:
- "*/*"
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- "0"
User-Agent:
- python-requests/2.31.0
method: POST
uri: https://id.twitch.tv/oauth2/token?client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&grant_type=client_credentials
response:
body:
string:
'{"access_token":"ce0q1kmen9ztee5526s91upn2pgrjt","expires_in":5469004,"token_type":"bearer"}
'
headers:
Access-Control-Allow-Origin:
- "*"
Connection:
- keep-alive
Content-Length:
- "93"
Content-Type:
- application/json
Date:
- Mon, 05 Feb 2024 10:19:21 GMT
Server:
- nginx
X-Ctxlog-Logid:
- 1-65c0b628-6500ce7102a2dac52cf782d3
status:
code: 200
message: OK
- request:
body: fields id,name; where slug="not-real"; limit 200;
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer ce0q1kmen9ztee5526s91upn2pgrjt
Client-ID:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
- keep-alive
Content-Length:
- "49"
User-Agent:
- python-requests/2.31.0
method: POST
uri: https://api.igdb.com/v4/platforms
response:
body:
string: "[]"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 850a6a218ce1248e-ZAG
Connection:
- keep-alive
Content-Length:
- "2"
Content-Type:
- application/json
Date:
- Mon, 05 Feb 2024 10:19:21 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=b2uiyDgwdN2kh1po30EhKiAv01njluEztOl8HzJbnD0-1707128361-1-ASLaLYhc5sa6VxDrZrhxgDGbLyZSyc8cNz0JRYqQ25IYOH50R7Dn5Q/Q0hc6AnIZ+MMW49mpgnyOyWDJ9WV2eyk=;
path=/; expires=Mon, 05-Feb-24 10:49:21 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Via:
- 1.1 4ca98b546b8d71c72caf6a3d8f75dc24.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- FT_JcJCfNPxDIlcySLiCDv_yJNkstWHK9QQ_xsKwOjEFQKMPEhzFUQ==
X-Amz-Cf-Pop:
- VIE50-C2
X-Cache:
- Miss from cloudfront
X-Content-Type-Options:
- nosniff
X-Count:
- "0"
alt-svc:
- h3=":443"; ma=86400
x-amz-apigw-id:
- SqFmjGMnvHcEB1w=
x-amzn-Remapped-Content-Length:
- "2"
x-amzn-Remapped-Date:
- Mon, 05 Feb 2024 10:19:21 GMT
x-amzn-RequestId:
- 90fcc208-1691-49ea-97bf-ccab670458d1
status:
code: 200
message: OK
- request:
body: fields id,name; where slug="not-real"; limit 200;
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer ce0q1kmen9ztee5526s91upn2pgrjt
Client-ID:
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connection:
- keep-alive
Content-Length:
- "49"
User-Agent:
- python-requests/2.31.0
method: POST
uri: https://api.igdb.com/v4/platform_versions
response:
body:
string: "[]"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 850a6a269fbc5ac5-VIE
Connection:
- keep-alive
Content-Length:
- "2"
Content-Type:
- application/json
Date:
- Mon, 05 Feb 2024 10:19:22 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=W72fEd3tkalmetq_mNQ7n_UmFAMwTugWoyt6q.tSK0I-1707128362-1-AZq/POkqXl2I0+NMDFqTHngxKUwQ5ehSRihAQE9jYEPPQKQV7W0tP+QteV9RNNRE6AkaIUkjsZWu3VWJXeSFyUw=;
path=/; expires=Mon, 05-Feb-24 10:49:22 GMT; domain=.igdb.com; HttpOnly; Secure;
SameSite=None
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Via:
- 1.1 a4035907ac3c3ba8d1fd116b6b6b9a4c.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- C9AU5yakduVKlqWfBlMyFazD5JPOlFjlfdMHvqrnqVriqauKZPezMg==
X-Amz-Cf-Pop:
- VIE50-C2
X-Cache:
- Miss from cloudfront
X-Content-Type-Options:
- nosniff
X-Count:
- "0"
alt-svc:
- h3=":443"; ma=86400
x-amz-apigw-id:
- SqFmoEvUvHcEHqg=
x-amzn-Remapped-Content-Length:
- "2"
x-amzn-Remapped-Date:
- Mon, 05 Feb 2024 10:19:22 GMT
x-amzn-RequestId:
- 9b7de1ff-7b8a-4cb4-82be-b90a45f9ab44
status:
code: 200
message: OK
version: 1