From bb43a318f7204aeca2de0d0971e2e0f8241e1a24 Mon Sep 17 00:00:00 2001 From: Lena Garber Date: Mon, 17 Jun 2024 16:00:40 -0400 Subject: [PATCH] Re-run fixtures --- .../TestAccountNotifications_List.yaml | 17 +-- .../fixtures/TestOAuthClients_List.yaml | 46 +++---- .../fixtures/TestPayment_GetFound.yaml | 117 +++++++++--------- .../fixtures/TestPayments_List.yaml | 117 +++++++++--------- 4 files changed, 147 insertions(+), 150 deletions(-) diff --git a/test/integration/fixtures/TestAccountNotifications_List.yaml b/test/integration/fixtures/TestAccountNotifications_List.yaml index e81648a08..312bf7946 100644 --- a/test/integration/fixtures/TestAccountNotifications_List.yaml +++ b/test/integration/fixtures/TestAccountNotifications_List.yaml @@ -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 https://www.linode.com/docs/platform/manager/dns-manager/ + for more information.", "label": "Your domains are not being served.", "severity": + "major", "until": null, "body": null}]}' headers: Access-Control-Allow-Credentials: - "true" @@ -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: @@ -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: diff --git a/test/integration/fixtures/TestOAuthClients_List.yaml b/test/integration/fixtures/TestOAuthClients_List.yaml index 975054613..199db0d5b 100644 --- a/test/integration/fixtures/TestOAuthClients_List.yaml +++ b/test/integration/fixtures/TestOAuthClients_List.yaml @@ -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: @@ -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: @@ -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: @@ -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": "", "thumbnail_url": - null, "public": false}, {"id": "662f47e526a88d728761", "redirect_uri": "https://localhost/oauth/callback", - "label": "test-oauth-client-3", "status": "active", "secret": "", - "thumbnail_url": null, "public": true}, {"id": "b3418cf8e53201b4ee30", "redirect_uri": - "https://example.com", "label": "go-client-test", "status": "active", "secret": - "", "thumbnail_url": null, "public": true}], "page": 1, "pages": 1, - "results": 3}' + body: '{"data": [{"id": "644f910542377876eaab", "redirect_uri": "https://localhost", + "label": "asd", "status": "active", "secret": "", "thumbnail_url": + null, "public": false}, {"id": "8839550c17ba6c006e90", "redirect_uri": "http://localhost:5000/auth_callback", + "label": "sdf", "status": "active", "secret": "", "thumbnail_url": + null, "public": false}, {"id": "4a48ff5903b62d743bf0", "redirect_uri": "https://example.com", + "label": "go-client-test", "status": "active", "secret": "", "thumbnail_url": + null, "public": true}], "page": 1, "pages": 1, "results": 3}' headers: Access-Control-Allow-Credentials: - "true" @@ -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: @@ -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: @@ -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: '{}' @@ -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: @@ -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: diff --git a/test/integration/fixtures/TestPayment_GetFound.yaml b/test/integration/fixtures/TestPayment_GetFound.yaml index 23e6d454f..8e1474f7d 100644 --- a/test/integration/fixtures/TestPayment_GetFound.yaml +++ b/test/integration/fixtures/TestPayment_GetFound.yaml @@ -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: "" \ No newline at end of file + 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: "" diff --git a/test/integration/fixtures/TestPayments_List.yaml b/test/integration/fixtures/TestPayments_List.yaml index f80f19d2d..acaae8383 100644 --- a/test/integration/fixtures/TestPayments_List.yaml +++ b/test/integration/fixtures/TestPayments_List.yaml @@ -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:44:27 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: ""