Skip to content

Commit

Permalink
Re-run fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Jun 17, 2024
1 parent 23608e5 commit bb43a31
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 150 deletions.
17 changes: 9 additions & 8 deletions test/integration/fixtures/TestAccountNotifications_List.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/account/notifications
url: https://api.linode.com/v4beta/account/notifications?page=1
method: GET
response:
body: '{"pages": 1, "page": 1, "results": 0, "data": []}'
body: '{"pages": 1, "page": 1, "results": 1, "data": [{"type": "notice", "entity":
null, "when": null, "message": "To use the Linode DNS Manager to serve your
domains, you must have an active Linode on your account. See <a href=''https://www.linode.com/docs/platform/manager/dns-manager/''>https://www.linode.com/docs/platform/manager/dns-manager/</a>
for more information.", "label": "Your domains are not being served.", "severity":
"major", "until": null, "body": null}]}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand All @@ -31,13 +35,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "49"
- "465"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Tue, 13 Feb 2024 18:57:42 GMT
- Mon, 17 Jun 2024 19:46:05 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand All @@ -53,10 +57,7 @@ interactions:
- DENY
- DENY
X-Oauth-Scopes:
- account:read_write databases:read_write domains:read_write events:read_write
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
volumes:read_write vpc:read_write
- '*'
X-Ratelimit-Limit:
- "400"
X-Xss-Protection:
Expand Down
46 changes: 18 additions & 28 deletions test/integration/fixtures/TestOAuthClients_List.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ interactions:
url: https://api.linode.com/v4beta/account/oauth-clients
method: POST
response:
body: '{"id": "b3418cf8e53201b4ee30", "redirect_uri": "https://example.com", "label":
"go-client-test", "status": "active", "secret": "9646fa9be07dc54d2b4870d051f6f5d051e3ab4884519c5c2308cd29ca82dc60",
body: '{"id": "4a48ff5903b62d743bf0", "redirect_uri": "https://example.com", "label":
"go-client-test", "status": "active", "secret": "3e1d30e5a0a3e350ba7231cf4ba2c0863880007d62be38ebdf89fda9d2aadaff",
"thumbnail_url": null, "public": true}'
headers:
Access-Control-Allow-Credentials:
Expand All @@ -39,7 +39,7 @@ interactions:
Content-Type:
- application/json
Expires:
- Thu, 30 May 2024 23:12:10 GMT
- Mon, 17 Jun 2024 19:45:25 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand All @@ -54,10 +54,7 @@ interactions:
- DENY
- DENY
X-Oauth-Scopes:
- account:read_write databases:read_write domains:read_write events:read_write
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
volumes:read_write vpc:read_write
- '*'
X-Ratelimit-Limit:
- "400"
X-Xss-Protection:
Expand All @@ -75,17 +72,16 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/account/oauth-clients
url: https://api.linode.com/v4beta/account/oauth-clients?page=1
method: GET
response:
body: '{"data": [{"id": "80178debe3621b53e09b", "redirect_uri": "http://localhost:5000/auth_callback",
"label": "oauth_test", "status": "active", "secret": "<REDACTED>", "thumbnail_url":
null, "public": false}, {"id": "662f47e526a88d728761", "redirect_uri": "https://localhost/oauth/callback",
"label": "test-oauth-client-3", "status": "active", "secret": "<REDACTED>",
"thumbnail_url": null, "public": true}, {"id": "b3418cf8e53201b4ee30", "redirect_uri":
"https://example.com", "label": "go-client-test", "status": "active", "secret":
"<REDACTED>", "thumbnail_url": null, "public": true}], "page": 1, "pages": 1,
"results": 3}'
body: '{"data": [{"id": "644f910542377876eaab", "redirect_uri": "https://localhost",
"label": "asd", "status": "active", "secret": "<REDACTED>", "thumbnail_url":
null, "public": false}, {"id": "8839550c17ba6c006e90", "redirect_uri": "http://localhost:5000/auth_callback",
"label": "sdf", "status": "active", "secret": "<REDACTED>", "thumbnail_url":
null, "public": false}, {"id": "4a48ff5903b62d743bf0", "redirect_uri": "https://example.com",
"label": "go-client-test", "status": "active", "secret": "<REDACTED>", "thumbnail_url":
null, "public": true}], "page": 1, "pages": 1, "results": 3}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand All @@ -102,13 +98,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "621"
- "584"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Thu, 30 May 2024 23:12:10 GMT
- Mon, 17 Jun 2024 19:45:26 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand All @@ -124,10 +120,7 @@ interactions:
- DENY
- DENY
X-Oauth-Scopes:
- account:read_write databases:read_write domains:read_write events:read_write
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
volumes:read_write vpc:read_write
- '*'
X-Ratelimit-Limit:
- "400"
X-Xss-Protection:
Expand All @@ -145,7 +138,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/account/oauth-clients/b3418cf8e53201b4ee30
url: https://api.linode.com/v4beta/account/oauth-clients/4a48ff5903b62d743bf0
method: DELETE
response:
body: '{}'
Expand All @@ -171,7 +164,7 @@ interactions:
Content-Type:
- application/json
Expires:
- Thu, 30 May 2024 23:12:10 GMT
- Mon, 17 Jun 2024 19:45:26 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand All @@ -186,10 +179,7 @@ interactions:
- DENY
- DENY
X-Oauth-Scopes:
- account:read_write databases:read_write domains:read_write events:read_write
firewall:read_write images:read_write ips:read_write linodes:read_write lke:read_write
longview:read_write nodebalancers:read_write object_storage:read_write stackscripts:read_write
volumes:read_write vpc:read_write
- '*'
X-Ratelimit-Limit:
- "400"
X-Xss-Protection:
Expand Down
117 changes: 60 additions & 57 deletions test/integration/fixtures/TestPayment_GetFound.yaml
Original file line number Diff line number Diff line change
@@ -1,61 +1,64 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/account/payments
method: GET
response:
body: '{"data": [{"id": 12065587, "date": "2018-01-02T03:04:05", "usd": 25.0}],
- request:
body: ""
form: {}
headers:
Accept:
- application/json
Content-Type:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/account/payments?page=1
method: GET
response:
body: '{"data": [{"id": 12065587, "date": "2018-01-02T03:04:05", "usd": 25.0}],
"page": 1, "pages": 1, "results": 1}'
headers:
Access-Control-Allow-Credentials:
- "true"
Access-Control-Allow-Headers:
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
Access-Control-Allow-Methods:
- HEAD, GET, OPTIONS, POST, PUT, DELETE
Access-Control-Allow-Origin:
- '*'
Access-Control-Expose-Headers:
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
Cache-Control:
- private, max-age=0, s-maxage=0, no-cache, no-store
- private, max-age=60, s-maxage=60
Content-Length:
- "109"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Server:
- nginx
Strict-Transport-Security:
- max-age=31536000
Vary:
- Authorization, X-Filter
- Authorization, X-Filter
X-Accepted-Oauth-Scopes:
- account:read_only
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
- DENY
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "800"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
code: 200
duration: ""
headers:
Access-Control-Allow-Credentials:
- "true"
Access-Control-Allow-Headers:
- Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter
Access-Control-Allow-Methods:
- HEAD, GET, OPTIONS, POST, PUT, DELETE
Access-Control-Allow-Origin:
- '*'
Access-Control-Expose-Headers:
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status
Cache-Control:
- max-age=0, no-cache, no-store
Connection:
- keep-alive
Content-Length:
- "49"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Mon, 17 Jun 2024 19:36:20 GMT
Pragma:
- no-cache
Strict-Transport-Security:
- max-age=31536000
Vary:
- Authorization, X-Filter
- Authorization, X-Filter
X-Accepted-Oauth-Scopes:
- account:read_only
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
- DENY
X-Oauth-Scopes:
- '*'
X-Ratelimit-Limit:
- "400"
X-Xss-Protection:
- 1; mode=block
status: 200 OK
code: 200
duration: ""
Loading

0 comments on commit bb43a31

Please sign in to comment.