From 1a541a822eaa59c54b139149d367b81d8a626bec Mon Sep 17 00:00:00 2001 From: Kevin Soltysiak Date: Sat, 17 Feb 2024 13:43:46 +0100 Subject: [PATCH] chore: delete previous specs-related code --- samples/auth/keys/_meta.json | 13 - samples/auth/keys/all-200.json | 62 -- samples/auth/keys/create-201.json | 67 -- samples/auth/keys/create-422.json | 34 - samples/auth/keys/destroy-204.json | 19 - samples/auth/keys/destroy-404.json | 19 - samples/auth/keys/show-200.json | 60 -- samples/auth/keys/show-404.json | 19 - samples/auth/scm_integrations/_meta.json | 14 - samples/auth/scm_integrations/all-200.json | 41 - samples/auth/scm_integrations/create-201.json | 41 - samples/auth/scm_integrations/create-422.json | 36 - .../auth/scm_integrations/destroy-204.json | 15 - .../auth/scm_integrations/destroy-404.json | 23 - samples/auth/scm_integrations/show-200.json | 34 - samples/auth/scm_integrations/show-404.json | 23 - samples/auth/tokens/_meta.json | 13 - samples/auth/tokens/all-200.json | 32 - samples/auth/tokens/create-201.json | 37 - samples/auth/tokens/destroy-204.json | 19 - samples/auth/tokens/destroy-404.json | 19 - samples/auth/tokens/exchange-200.json | 25 - samples/auth/tokens/exchange-401.json | 24 - samples/auth/tokens/renew-200.json | 32 - samples/auth/tokens/renew-404.json | 20 - samples/auth/two_factor_auth/_meta.json | 11 - .../disable-not-initiated.json | 23 - .../auth/two_factor_auth/disable-success.json | 29 - .../initiate-already-enabled.json | 29 - .../two_factor_auth/initiate-success.json | 36 - .../initiate-wrong-provider.json | 29 - samples/auth/two_factor_auth/status.json | 29 - .../validate-not-initiated.json | 29 - .../two_factor_auth/validate-success.json | 49 -- .../auth/two_factor_auth/validate-wrong.json | 29 - samples/auth/user/_meta.json | 10 - samples/auth/user/self.json | 54 -- samples/auth/user/stop-free-trial.json | 24 - samples/auth/user/update-200.json | 59 -- samples/auth/user/update-422.json | 33 - samples/billing/profile/_meta.json | 23 - samples/billing/profile/create-201.json | 50 -- samples/billing/profile/create-400.json | 22 - samples/billing/profile/create-422.json | 44 -- samples/billing/profile/show-200.json | 41 - samples/billing/profile/show-404.json | 22 - samples/billing/profile/update-200.json | 47 -- samples/billing/profile/update-422.json | 32 - samples/regional/addons/_meta.json | 22 - samples/regional/addons/categories-guest.json | 36 - .../regional/addons/categories-logged.json | 37 - samples/regional/addons/destroy-204.json | 19 - samples/regional/addons/destroy-404.json | 24 - samples/regional/addons/find-200.json | 48 -- samples/regional/addons/find-404.json | 24 - samples/regional/addons/for-200.json | 50 -- samples/regional/addons/providers-guest.json | 588 -------------- samples/regional/addons/providers-logged.json | 705 ----------------- samples/regional/addons/provision-201.json | 58 -- samples/regional/addons/provision-400.json | 29 - samples/regional/addons/sso-200.json | 49 -- samples/regional/addons/sso-404.json | 24 - samples/regional/addons/token-200.json | 49 -- samples/regional/addons/token-404.json | 24 - samples/regional/addons/update-200.json | 58 -- samples/regional/addons/update-404.json | 30 - samples/regional/apps/_meta.json | 52 -- samples/regional/apps/all.json | 99 --- samples/regional/apps/create-201-dry-run.json | 67 -- samples/regional/apps/create-201.json | 66 -- samples/regional/apps/create-422.json | 34 - samples/regional/apps/destroy-204.json | 19 - samples/regional/apps/destroy-404.json | 24 - samples/regional/apps/destroy-422.json | 27 - samples/regional/apps/find-200.json | 60 -- samples/regional/apps/find-404.json | 24 - samples/regional/apps/logs_url.json | 62 -- samples/regional/apps/rename-200.json | 65 -- samples/regional/apps/rename-404.json | 29 - samples/regional/apps/rename-422.json | 33 - samples/regional/apps/transfer-200.json | 65 -- samples/regional/apps/transfer-404.json | 27 - samples/regional/apps/transfer-422.json | 34 - samples/regional/apps/update-200.json | 66 -- samples/regional/apps/update-stack-404.json | 30 - samples/regional/autoscalers/_meta.json | 27 - samples/regional/autoscalers/create-201.json | 49 -- samples/regional/autoscalers/create-500.json | 32 - samples/regional/autoscalers/destroy-204.json | 20 - samples/regional/autoscalers/destroy-404.json | 25 - samples/regional/autoscalers/find-200.json | 39 - samples/regional/autoscalers/find-404.json | 25 - samples/regional/autoscalers/for-200.json | 41 - samples/regional/autoscalers/update-200.json | 45 -- samples/regional/autoscalers/update-404.json | 31 - samples/regional/autoscalers/update-500.json | 30 - samples/regional/collaborators/_meta.json | 17 - .../regional/collaborators/accept-200.json | 60 -- .../regional/collaborators/accept-400.json | 24 - .../regional/collaborators/accept-404.json | 24 - .../regional/collaborators/destroy-204.json | 19 - .../regional/collaborators/destroy-404.json | 24 - samples/regional/collaborators/for-200.json | 34 - .../regional/collaborators/invite-201.json | 37 - .../regional/collaborators/invite-422.json | 34 - samples/regional/containers/_meta.json | 25 - samples/regional/containers/for-200.json | 39 - samples/regional/containers/restart-202.json | 28 - samples/regional/containers/restart-422.json | 33 - samples/regional/containers/scale-202.json | 48 -- samples/regional/containers/scale-422.json | 36 - samples/regional/containers/sizes-guest.json | 115 --- samples/regional/containers/sizes-logged.json | 116 --- samples/regional/deployments/_meta.json | 8 - samples/regional/deployments/find-200.json | 45 -- samples/regional/deployments/find-404.json | 24 - .../regional/deployments/for-with-pages.json | 35 - .../deployments/for-without-pages.json | 56 -- samples/regional/deployments/logs-200.json | 22 - samples/regional/deployments/logs-404.json | 24 - samples/regional/domains/_meta.json | 21 - samples/regional/domains/create-201.json | 44 -- samples/regional/domains/create-422.json | 33 - samples/regional/domains/destroy-204.json | 19 - samples/regional/domains/destroy-404.json | 24 - samples/regional/domains/find-200.json | 38 - samples/regional/domains/find-404.json | 24 - samples/regional/domains/for-200.json | 40 - samples/regional/domains/update-200.json | 44 -- samples/regional/domains/update-404.json | 30 - samples/regional/domains/update-422.json | 33 - samples/regional/environment/_meta.json | 45 -- .../environment/bulk-destroy-204.json | 19 - .../regional/environment/bulk-update-200.json | 70 -- samples/regional/environment/create-201.json | 36 - samples/regional/environment/create-422.json | 37 - samples/regional/environment/destroy-204.json | 19 - samples/regional/environment/destroy-404.json | 24 - samples/regional/environment/for-200.json | 31 - samples/regional/environment/update-200.json | 35 - samples/regional/environment/update-404.json | 30 - samples/regional/events/_meta.json | 3 - samples/regional/events/all-200.json | 619 --------------- samples/regional/events/categories-guest.json | 66 -- .../regional/events/categories-logged.json | 67 -- samples/regional/events/for-200.json | 404 ---------- samples/regional/events/types-guest.json | 288 ------- samples/regional/events/types-logged.json | 289 ------- samples/regional/logs/_meta.json | 11 - samples/regional/logs/archives-200.json | 28 - samples/regional/logs/get-guest-200.json | 18 - samples/regional/logs/get-logged-200.json | 19 - samples/regional/logs/get-with-limit-200.json | 18 - samples/regional/metrics/_meta.json | 15 - samples/regional/metrics/for-invalid-400.json | 23 - .../regional/metrics/for-valid-cpu-200.json | 747 ------------------ .../metrics/for-valid-router-404.json | 23 - samples/regional/metrics/types-guest.json | 66 -- samples/regional/metrics/types-logged.json | 67 -- samples/regional/notifiers/_meta.json | 23 - samples/regional/notifiers/create-201.json | 55 -- samples/regional/notifiers/create-404.json | 30 - samples/regional/notifiers/create-422.json | 36 - samples/regional/notifiers/destroy-204.json | 19 - samples/regional/notifiers/destroy-404.json | 24 - samples/regional/notifiers/find-200.json | 47 -- samples/regional/notifiers/find-404.json | 24 - samples/regional/notifiers/for-200.json | 49 -- .../regional/notifiers/platforms-guest.json | 184 ----- .../regional/notifiers/platforms-logged.json | 185 ----- samples/regional/notifiers/test-200.json | 22 - samples/regional/notifiers/test-404.json | 25 - samples/regional/notifiers/update-200.json | 53 -- samples/regional/operations/_meta.json | 5 - samples/regional/operations/find-200.json | 31 - samples/regional/operations/find-404.json | 24 - samples/regional/scm_repo_links/_meta.json | 24 - .../regional/scm_repo_links/create-201.json | 54 -- .../regional/scm_repo_links/destroy-204.json | 15 - .../scm_repo_links/manual-deploy-200.json | 32 - samples/regional/scm_repo_links/show-200.json | 43 - .../regional/scm_repo_links/update-200.json | 50 -- samples/regional_database/backups/_meta.json | 4 - .../backups/archive-200.json | 24 - .../backups/archive-400.json | 24 - .../regional_database/backups/create-201.json | 32 - .../regional_database/backups/create-400.json | 24 - .../regional_database/backups/for-200.json | 52 -- .../regional_database/backups/for-400.json | 24 - .../regional_database/databases/_meta.json | 3 - .../regional_database/databases/find-200.json | 47 -- .../regional_database/databases/find-400.json | 24 - .../databases/upgrade-202.json | 39 - .../databases/upgrade-400.json | 24 - spec/spec_helper.rb | 11 +- spec/support/scalingo.rb | 161 ---- spec/support/shared.rb | 125 --- 197 files changed, 1 insertion(+), 10681 deletions(-) delete mode 100644 samples/auth/keys/_meta.json delete mode 100644 samples/auth/keys/all-200.json delete mode 100644 samples/auth/keys/create-201.json delete mode 100644 samples/auth/keys/create-422.json delete mode 100644 samples/auth/keys/destroy-204.json delete mode 100644 samples/auth/keys/destroy-404.json delete mode 100644 samples/auth/keys/show-200.json delete mode 100644 samples/auth/keys/show-404.json delete mode 100644 samples/auth/scm_integrations/_meta.json delete mode 100644 samples/auth/scm_integrations/all-200.json delete mode 100644 samples/auth/scm_integrations/create-201.json delete mode 100644 samples/auth/scm_integrations/create-422.json delete mode 100644 samples/auth/scm_integrations/destroy-204.json delete mode 100644 samples/auth/scm_integrations/destroy-404.json delete mode 100644 samples/auth/scm_integrations/show-200.json delete mode 100644 samples/auth/scm_integrations/show-404.json delete mode 100644 samples/auth/tokens/_meta.json delete mode 100644 samples/auth/tokens/all-200.json delete mode 100644 samples/auth/tokens/create-201.json delete mode 100644 samples/auth/tokens/destroy-204.json delete mode 100644 samples/auth/tokens/destroy-404.json delete mode 100644 samples/auth/tokens/exchange-200.json delete mode 100644 samples/auth/tokens/exchange-401.json delete mode 100644 samples/auth/tokens/renew-200.json delete mode 100644 samples/auth/tokens/renew-404.json delete mode 100644 samples/auth/two_factor_auth/_meta.json delete mode 100644 samples/auth/two_factor_auth/disable-not-initiated.json delete mode 100644 samples/auth/two_factor_auth/disable-success.json delete mode 100644 samples/auth/two_factor_auth/initiate-already-enabled.json delete mode 100644 samples/auth/two_factor_auth/initiate-success.json delete mode 100644 samples/auth/two_factor_auth/initiate-wrong-provider.json delete mode 100644 samples/auth/two_factor_auth/status.json delete mode 100644 samples/auth/two_factor_auth/validate-not-initiated.json delete mode 100644 samples/auth/two_factor_auth/validate-success.json delete mode 100644 samples/auth/two_factor_auth/validate-wrong.json delete mode 100644 samples/auth/user/_meta.json delete mode 100644 samples/auth/user/self.json delete mode 100644 samples/auth/user/stop-free-trial.json delete mode 100644 samples/auth/user/update-200.json delete mode 100644 samples/auth/user/update-422.json delete mode 100644 samples/billing/profile/_meta.json delete mode 100644 samples/billing/profile/create-201.json delete mode 100644 samples/billing/profile/create-400.json delete mode 100644 samples/billing/profile/create-422.json delete mode 100644 samples/billing/profile/show-200.json delete mode 100644 samples/billing/profile/show-404.json delete mode 100644 samples/billing/profile/update-200.json delete mode 100644 samples/billing/profile/update-422.json delete mode 100644 samples/regional/addons/_meta.json delete mode 100644 samples/regional/addons/categories-guest.json delete mode 100644 samples/regional/addons/categories-logged.json delete mode 100644 samples/regional/addons/destroy-204.json delete mode 100644 samples/regional/addons/destroy-404.json delete mode 100644 samples/regional/addons/find-200.json delete mode 100644 samples/regional/addons/find-404.json delete mode 100644 samples/regional/addons/for-200.json delete mode 100644 samples/regional/addons/providers-guest.json delete mode 100644 samples/regional/addons/providers-logged.json delete mode 100644 samples/regional/addons/provision-201.json delete mode 100644 samples/regional/addons/provision-400.json delete mode 100644 samples/regional/addons/sso-200.json delete mode 100644 samples/regional/addons/sso-404.json delete mode 100644 samples/regional/addons/token-200.json delete mode 100644 samples/regional/addons/token-404.json delete mode 100644 samples/regional/addons/update-200.json delete mode 100644 samples/regional/addons/update-404.json delete mode 100644 samples/regional/apps/_meta.json delete mode 100644 samples/regional/apps/all.json delete mode 100644 samples/regional/apps/create-201-dry-run.json delete mode 100644 samples/regional/apps/create-201.json delete mode 100644 samples/regional/apps/create-422.json delete mode 100644 samples/regional/apps/destroy-204.json delete mode 100644 samples/regional/apps/destroy-404.json delete mode 100644 samples/regional/apps/destroy-422.json delete mode 100644 samples/regional/apps/find-200.json delete mode 100644 samples/regional/apps/find-404.json delete mode 100644 samples/regional/apps/logs_url.json delete mode 100644 samples/regional/apps/rename-200.json delete mode 100644 samples/regional/apps/rename-404.json delete mode 100644 samples/regional/apps/rename-422.json delete mode 100644 samples/regional/apps/transfer-200.json delete mode 100644 samples/regional/apps/transfer-404.json delete mode 100644 samples/regional/apps/transfer-422.json delete mode 100644 samples/regional/apps/update-200.json delete mode 100644 samples/regional/apps/update-stack-404.json delete mode 100644 samples/regional/autoscalers/_meta.json delete mode 100644 samples/regional/autoscalers/create-201.json delete mode 100644 samples/regional/autoscalers/create-500.json delete mode 100644 samples/regional/autoscalers/destroy-204.json delete mode 100644 samples/regional/autoscalers/destroy-404.json delete mode 100644 samples/regional/autoscalers/find-200.json delete mode 100644 samples/regional/autoscalers/find-404.json delete mode 100644 samples/regional/autoscalers/for-200.json delete mode 100644 samples/regional/autoscalers/update-200.json delete mode 100644 samples/regional/autoscalers/update-404.json delete mode 100644 samples/regional/autoscalers/update-500.json delete mode 100644 samples/regional/collaborators/_meta.json delete mode 100644 samples/regional/collaborators/accept-200.json delete mode 100644 samples/regional/collaborators/accept-400.json delete mode 100644 samples/regional/collaborators/accept-404.json delete mode 100644 samples/regional/collaborators/destroy-204.json delete mode 100644 samples/regional/collaborators/destroy-404.json delete mode 100644 samples/regional/collaborators/for-200.json delete mode 100644 samples/regional/collaborators/invite-201.json delete mode 100644 samples/regional/collaborators/invite-422.json delete mode 100644 samples/regional/containers/_meta.json delete mode 100644 samples/regional/containers/for-200.json delete mode 100644 samples/regional/containers/restart-202.json delete mode 100644 samples/regional/containers/restart-422.json delete mode 100644 samples/regional/containers/scale-202.json delete mode 100644 samples/regional/containers/scale-422.json delete mode 100644 samples/regional/containers/sizes-guest.json delete mode 100644 samples/regional/containers/sizes-logged.json delete mode 100644 samples/regional/deployments/_meta.json delete mode 100644 samples/regional/deployments/find-200.json delete mode 100644 samples/regional/deployments/find-404.json delete mode 100644 samples/regional/deployments/for-with-pages.json delete mode 100644 samples/regional/deployments/for-without-pages.json delete mode 100644 samples/regional/deployments/logs-200.json delete mode 100644 samples/regional/deployments/logs-404.json delete mode 100644 samples/regional/domains/_meta.json delete mode 100644 samples/regional/domains/create-201.json delete mode 100644 samples/regional/domains/create-422.json delete mode 100644 samples/regional/domains/destroy-204.json delete mode 100644 samples/regional/domains/destroy-404.json delete mode 100644 samples/regional/domains/find-200.json delete mode 100644 samples/regional/domains/find-404.json delete mode 100644 samples/regional/domains/for-200.json delete mode 100644 samples/regional/domains/update-200.json delete mode 100644 samples/regional/domains/update-404.json delete mode 100644 samples/regional/domains/update-422.json delete mode 100644 samples/regional/environment/_meta.json delete mode 100644 samples/regional/environment/bulk-destroy-204.json delete mode 100644 samples/regional/environment/bulk-update-200.json delete mode 100644 samples/regional/environment/create-201.json delete mode 100644 samples/regional/environment/create-422.json delete mode 100644 samples/regional/environment/destroy-204.json delete mode 100644 samples/regional/environment/destroy-404.json delete mode 100644 samples/regional/environment/for-200.json delete mode 100644 samples/regional/environment/update-200.json delete mode 100644 samples/regional/environment/update-404.json delete mode 100644 samples/regional/events/_meta.json delete mode 100644 samples/regional/events/all-200.json delete mode 100644 samples/regional/events/categories-guest.json delete mode 100644 samples/regional/events/categories-logged.json delete mode 100644 samples/regional/events/for-200.json delete mode 100644 samples/regional/events/types-guest.json delete mode 100644 samples/regional/events/types-logged.json delete mode 100644 samples/regional/logs/_meta.json delete mode 100644 samples/regional/logs/archives-200.json delete mode 100644 samples/regional/logs/get-guest-200.json delete mode 100644 samples/regional/logs/get-logged-200.json delete mode 100644 samples/regional/logs/get-with-limit-200.json delete mode 100644 samples/regional/metrics/_meta.json delete mode 100644 samples/regional/metrics/for-invalid-400.json delete mode 100644 samples/regional/metrics/for-valid-cpu-200.json delete mode 100644 samples/regional/metrics/for-valid-router-404.json delete mode 100644 samples/regional/metrics/types-guest.json delete mode 100644 samples/regional/metrics/types-logged.json delete mode 100644 samples/regional/notifiers/_meta.json delete mode 100644 samples/regional/notifiers/create-201.json delete mode 100644 samples/regional/notifiers/create-404.json delete mode 100644 samples/regional/notifiers/create-422.json delete mode 100644 samples/regional/notifiers/destroy-204.json delete mode 100644 samples/regional/notifiers/destroy-404.json delete mode 100644 samples/regional/notifiers/find-200.json delete mode 100644 samples/regional/notifiers/find-404.json delete mode 100644 samples/regional/notifiers/for-200.json delete mode 100644 samples/regional/notifiers/platforms-guest.json delete mode 100644 samples/regional/notifiers/platforms-logged.json delete mode 100644 samples/regional/notifiers/test-200.json delete mode 100644 samples/regional/notifiers/test-404.json delete mode 100644 samples/regional/notifiers/update-200.json delete mode 100644 samples/regional/operations/_meta.json delete mode 100644 samples/regional/operations/find-200.json delete mode 100644 samples/regional/operations/find-404.json delete mode 100644 samples/regional/scm_repo_links/_meta.json delete mode 100644 samples/regional/scm_repo_links/create-201.json delete mode 100644 samples/regional/scm_repo_links/destroy-204.json delete mode 100644 samples/regional/scm_repo_links/manual-deploy-200.json delete mode 100644 samples/regional/scm_repo_links/show-200.json delete mode 100644 samples/regional/scm_repo_links/update-200.json delete mode 100644 samples/regional_database/backups/_meta.json delete mode 100644 samples/regional_database/backups/archive-200.json delete mode 100644 samples/regional_database/backups/archive-400.json delete mode 100644 samples/regional_database/backups/create-201.json delete mode 100644 samples/regional_database/backups/create-400.json delete mode 100644 samples/regional_database/backups/for-200.json delete mode 100644 samples/regional_database/backups/for-400.json delete mode 100644 samples/regional_database/databases/_meta.json delete mode 100644 samples/regional_database/databases/find-200.json delete mode 100644 samples/regional_database/databases/find-400.json delete mode 100644 samples/regional_database/databases/upgrade-202.json delete mode 100644 samples/regional_database/databases/upgrade-400.json delete mode 100644 spec/support/scalingo.rb diff --git a/samples/auth/keys/_meta.json b/samples/auth/keys/_meta.json deleted file mode 100644 index ac1b8ec..0000000 --- a/samples/auth/keys/_meta.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "id": "73c35bc1-c809-4a53-9409-a70e0f424c13", - "not_found_id": "wrong-key", - "create": { - "valid": { - "name": "example key", - "content": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q==" - }, - "invalid": { - "name": "example key" - } - } -} \ No newline at end of file diff --git a/samples/auth/keys/all-200.json b/samples/auth/keys/all-200.json deleted file mode 100644 index 4233467..0000000 --- a/samples/auth/keys/all-200.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "path": "/keys", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 12:04:34 GMT", - "Etag": "W/\"a25a51e7d9b0eb8cf01dde6663ca886f\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "keys": [ - { - "id": "73c35bc1-c809-4a53-9409-a70e0f424c13", - "name": "example key", - "content": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q==", - "fingerprint": "43:c5:5b:5f:b1:f1:50:43:ad:20:a6:92:6a:1f:9a:3a", - "created_at": "2020-05-29T12:04:34.387Z", - "owner": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "created_at": "2020-05-13T19:03:47.606Z", - "email": "example@null.scalingo.com", - "username": "example-username", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "company": null, - "location": "Somecity", - "fullname": "Example Username", - "github": { - "username": null, - "email": null, - "avatar_url": null, - "profile_url": null - }, - "tos_accepted": true, - "unconfirmed_email": null, - "flags": { - "": true, - "admin": true - }, - "limits": { - }, - "referral_url": "https://staging.sclng.io/r/dc4830c8190baf25", - "referral_clicks": 0, - "free_trial_started_at": "2020-05-13T19:03:47.603Z", - "free_trial_end_time": "2020-06-12T21:03:00.000Z", - "suspended_at": null, - "suspension_reason": null - } - } - ] - } - } -} \ No newline at end of file diff --git a/samples/auth/keys/create-201.json b/samples/auth/keys/create-201.json deleted file mode 100644 index a9fae6a..0000000 --- a/samples/auth/keys/create-201.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "path": "/keys", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "key": { - "name": "example key", - "content": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q==" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 12:04:34 GMT", - "Etag": "W/\"c60e645fc1f1e29e7daeac639a04959d\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "key": { - "id": "73c35bc1-c809-4a53-9409-a70e0f424c13", - "name": "example key", - "content": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q==", - "fingerprint": "43:c5:5b:5f:b1:f1:50:43:ad:20:a6:92:6a:1f:9a:3a", - "created_at": "2020-05-29T12:04:34.387Z", - "owner": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "created_at": "2020-05-13T19:03:47.606Z", - "email": "example@null.scalingo.com", - "username": "example-username", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "company": null, - "location": "Somecity", - "fullname": "Example Username", - "github": { - "username": null, - "email": null, - "avatar_url": null, - "profile_url": null - }, - "tos_accepted": true, - "unconfirmed_email": null, - "flags": { - "": true, - "admin": true - }, - "limits": { - }, - "referral_url": "https://staging.sclng.io/r/dc4830c8190baf25", - "referral_clicks": 0, - "free_trial_started_at": "2020-05-13T19:03:47.603Z", - "free_trial_end_time": "2020-06-12T21:03:00.000Z", - "suspended_at": null, - "suspension_reason": null - } - } - } - } -} \ No newline at end of file diff --git a/samples/auth/keys/create-422.json b/samples/auth/keys/create-422.json deleted file mode 100644 index 23c291f..0000000 --- a/samples/auth/keys/create-422.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "path": "/keys", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "key": { - "name": "example key" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 12:04:33 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "content": [ - "can't be blank", - "is too short (minimum is 10 characters)" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/auth/keys/destroy-204.json b/samples/auth/keys/destroy-204.json deleted file mode 100644 index 7c13ef0..0000000 --- a/samples/auth/keys/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/keys/73c35bc1-c809-4a53-9409-a70e0f424c13", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 12:04:35 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/auth/keys/destroy-404.json b/samples/auth/keys/destroy-404.json deleted file mode 100644 index 68c6aea..0000000 --- a/samples/auth/keys/destroy-404.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/keys/wrong-key", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 12:04:35 GMT", - "Content-Type": "text/html; charset=UTF-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive" - }, - "body": "\n\n\n The page you were looking for doesn't exist (404)\n \n \n\n\n\n \n
\n
\n

The page you were looking for doesn't exist.

\n

You may have mistyped the address or the page may have moved.

\n
\n

If you are the application owner check the logs for more information.

\n
\n\n\n" - } -} \ No newline at end of file diff --git a/samples/auth/keys/show-200.json b/samples/auth/keys/show-200.json deleted file mode 100644 index 38ea1e6..0000000 --- a/samples/auth/keys/show-200.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "path": "/keys/73c35bc1-c809-4a53-9409-a70e0f424c13", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 12:04:35 GMT", - "Etag": "W/\"c60e645fc1f1e29e7daeac639a04959d\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "key": { - "id": "73c35bc1-c809-4a53-9409-a70e0f424c13", - "name": "example key", - "content": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q==", - "fingerprint": "43:c5:5b:5f:b1:f1:50:43:ad:20:a6:92:6a:1f:9a:3a", - "created_at": "2020-05-29T12:04:34.387Z", - "owner": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "created_at": "2020-05-13T19:03:47.606Z", - "email": "example@null.scalingo.com", - "username": "example-username", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "company": null, - "location": "Somecity", - "fullname": "Example Username", - "github": { - "username": null, - "email": null, - "avatar_url": null, - "profile_url": null - }, - "tos_accepted": true, - "unconfirmed_email": null, - "flags": { - "": true, - "admin": true - }, - "limits": { - }, - "referral_url": "https://staging.sclng.io/r/dc4830c8190baf25", - "referral_clicks": 0, - "free_trial_started_at": "2020-05-13T19:03:47.603Z", - "free_trial_end_time": "2020-06-12T21:03:00.000Z", - "suspended_at": null, - "suspension_reason": null - } - } - } - } -} \ No newline at end of file diff --git a/samples/auth/keys/show-404.json b/samples/auth/keys/show-404.json deleted file mode 100644 index ff5dfdb..0000000 --- a/samples/auth/keys/show-404.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/keys/wrong-key", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 12:04:35 GMT", - "Content-Type": "text/html; charset=UTF-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive" - }, - "body": "\n\n\n The page you were looking for doesn't exist (404)\n \n \n\n\n\n \n
\n
\n

The page you were looking for doesn't exist.

\n

You may have mistyped the address or the page may have moved.

\n
\n

If you are the application owner check the logs for more information.

\n
\n\n\n" - } -} \ No newline at end of file diff --git a/samples/auth/scm_integrations/_meta.json b/samples/auth/scm_integrations/_meta.json deleted file mode 100644 index 96d2220..0000000 --- a/samples/auth/scm_integrations/_meta.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "5bb2e877-9e5c-a83f-8e0e-7c75eebf212c", - "not_found_id": "wrong-id", - "create": { - "valid": { - "scm_type": "gitlab-self-hosted", - "url": "https://gitlab.example.com", - "access_token": "some-access-token" - }, - "invalid": { - "scm_type": "wrong" - } - } -} \ No newline at end of file diff --git a/samples/auth/scm_integrations/all-200.json b/samples/auth/scm_integrations/all-200.json deleted file mode 100644 index 5e5dbe2..0000000 --- a/samples/auth/scm_integrations/all-200.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "path": "/scm_integrations", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 12:05:58 GMT", - "Etag": "W/\"ef16d877a7684fed0f89b97c13c7a61c\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "scm_integrations": [ - { - "id": "5bb2e877-9e5c-a83f-8e0e-7c75eebf212c", - "scm_type": "gitlab-self-hosted", - "url": "https://gitlab.example.com", - "created_at": "2019-08-12T11:59:37.298Z", - "uid": "42", - "username": "test_user", - "avatar_url": "https://secure.gravatar.com/avatar/4d65e90ca34da7a9084b6ce6c?s=80&d=identicon", - "email": "test-user@example.com", - "profile_url": "https://gitlab.example.com/test-user", - "owner": { - "id": "us-88c4e9af-f93c-8284-c67a-fa414d49c5de", - "email": "test-user@example.com", - "username": "test-user" - } - } - ] - } - } -} diff --git a/samples/auth/scm_integrations/create-201.json b/samples/auth/scm_integrations/create-201.json deleted file mode 100644 index d9923c9..0000000 --- a/samples/auth/scm_integrations/create-201.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "path": "/scm_integrations", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "scm_integration": { - "scm_type":"gitlab-self-hosted", - "url":"https://gitlab.example.com", - "access_token": "some-access-token" - } - } - }, - "response": { - "status": 201, - "headers": { - "Content-Type": "application/json; charset=utf-8" - }, - "json_body": { - "scm_integration": { - "id": "5bb2e877-9e5c-a83f-8e0e-7c75eebf212c", - "scm_type": "gitlab-self-hosted", - "url": "https://gitlab.example.com", - "created_at": "2019-08-12T11:59:37.298Z", - "uid": "42", - "username": "test_user", - "avatar_url": "https://secure.gravatar.com/avatar/4d65e90ca34da7a9084b6ce6c?s=80&d=identicon", - "email": "test-user@example.com", - "profile_url": "https://gitlab.example.com/test-user", - "owner": { - "id": "us-88c4e9af-f93c-8284-c67a-fa414d49c5de", - "email": "test-user@example.com", - "username": "test-user" - } - } - } - } -} diff --git a/samples/auth/scm_integrations/create-422.json b/samples/auth/scm_integrations/create-422.json deleted file mode 100644 index ff04430..0000000 --- a/samples/auth/scm_integrations/create-422.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "path": "/scm_integrations", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "scm_integration": { - "scm_type": "wrong" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Sat, 30 May 2020 12:26:36 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "access_token": [ - "can't be blank" - ], - "scm_type": [ - "Unknown scm integration type" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/auth/scm_integrations/destroy-204.json b/samples/auth/scm_integrations/destroy-204.json deleted file mode 100644 index 4ec6aa5..0000000 --- a/samples/auth/scm_integrations/destroy-204.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "path": "/scm_integrations/5bb2e877-9e5c-a83f-8e0e-7c75eebf212c", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - }, - "body": "" - } -} diff --git a/samples/auth/scm_integrations/destroy-404.json b/samples/auth/scm_integrations/destroy-404.json deleted file mode 100644 index c4e9a68..0000000 --- a/samples/auth/scm_integrations/destroy-404.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "path": "/scm_integrations/wrong-id", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Sat, 30 May 2020 12:26:37 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "SCM integration not found" - } - } -} \ No newline at end of file diff --git a/samples/auth/scm_integrations/show-200.json b/samples/auth/scm_integrations/show-200.json deleted file mode 100644 index aee08d5..0000000 --- a/samples/auth/scm_integrations/show-200.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "path": "/scm_integrations/5bb2e877-9e5c-a83f-8e0e-7c75eebf212c", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Content-Type": "application/json; charset=utf-8" - }, - "json_body": { - "scm_integration": { - "id": "5bb2e877-9e5c-a83f-8e0e-7c75eebf212c", - "scm_type": "gitlab", - "url": "https://gitlab.example2.com", - "access_token": "a64fe9744da5e6ce790ca3a9084bd66cf433b24b", - "created_at": "2019-08-12T11:59:37.298Z", - "uid": "42", - "username": "test_user", - "avatar_url": "https://secure.gravatar.com/avatar/4d65e90ca34da7a9084b6ce6c?s=80&d=identicon", - "email": "test-user@example.com", - "profile_url": "https://gitlab.example2.com/test-user", - "owner": { - "id": "us-88c4e9af-f93c-8284-c67a-fa414d49c5de", - "email": "test-user@example.com", - "username": "test-user" - } - } - } - } -} diff --git a/samples/auth/scm_integrations/show-404.json b/samples/auth/scm_integrations/show-404.json deleted file mode 100644 index 1aa38d0..0000000 --- a/samples/auth/scm_integrations/show-404.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "path": "/scm_integrations/wrong-id", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Sat, 30 May 2020 12:26:36 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "SCM integration not found" - } - } -} \ No newline at end of file diff --git a/samples/auth/tokens/_meta.json b/samples/auth/tokens/_meta.json deleted file mode 100644 index 29ad298..0000000 --- a/samples/auth/tokens/_meta.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "id": "b0c18b26-2a26-4032-a4d9-245877478bf1", - "not_found_id": "wrong-token-id", - "exchange": { - "invalid": "wrong-token", - "valid": "tk-us-UNTgs7Rep5M56UGf9SadYSN-Qqsv1iymenYmHSRXdz2Q6tEB" - }, - "create": { - "valid": { - "name": "test-token" - } - } -} diff --git a/samples/auth/tokens/all-200.json b/samples/auth/tokens/all-200.json deleted file mode 100644 index 785b4e9..0000000 --- a/samples/auth/tokens/all-200.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "path": "/tokens", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 12:05:28 GMT", - "Etag": "W/\"7d82f14401e4d20e890df1fbac5930a6\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "tokens": [ - { - "id": "3dd547b4-6bfc-489f-a6d7-e14aa088f410", - "name": "Sampler", - "created_at": "2020-05-13T19:48:39.395Z", - "last_used_at": "2020-05-29T12:05:28.524Z", - "issued_at": "2020-05-29T11:33:33.891Z" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/auth/tokens/create-201.json b/samples/auth/tokens/create-201.json deleted file mode 100644 index 6f77c7a..0000000 --- a/samples/auth/tokens/create-201.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "path": "/tokens", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "token": { - "name": "test-token" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 12:05:29 GMT", - "Etag": "W/\"3341a1ccae07710b52b713bcb8f67dbf\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "token": { - "id": "b0c18b26-2a26-4032-a4d9-245877478bf1", - "name": "test-token", - "created_at": "2020-05-29T12:05:29.039Z", - "last_used_at": null, - "issued_at": "2020-05-29T12:05:29.039Z", - "token": "tk-us-0DsVKu4FH6xI11oM92hHwnd2O08U36YOWlA1-MtO21dwpVjz" - } - } - } -} \ No newline at end of file diff --git a/samples/auth/tokens/destroy-204.json b/samples/auth/tokens/destroy-204.json deleted file mode 100644 index aed921b..0000000 --- a/samples/auth/tokens/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/tokens/b0c18b26-2a26-4032-a4d9-245877478bf1", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 12:05:30 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/auth/tokens/destroy-404.json b/samples/auth/tokens/destroy-404.json deleted file mode 100644 index 26f6fa6..0000000 --- a/samples/auth/tokens/destroy-404.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/tokens/wrong-token-id", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 12:05:30 GMT", - "Content-Type": "text/html; charset=UTF-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive" - }, - "body": "\n\n\n The page you were looking for doesn't exist (404)\n \n \n\n\n\n \n
\n
\n

The page you were looking for doesn't exist.

\n

You may have mistyped the address or the page may have moved.

\n
\n

If you are the application owner check the logs for more information.

\n
\n\n\n" - } -} \ No newline at end of file diff --git a/samples/auth/tokens/exchange-200.json b/samples/auth/tokens/exchange-200.json deleted file mode 100644 index d1b10fc..0000000 --- a/samples/auth/tokens/exchange-200.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "path": "/tokens/exchange", - "method": "post", - "request": { - "headers": { - "Authorization": "Basic OnRrLXVzLVVOVGdzN1JlcDVNNTZVR2Y5U2FkWVNOLVFxc3YxaXltZW5ZbUhTUlhkejJRNnRFQg==", - "Content-Length": "0" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 12:05:28 GMT", - "Etag": "W/\"7f68fb676650040b70af4d75b3803592\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJTY2FsaW5nbyIsImlhdCI6MTU5MDc1MzkyOCwidXVpZCI6InVzLTY3NmJiMGMxLTFjYTktNDY4Mi04ZWUxLTI1NzQyMmU5ZWFiNSIsInJuZCI6IjAyYjk0NjBjMDk1ZjgxYWIwY2RiODNiMWUzMDRjZDE1IiwiZXhwIjoxNTkwNzU3NTI4fQ.vAsMo1hdZ2LFILeOlNIHfMlv0rlRK5GX2Ii_JPJbUH-btnOUfrsrHr1KZvEnDh4QVLwRlFHlwVwCU3ROCQoe_Q" - } - } -} \ No newline at end of file diff --git a/samples/auth/tokens/exchange-401.json b/samples/auth/tokens/exchange-401.json deleted file mode 100644 index 71c0a6e..0000000 --- a/samples/auth/tokens/exchange-401.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/tokens/exchange", - "method": "post", - "request": { - "headers": { - "Authorization": "Basic Ondyb25nLXRva2Vu", - "Content-Length": "0" - } - }, - "response": { - "status": 401, - "headers": { - "Date": "Fri, 29 May 2020 12:05:28 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "Invalid credentials" - } - } -} \ No newline at end of file diff --git a/samples/auth/tokens/renew-200.json b/samples/auth/tokens/renew-200.json deleted file mode 100644 index 826b926..0000000 --- a/samples/auth/tokens/renew-200.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "path": "/tokens/b0c18b26-2a26-4032-a4d9-245877478bf1/renew", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Length": "0" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 12:05:29 GMT", - "Etag": "W/\"10a925ef481d672b13115d602f6af880\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "token": { - "id": "b0c18b26-2a26-4032-a4d9-245877478bf1", - "name": "test-token", - "created_at": "2020-05-29T12:05:29.039Z", - "last_used_at": null, - "issued_at": "2020-05-29T12:05:29.599Z", - "token": "tk-us-MUAlvyVTirb9mwMXLrJ32gKb7SCwEFmmdL4-2INSgD0HTDRr" - } - } - } -} \ No newline at end of file diff --git a/samples/auth/tokens/renew-404.json b/samples/auth/tokens/renew-404.json deleted file mode 100644 index f8bb403..0000000 --- a/samples/auth/tokens/renew-404.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "path": "/tokens/wrong-token-id/renew", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Length": "0" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 12:05:29 GMT", - "Content-Type": "text/html; charset=UTF-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive" - }, - "body": "\n\n\n The page you were looking for doesn't exist (404)\n \n \n\n\n\n \n
\n
\n

The page you were looking for doesn't exist.

\n

You may have mistyped the address or the page may have moved.

\n
\n

If you are the application owner check the logs for more information.

\n
\n\n\n" - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/_meta.json b/samples/auth/two_factor_auth/_meta.json deleted file mode 100644 index 7fa8a6e..0000000 --- a/samples/auth/two_factor_auth/_meta.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "attempt": null, - "initiate": { - "valid": {"provider": "totp"}, - "invalid": {"provider": "wrong-provider"} - }, - "validate": { - "valid": {"attempt": "975037"}, - "invalid": {"attempt": "wrong-attempt"} - } -} diff --git a/samples/auth/two_factor_auth/disable-not-initiated.json b/samples/auth/two_factor_auth/disable-not-initiated.json deleted file mode 100644 index e5d7db9..0000000 --- a/samples/auth/two_factor_auth/disable-not-initiated.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "path": "/client/tfa", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 15:51:26 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "2fa not enabled for this account" - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/disable-success.json b/samples/auth/two_factor_auth/disable-success.json deleted file mode 100644 index e40f0fc..0000000 --- a/samples/auth/two_factor_auth/disable-success.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/client/tfa", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:51:29 GMT", - "Etag": "W/\"665d72913e6740ad3d6e9d03d4c552c3\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "tfa": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "enabled": false, - "provider": null - } - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/initiate-already-enabled.json b/samples/auth/two_factor_auth/initiate-already-enabled.json deleted file mode 100644 index 5307754..0000000 --- a/samples/auth/two_factor_auth/initiate-already-enabled.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/client/tfa", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "tfa": { - "provider": "totp" - } - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 15:51:29 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "2fa already enabled" - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/initiate-success.json b/samples/auth/two_factor_auth/initiate-success.json deleted file mode 100644 index 44b10e4..0000000 --- a/samples/auth/two_factor_auth/initiate-success.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "path": "/client/tfa", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "tfa": { - "provider": "totp" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 15:51:27 GMT", - "Etag": "W/\"e9b8efcdeb8c0f3b59438a59dd76c8ba\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "tfa": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "enabled": false, - "provider": null, - "uri": "otpauth://totp/ScalingoStaging:example@null.scalingo.com?secret=tqjc262xmnqhttmdeobifcyl&issuer=ScalingoStaging" - } - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/initiate-wrong-provider.json b/samples/auth/two_factor_auth/initiate-wrong-provider.json deleted file mode 100644 index 551636d..0000000 --- a/samples/auth/two_factor_auth/initiate-wrong-provider.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/client/tfa", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "tfa": { - "provider": "wrong-provider" - } - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 15:51:26 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "invalid provider" - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/status.json b/samples/auth/two_factor_auth/status.json deleted file mode 100644 index 5e7d583..0000000 --- a/samples/auth/two_factor_auth/status.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/client/tfa", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:51:26 GMT", - "Etag": "W/\"665d72913e6740ad3d6e9d03d4c552c3\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "tfa": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "enabled": false, - "provider": null - } - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/validate-not-initiated.json b/samples/auth/two_factor_auth/validate-not-initiated.json deleted file mode 100644 index cd6b0d1..0000000 --- a/samples/auth/two_factor_auth/validate-not-initiated.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/client/tfa/validate", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "tfa": { - "attempt": "wrong-attempt" - } - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 15:51:26 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "otp not created" - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/validate-success.json b/samples/auth/two_factor_auth/validate-success.json deleted file mode 100644 index 9eef47c..0000000 --- a/samples/auth/two_factor_auth/validate-success.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "path": "/client/tfa/validate", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "tfa": { - "attempt": "975037" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 15:51:29 GMT", - "Etag": "W/\"d0e0f53b0bd356ed893581d0cd1520c4\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "tfa": { - "codes": [ - "7c2f7b8eef39f6f0fecf50c6cba10bc861e841a642474d0e1df3127757c33c99", - "fdba714c148254297b68c73cafc93bda56acb40bdc607cf713e03dbb32a04ad7", - "9fade6177b7347af2182c5c876d65a9d999cf0c5d1600d970facbdebbab7010b", - "2951e3e7d4a7dc40541a75c5e809ceda45260eadf0ac71ecb21411aecdb0b85c", - "841d1b0a685b9413a66c5d9b893d77d01a62b2208f5c46eb8d1e4f4c86ab0689", - "9aceef68c0e4ad1ebca5f9d85bc673ea0d59539f1dafa8d2fe26ce42a17bc548", - "0cb2458616577b6ae27a3fbac5bffb900a3c870b50b7c16688634312c6a7d38c", - "074d2589afc44a573da3513f40143af68bc4569698f736f04a322a4b6769061e", - "5f59a1d55138adc8f270ff20bfe94cd99eda5c93a20fc13388f738fcd9ac5e92", - "bec0262c91b7dee6822bcfad9f97c55eccadc783090285ecc91c5792c89f2c00" - ], - "user": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "enabled": true, - "provider": "totp" - } - } - } - } -} \ No newline at end of file diff --git a/samples/auth/two_factor_auth/validate-wrong.json b/samples/auth/two_factor_auth/validate-wrong.json deleted file mode 100644 index 701473b..0000000 --- a/samples/auth/two_factor_auth/validate-wrong.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/client/tfa/validate", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "tfa": { - "attempt": "wrong-attempt" - } - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 15:51:27 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "unable to validate otp attempt" - } - } -} \ No newline at end of file diff --git a/samples/auth/user/_meta.json b/samples/auth/user/_meta.json deleted file mode 100644 index 69dcd45..0000000 --- a/samples/auth/user/_meta.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "update": { - "invalid": { - "username": "soulou" - }, - "valid": { - "location": "Some other city" - } - } -} \ No newline at end of file diff --git a/samples/auth/user/self.json b/samples/auth/user/self.json deleted file mode 100644 index ff976a7..0000000 --- a/samples/auth/user/self.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "path": "/users/self", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:46:32 GMT", - "Etag": "W/\"08bf4adf1520d417f7f03783353a3b5d\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "user": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "created_at": "2020-05-13T19:03:47.606Z", - "email": "example@null.scalingo.com", - "username": "example-username", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "company": null, - "location": "Somecity", - "fullname": "Example Username", - "github": { - "username": null, - "email": null, - "avatar_url": null, - "profile_url": null - }, - "tos_accepted": true, - "unconfirmed_email": null, - "flags": { - "": true, - "admin": true - }, - "limits": { - }, - "referral_url": "https://staging.sclng.io/r/dc4830c8190baf25", - "referral_clicks": 0, - "free_trial_started_at": "2020-05-13T19:03:47.603Z", - "free_trial_end_time": "2020-05-29T13:02:23.469Z", - "suspended_at": null, - "suspension_reason": null, - "intercom_hash": "4a5880451125eef5aa30e0e10b67057086e2c0faa99de3eda3d7b8310bfda235" - } - } - } -} \ No newline at end of file diff --git a/samples/auth/user/stop-free-trial.json b/samples/auth/user/stop-free-trial.json deleted file mode 100644 index 64d6cc6..0000000 --- a/samples/auth/user/stop-free-trial.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/users/stop_free_trial", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Thu, 27 Aug 2020 10:46:32 GMT", - "Etag": "W/\"08bf4adf1520d417f7f03783353a3b5d\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "message": "ok" - } - } -} diff --git a/samples/auth/user/update-200.json b/samples/auth/user/update-200.json deleted file mode 100644 index 275c311..0000000 --- a/samples/auth/user/update-200.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "path": "/users/account", - "method": "put", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "user": { - "location": "Some other city" - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:46:32 GMT", - "Etag": "W/\"9b37ad52abd6ab06664d2b68490e5c28\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "user": { - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "created_at": "2020-05-13T19:03:47.606Z", - "email": "example@null.scalingo.com", - "username": "example-username", - "uuid": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "company": null, - "location": "Some other city", - "fullname": "Example Username", - "github": { - "username": null, - "email": null, - "avatar_url": null, - "profile_url": null - }, - "tos_accepted": true, - "unconfirmed_email": null, - "flags": { - "": true, - "admin": true - }, - "limits": { - }, - "referral_url": "https://staging.sclng.io/r/dc4830c8190baf25", - "referral_clicks": 0, - "free_trial_started_at": "2020-05-13T19:03:47.603Z", - "free_trial_end_time": "2020-05-29T13:02:23.469Z", - "suspended_at": null, - "suspension_reason": null - } - } - } -} \ No newline at end of file diff --git a/samples/auth/user/update-422.json b/samples/auth/user/update-422.json deleted file mode 100644 index 4c68039..0000000 --- a/samples/auth/user/update-422.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "path": "/users/account", - "method": "put", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "user": { - "username": "soulou" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 15:46:32 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "username": [ - "has already been taken" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/billing/profile/_meta.json b/samples/billing/profile/_meta.json deleted file mode 100644 index 3ce001e..0000000 --- a/samples/billing/profile/_meta.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "id": "882d7733-923b-40dc-88e6-f1324e48c42a", - "create": { - "valid": { - "name": "Billing profile", - "address_line1": "1, rue de la paix", - "address_zip": "75001", - "address_city": "Paris", - "address_country": "France" - }, - "invalid": { - "some": "attribute" - } - }, - "update": { - "valid": { - "address_city": "New Somecity" - }, - "invalid": { - "address_country": "not a country" - } - } -} \ No newline at end of file diff --git a/samples/billing/profile/create-201.json b/samples/billing/profile/create-201.json deleted file mode 100644 index d174738..0000000 --- a/samples/billing/profile/create-201.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "path": "/profiles", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "profile": { - "name": "Billing profile", - "address_line1": "1, rue de la paix", - "address_zip": "75001", - "address_city": "Paris", - "address_country": "France" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 12 Jun 2020 15:46:11 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache" - }, - "json_body": { - "profile": { - "id": "882d7733-923b-40dc-88e6-f1324e48c42a", - "name": "Billing profile", - "email": null, - "address_line1": "1, rue de la paix", - "address_line2": null, - "address_city": "Paris", - "balance": 0, - "address_zip": "75001", - "address_state": null, - "address_country": "FR", - "vat_number": null, - "company": null, - "payment_method": "sepa", - "created_at": "2020-05-29T13:01:46.217Z", - "updated_at": "2020-06-12T15:45:43.535Z", - "credit": 0, - "stripe_payment_method": null - } - } - } -} diff --git a/samples/billing/profile/create-400.json b/samples/billing/profile/create-400.json deleted file mode 100644 index f4710a1..0000000 --- a/samples/billing/profile/create-400.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "path": "/profiles", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 12 Jun 2020 15:46:10 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache" - }, - "json_body": { - "error": "profile is required" - } - } -} diff --git a/samples/billing/profile/create-422.json b/samples/billing/profile/create-422.json deleted file mode 100644 index efea85c..0000000 --- a/samples/billing/profile/create-422.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "path": "/profiles", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "profile": { - "some": "attribute" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 12 Jun 2020 15:46:11 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache" - }, - "json_body": { - "errors": { - "name": [ - "can't be blank" - ], - "address_line1": [ - "can't be blank" - ], - "address_zip": [ - "can't be blank" - ], - "address_city": [ - "can't be blank" - ], - "address_country": [ - "can't be blank" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/billing/profile/show-200.json b/samples/billing/profile/show-200.json deleted file mode 100644 index d91da0d..0000000 --- a/samples/billing/profile/show-200.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "path": "/profile", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 12 Jun 2020 15:46:10 GMT", - "Etag": "W/\"d1a1d2eed6a6fc5fb399b497a4572e89\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate" - }, - "json_body": { - "profile": { - "id": "882d7733-923b-40dc-88e6-f1324e48c42a", - "name": "Billing", - "email": null, - "address_line1": "Somewhere", - "address_line2": null, - "address_city": "Somecity", - "balance": 0, - "address_zip": "12345", - "address_state": null, - "address_country": "FR", - "vat_number": null, - "company": null, - "payment_method": "sepa", - "created_at": "2020-05-29T13:01:46.217Z", - "updated_at": "2020-06-12T15:45:43.535Z", - "credit": 0, - "stripe_payment_method": null - } - } - } -} \ No newline at end of file diff --git a/samples/billing/profile/show-404.json b/samples/billing/profile/show-404.json deleted file mode 100644 index b99b74a..0000000 --- a/samples/billing/profile/show-404.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "path": "/profile", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 12 Jun 2020 15:46:10 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache" - }, - "json_body": { - "error": "no billing profile" - } - } -} \ No newline at end of file diff --git a/samples/billing/profile/update-200.json b/samples/billing/profile/update-200.json deleted file mode 100644 index 49d0f8d..0000000 --- a/samples/billing/profile/update-200.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "path": "/profiles/882d7733-923b-40dc-88e6-f1324e48c42a", - "method": "put", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "profile": { - "address_city": "New Somecity" - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 12 Jun 2020 15:46:11 GMT", - "Etag": "W/\"885ba0ce422a076feb961e3bed89db0c\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate" - }, - "json_body": { - "profile": { - "id": "882d7733-923b-40dc-88e6-f1324e48c42a", - "name": "Billing", - "email": null, - "address_line1": "Somewhere", - "address_line2": null, - "address_city": "New Somecity", - "balance": 0, - "address_zip": "12345", - "address_state": null, - "address_country": "FR", - "vat_number": null, - "company": null, - "payment_method": "sepa", - "created_at": "2020-05-29T13:01:46.217Z", - "updated_at": "2020-06-12T15:46:11.559Z", - "credit": 0, - "stripe_payment_method": null - } - } - } -} \ No newline at end of file diff --git a/samples/billing/profile/update-422.json b/samples/billing/profile/update-422.json deleted file mode 100644 index 70f1c5b..0000000 --- a/samples/billing/profile/update-422.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "path": "/profiles/882d7733-923b-40dc-88e6-f1324e48c42a", - "method": "put", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "profile": { - "address_country": "not a country" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 12 Jun 2020 15:46:11 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache" - }, - "json_body": { - "errors": { - "address_country": [ - "is not a valid country" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/_meta.json b/samples/regional/addons/_meta.json deleted file mode 100644 index 2c8aefa..0000000 --- a/samples/regional/addons/_meta.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "app_id": "5ed10967884fef000f5e4fff", - "id": "ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "not_found_id": "wrong-addon-id", - "provision": { - "invalid": { - "addon_provider_id": "postgresql" - }, - "valid": { - "addon_provider_id": "postgresql", - "plan_id": "5d1e03873e6b3b000eefa827" - } - }, - "update": { - "invalid": { - "plan_id": "wrong-plan-id" - }, - "valid": { - "plan_id": "5d1e03af3e6b3b000eefa82a" - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/categories-guest.json b/samples/regional/addons/categories-guest.json deleted file mode 100644 index 814b4d7..0000000 --- a/samples/regional/addons/categories-guest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "path": "/addon_categories", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:56 GMT", - "Etag": "W/\"9a8a168fa3a886950d3624c37406fc54\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon_categories": [ - { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "description": "# Description is in markdown\r\n\r\nData storage solutions for you applications\r\n\r\n## You can scale them as you wish !", - "position": 1 - }, - { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "description": "", - "position": 2 - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/categories-logged.json b/samples/regional/addons/categories-logged.json deleted file mode 100644 index 0c2bc73..0000000 --- a/samples/regional/addons/categories-logged.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "path": "/addon_categories", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:56 GMT", - "Etag": "W/\"9a8a168fa3a886950d3624c37406fc54\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon_categories": [ - { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "description": "# Description is in markdown\r\n\r\nData storage solutions for you applications\r\n\r\n## You can scale them as you wish !", - "position": 1 - }, - { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "description": "", - "position": 2 - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/destroy-204.json b/samples/regional/addons/destroy-204.json deleted file mode 100644 index e0d538d..0000000 --- a/samples/regional/addons/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 13:09:01 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/addons/destroy-404.json b/samples/regional/addons/destroy-404.json deleted file mode 100644 index 41ff3eb..0000000 --- a/samples/regional/addons/destroy-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/wrong-addon-id", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:09:01 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "addon", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/find-200.json b/samples/regional/addons/find-200.json deleted file mode 100644 index 45dba31..0000000 --- a/samples/regional/addons/find-200.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"05abc99f1f317b622714f6f7d379296b\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon": { - "id": "ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "app_id": "5ed10967884fef000f5e4fff", - "resource_id": "some_example_5629", - "addon_provider": { - "id": "postgresql", - "name": "PostgreSQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Postgresql.svg" - }, - "plan": { - "id": "5d1e03873e6b3b000eefa827", - "name": "postgresql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

Pouet

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-sandbox" - }, - "provisioned_at": "2020-05-29T13:08:58.103Z", - "deprovisioned_at": null, - "status": "provisioning" - } - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/find-404.json b/samples/regional/addons/find-404.json deleted file mode 100644 index 8370733..0000000 --- a/samples/regional/addons/find-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/wrong-addon-id", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "addon", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/for-200.json b/samples/regional/addons/for-200.json deleted file mode 100644 index 42868d1..0000000 --- a/samples/regional/addons/for-200.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"11c09f61bfabc27524efd76463b5afb3\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addons": [ - { - "id": "ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "app_id": "5ed10967884fef000f5e4fff", - "resource_id": "some_example_5629", - "addon_provider": { - "id": "postgresql", - "name": "PostgreSQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Postgresql.svg" - }, - "plan": { - "id": "5d1e03873e6b3b000eefa827", - "name": "postgresql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

Pouet

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-sandbox" - }, - "provisioned_at": "2020-05-29T13:08:58.103Z", - "deprovisioned_at": null, - "status": "provisioning" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/providers-guest.json b/samples/regional/addons/providers-guest.json deleted file mode 100644 index d700c20..0000000 --- a/samples/regional/addons/providers-guest.json +++ /dev/null @@ -1,588 +0,0 @@ -{ - "path": "/addon_providers", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:56 GMT", - "Etag": "W/\"2518ea34b5f5f79ac75d79cb805e1661\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon_providers": [ - { - "name": "Dummy Addon", - "logo_url": "//storage.sbg1.cloud.ovh.net/v1/AUTH_be65d32d71a6435589a419eac98613f2/scalingo/scalingo-avatar.png", - "id": "dummy-addon", - "short_description": "Completely Dummy", - "description": "Completely Dummy addon for testing purposes", - "category": { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "position": 2 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "55489f5061646d0001010000", - "name": "plan1", - "display_name": "First plan", - "price": 0.0, - "description": "

First plan, do nothing

\n", - "position": 0, - "on_demand": null, - "disabled": null, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-plan1" - }, - { - "id": "55489f5e61646d0001020000", - "name": "plan2", - "display_name": "Second plan", - "price": 0.0, - "description": "

Do nothing twice

\n", - "position": 2, - "on_demand": null, - "disabled": null, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-plan2" - }, - { - "id": "5821de7e3e6b3b00149051ad", - "name": "crashing-plan", - "display_name": "Crashing Plan", - "price": 0.0, - "description": "

Third

\n", - "position": 3, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-crashing-plan" - } - ] - }, - { - "name": "VPN Addon", - "logo_url": "//appcenter.software-univention.de/meta-inf/4.2/openvpn4ucs/openvpn4ucs_detail_logo.svg", - "id": "vpn-addon", - "short_description": "", - "description": "", - "category": { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "position": 2 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5a1563f73e6b3b00122bb419", - "name": "vpn-openvpn-standard", - "display_name": "OpenVPN", - "price": 0.0, - "description": "

OpenVPN

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-vpn-openvpn-standard" - }, - { - "id": "5a1564083e6b3b00122bb41b", - "name": "vpn-ipsec-standard", - "display_name": "IPSec VPN", - "price": 0.0, - "description": "

VPN IPSec

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-vpn-ipsec-standard" - } - ] - }, - { - "name": "Scalingo Docker Image", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_DockerImage_20162106105400.png", - "id": "scalingo-docker-image", - "short_description": "Get the docker images of the applications you've deployed on the platform", - "description": "Get the docker images of the applications you've deployed on the platform", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "Scalingo", - "provider_url": "https://scalingo.com", - "plans": [ - { - "id": "575a71ba61646d000c010000", - "name": "base-plan", - "display_name": "Base Plan", - "price": 0.0, - "description": "

Descriptions

\n", - "position": 0, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-base-plan" - } - ] - }, - { - "name": "MySQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_MySQL.svg", - "id": "mysql", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you MySQL as a service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate MySQL databases on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n### Optimal MySQL Performance\r\n\r\nEnjoy SSD-like **performance** on our SAN-backed and dedicated MySQL processes on all of our plans.\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5e9589d43e6b3b000f1f57d3", - "name": "mysql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "\n", - "position": 0, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-sandbox" - }, - { - "id": "5e31afc23e6b3b000f708ce5", - "name": "mysql-starter-256", - "display_name": "Starter 256M", - "price": 3.6, - "description": "\n", - "position": 1, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-starter-256" - }, - { - "id": "5e95b8d93e6b3b000f1f57d7", - "name": "mysql-starter-512", - "display_name": "Starter 512M", - "price": 7.2, - "description": "\n", - "position": 2, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-starter-512" - }, - { - "id": "531c9b09646173000a030000", - "name": "1g", - "display_name": " 1G Database", - "price": 14.4, - "description": "

Daily backups
\n1GB RAM
\nIncludes 10GB disk space
\nMax connections: 62
\nMultiple Users
\nEmail Support
\nPrice for over plan disk space: 2€/GB
\nPrice displayed is computed for a total of 30 days

\n", - "position": 3, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-1g" - }, - { - "id": "5e95ba9f3e6b3b000f1f57df", - "name": "mysql-business-512", - "display_name": "Business 512M", - "price": 20.0, - "description": "\n", - "position": 4, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-business-512" - }, - { - "id": "5e95bad83e6b3b000f1f57e2", - "name": "mysql-business-1024", - "display_name": "Business 1G", - "price": 40.0, - "description": "\n", - "position": 5, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-business-1024" - } - ] - }, - { - "name": "TCP Load Balancer", - "logo_url": "http://1zkq0n152z6rnp4v81tnk1zh-wpengine.netdna-ssl.com/wp-content/uploads/2016/03/IOTlogopng503x503.png", - "id": "tcp-load-balancer", - "short_description": "Un addon TCP tmtc", - "description": "THE ADDON TMTC tmtc ", - "category": { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "position": 2 - }, - "provider_name": "Scalingo", - "provider_url": "https://scalingo.com", - "plans": [ - { - "id": "59de15cf3e6b3b001214ea90", - "name": "sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

200 pps
\n2000 Packet burst

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-sandbox" - }, - { - "id": "59f8750e3e6b3b0010859de9", - "name": "1k", - "display_name": "1k pps", - "price": 10.0, - "description": "

1 000 pps
\n10 000 packets burst

\n", - "position": 2, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-1k" - }, - { - "id": "59f875343e6b3b0010859deb", - "name": "10k", - "display_name": "10k pps", - "price": 1000.0, - "description": "

10 000 pps
\n100 000 packets burst

\n", - "position": 3, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-10k" - } - ] - }, - { - "name": "MongoDB", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_MongoDB_20151203113100.svg", - "id": "mongodb", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you MongoDB as a service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate MongoDB databases on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n### Optimal MongoDB Performance\r\n\r\nEnjoy SSD-like **performance** on our SAN-backed and dedicated MongoDB processes on all of our plans.\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Oplog for single node instances\r\n\r\nAccessing the **oplog** is just a click away on our web dashboard!\r\nEnjoy real time features in the applications which require it.\r\nMeteor JS developers, that's for you!\r\n\r\n
\r\n\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5995bf383e6b3b001390a9d2", - "name": "mongo-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "\n", - "position": 0, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-sandbox" - }, - { - "id": "59b2a9cc3e6b3b00124da641", - "name": "mongo-starter-256", - "display_name": "Starter 256M", - "price": 7.2, - "description": "

Mongo Starter 256

\n", - "position": 2, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-starter-256" - }, - { - "id": "5bed7e6fc44b4700116a530d", - "name": "mongo-starter-1024", - "display_name": "Starter 1G", - "price": 14.4, - "description": "

1G

\n", - "position": 4, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-starter-1024" - }, - { - "id": "596e5ded3e6b3b001282f88d", - "name": "mongo-business-512", - "display_name": "Business 512MB", - "price": 10.0, - "description": "\n", - "position": 5, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-business-512" - }, - { - "id": "59b7d8a43e6b3b00124da648", - "name": "mongo-business-1024", - "display_name": "Business 1G", - "price": 20.0, - "description": "\n", - "position": 6, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-business-1024" - } - ] - }, - { - "name": "Elasticsearch", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Elasticsearch.svg", - "id": "elasticsearch", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you Elasticsearch as a service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate Elasticsearch databases on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n### Optimal Elasticsearch Performance\r\n\r\nEnjoy SSD-like **performance** on our SAN-backed and dedicated Elasticsearch processes on all of our plans.\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5c1bbf5d3e6b3b0012974a97", - "name": "sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

sandbox plan: for hobbyits

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-sandbox" - }, - { - "id": "5c1bbf733e6b3b0012974a98", - "name": "starter-1024", - "display_name": "Starter 1024", - "price": 10.0, - "description": "

Starter 1GB

\n", - "position": 2, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-starter-1024" - }, - { - "id": "5c1bbf923e6b3b0012974a99", - "name": "starter-2048", - "display_name": "Starter 2048", - "price": 10.0, - "description": "

Starter 2GB

\n", - "position": 3, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-starter-2048" - }, - { - "id": "5c1bbfa73e6b3b0012974a9a", - "name": "business-1024", - "display_name": "Business 1024", - "price": 100.0, - "description": "

Toto

\n", - "position": 5, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-business-1024" - }, - { - "id": "5c1bbfbe3e6b3b0012974a9b", - "name": "business-2048", - "display_name": "Business 2048", - "price": 250.0, - "description": "

TotoMolo

\n", - "position": 6, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-business-2048" - }, - { - "id": "5c34f89290da2a001233c454", - "name": "business-4096", - "display_name": "Business 4096M", - "price": 500.0, - "description": "

3 nodes 4G

\n", - "position": 10, - "on_demand": true, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-business-4096" - } - ] - }, - { - "name": "Redis", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Redis.svg", - "id": "redis", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you Redis as a Service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate Redis instances on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5cb093763e6b3b00117a36f0", - "name": "redis-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "\n", - "position": 10, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-sandbox" - }, - { - "id": "5cb093983e6b3b00117a36f2", - "name": "redis-starter-256", - "display_name": "Starter 256M", - "price": 7.2, - "description": "\n", - "position": 20, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-starter-256" - }, - { - "id": "5cb093bc3e6b3b00117a36f4", - "name": "redis-starter-512", - "display_name": "Starter 512M", - "price": 14.4, - "description": "\n", - "position": 20, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-starter-512" - }, - { - "id": "5cb093dd3e6b3b00117a36f6", - "name": "redis-starter-1024", - "display_name": "Starter 1G", - "price": 28.8, - "description": "\n", - "position": 40, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-starter-1024" - }, - { - "id": "5cb093fd3e6b3b00117a36f8", - "name": "redis-business-256", - "display_name": "Business 256M", - "price": 14.4, - "description": "\n", - "position": 50, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-business-256" - }, - { - "id": "5cb0943a3e6b3b00117a36fa", - "name": "redis-business-512", - "display_name": "Business 512M", - "price": 28.8, - "description": "\n", - "position": 70, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-business-512" - }, - { - "id": "5cb094573e6b3b00117a36fc", - "name": "redis-business-1024", - "display_name": "Business 1G", - "price": 57.6, - "description": "\n", - "position": 90, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-business-1024" - } - ] - }, - { - "name": "InfluxDB", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Influx_20160624151600.svg", - "id": "influxdb", - "short_description": "", - "description": "", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "576c1d5e61646d000b010000", - "name": "free", - "display_name": "Free Tier", - "price": 0.0, - "description": "

Free Tier

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-free" - }, - { - "id": "59440c833e6b3b001103ffad", - "name": "4g", - "display_name": "4G Database", - "price": 0.0, - "description": "

4G RAM Database

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-4g" - } - ] - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/providers-logged.json b/samples/regional/addons/providers-logged.json deleted file mode 100644 index b7828bf..0000000 --- a/samples/regional/addons/providers-logged.json +++ /dev/null @@ -1,705 +0,0 @@ -{ - "path": "/addon_providers", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:57 GMT", - "Etag": "W/\"f294c250e74be39cf7d31ac16591f442\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon_providers": [ - { - "name": "Dummy Log Addon", - "logo_url": "//storage.sbg1.cloud.ovh.net/v1/AUTH_be65d32d71a6435589a419eac98613f2/scalingo/scalingo-avatar.png", - "id": "dummy-log-addon", - "short_description": "Completely Dummy Log Output", - "description": "Completely Dummy log addon for testing purposes", - "category": { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "position": 2 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "55e0519661646d0001010000", - "name": "plan1", - "display_name": "First plan", - "price": 0.0, - "description": "

Test Plan

\n", - "position": 0, - "on_demand": null, - "disabled": null, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-plan1" - } - ] - }, - { - "name": "PostgreSQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Postgresql.svg", - "id": "postgresql", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you PostgreSQL as a service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate PostgreSQL databases on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n### Optimal PostgreSQL Performance\r\n\r\nEnjoy SSD-like **performance** on our SAN-backed and dedicated PostgreSQL processes on all of our plans.\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5d1e03873e6b3b000eefa827", - "name": "postgresql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

Pouet

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-sandbox" - }, - { - "id": "5d1e03af3e6b3b000eefa82a", - "name": "postgresql-starter-512", - "display_name": "Starter 512M", - "price": 0.0, - "description": "

Biniou

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-starter-512" - }, - { - "id": "5d1e03d93e6b3b000eefa82e", - "name": "postgresql-starter-1024", - "display_name": "Starter 1G", - "price": 0.0, - "description": "

Biniou

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-starter-1024" - }, - { - "id": "5d1e04033e6b3b000eefa831", - "name": "postgresql-business-512", - "display_name": "Business 512M", - "price": 0.0, - "description": "

Cluster!

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-business-512" - }, - { - "id": "5d1e04203e6b3b000eefa834", - "name": "postgresql-business-1024", - "display_name": "Business 1G", - "price": 0.0, - "description": "

Cluster!

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-business-1024" - }, - { - "id": "5d6011183e6b3b000f01a4f5", - "name": "postgresql-starter-2048", - "display_name": "Starter 2G", - "price": 0.0, - "description": "

Pipo

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-starter-2048" - } - ] - }, - { - "name": "Dummy Addon", - "logo_url": "//storage.sbg1.cloud.ovh.net/v1/AUTH_be65d32d71a6435589a419eac98613f2/scalingo/scalingo-avatar.png", - "id": "dummy-addon", - "short_description": "Completely Dummy", - "description": "Completely Dummy addon for testing purposes", - "category": { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "position": 2 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "55489f5061646d0001010000", - "name": "plan1", - "display_name": "First plan", - "price": 0.0, - "description": "

First plan, do nothing

\n", - "position": 0, - "on_demand": null, - "disabled": null, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-plan1" - }, - { - "id": "55489f5e61646d0001020000", - "name": "plan2", - "display_name": "Second plan", - "price": 0.0, - "description": "

Do nothing twice

\n", - "position": 2, - "on_demand": null, - "disabled": null, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-plan2" - }, - { - "id": "5821de7e3e6b3b00149051ad", - "name": "crashing-plan", - "display_name": "Crashing Plan", - "price": 0.0, - "description": "

Third

\n", - "position": 3, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-crashing-plan" - } - ] - }, - { - "name": "VPN Addon", - "logo_url": "//appcenter.software-univention.de/meta-inf/4.2/openvpn4ucs/openvpn4ucs_detail_logo.svg", - "id": "vpn-addon", - "short_description": "", - "description": "", - "category": { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "position": 2 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5a1563f73e6b3b00122bb419", - "name": "vpn-openvpn-standard", - "display_name": "OpenVPN", - "price": 0.0, - "description": "

OpenVPN

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-vpn-openvpn-standard" - }, - { - "id": "5a1564083e6b3b00122bb41b", - "name": "vpn-ipsec-standard", - "display_name": "IPSec VPN", - "price": 0.0, - "description": "

VPN IPSec

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-vpn-ipsec-standard" - } - ] - }, - { - "name": "Scalingo Docker Image", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_DockerImage_20162106105400.png", - "id": "scalingo-docker-image", - "short_description": "Get the docker images of the applications you've deployed on the platform", - "description": "Get the docker images of the applications you've deployed on the platform", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "Scalingo", - "provider_url": "https://scalingo.com", - "plans": [ - { - "id": "575a71ba61646d000c010000", - "name": "base-plan", - "display_name": "Base Plan", - "price": 0.0, - "description": "

Descriptions

\n", - "position": 0, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-base-plan" - } - ] - }, - { - "name": "MySQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_MySQL.svg", - "id": "mysql", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you MySQL as a service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate MySQL databases on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n### Optimal MySQL Performance\r\n\r\nEnjoy SSD-like **performance** on our SAN-backed and dedicated MySQL processes on all of our plans.\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5e9589d43e6b3b000f1f57d3", - "name": "mysql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "\n", - "position": 0, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-sandbox" - }, - { - "id": "5e31afc23e6b3b000f708ce5", - "name": "mysql-starter-256", - "display_name": "Starter 256M", - "price": 3.6, - "description": "\n", - "position": 1, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-starter-256" - }, - { - "id": "5e95b8d93e6b3b000f1f57d7", - "name": "mysql-starter-512", - "display_name": "Starter 512M", - "price": 7.2, - "description": "\n", - "position": 2, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-starter-512" - }, - { - "id": "531c9b09646173000a030000", - "name": "1g", - "display_name": " 1G Database", - "price": 14.4, - "description": "

Daily backups
\n1GB RAM
\nIncludes 10GB disk space
\nMax connections: 62
\nMultiple Users
\nEmail Support
\nPrice for over plan disk space: 2€/GB
\nPrice displayed is computed for a total of 30 days

\n", - "position": 3, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-1g" - }, - { - "id": "5e95ba9f3e6b3b000f1f57df", - "name": "mysql-business-512", - "display_name": "Business 512M", - "price": 20.0, - "description": "\n", - "position": 4, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-business-512" - }, - { - "id": "5e95bad83e6b3b000f1f57e2", - "name": "mysql-business-1024", - "display_name": "Business 1G", - "price": 40.0, - "description": "\n", - "position": 5, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mysql-business-1024" - } - ] - }, - { - "name": "TCP Load Balancer", - "logo_url": "http://1zkq0n152z6rnp4v81tnk1zh-wpengine.netdna-ssl.com/wp-content/uploads/2016/03/IOTlogopng503x503.png", - "id": "tcp-load-balancer", - "short_description": "Un addon TCP tmtc", - "description": "THE ADDON TMTC tmtc ", - "category": { - "id": "586a6ae13e6b3b0011288ac4", - "name": "Default", - "position": 2 - }, - "provider_name": "Scalingo", - "provider_url": "https://scalingo.com", - "plans": [ - { - "id": "59de15cf3e6b3b001214ea90", - "name": "sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

200 pps
\n2000 Packet burst

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-sandbox" - }, - { - "id": "59f8750e3e6b3b0010859de9", - "name": "1k", - "display_name": "1k pps", - "price": 10.0, - "description": "

1 000 pps
\n10 000 packets burst

\n", - "position": 2, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-1k" - }, - { - "id": "59f875343e6b3b0010859deb", - "name": "10k", - "display_name": "10k pps", - "price": 1000.0, - "description": "

10 000 pps
\n100 000 packets burst

\n", - "position": 3, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-10k" - } - ] - }, - { - "name": "MongoDB", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_MongoDB_20151203113100.svg", - "id": "mongodb", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you MongoDB as a service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate MongoDB databases on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n### Optimal MongoDB Performance\r\n\r\nEnjoy SSD-like **performance** on our SAN-backed and dedicated MongoDB processes on all of our plans.\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Oplog for single node instances\r\n\r\nAccessing the **oplog** is just a click away on our web dashboard!\r\nEnjoy real time features in the applications which require it.\r\nMeteor JS developers, that's for you!\r\n\r\n
\r\n\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5995bf383e6b3b001390a9d2", - "name": "mongo-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "\n", - "position": 0, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-sandbox" - }, - { - "id": "59b2a9cc3e6b3b00124da641", - "name": "mongo-starter-256", - "display_name": "Starter 256M", - "price": 7.2, - "description": "

Mongo Starter 256

\n", - "position": 2, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-starter-256" - }, - { - "id": "5bed7e6fc44b4700116a530d", - "name": "mongo-starter-1024", - "display_name": "Starter 1G", - "price": 14.4, - "description": "

1G

\n", - "position": 4, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-starter-1024" - }, - { - "id": "596e5ded3e6b3b001282f88d", - "name": "mongo-business-512", - "display_name": "Business 512MB", - "price": 10.0, - "description": "\n", - "position": 5, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-business-512" - }, - { - "id": "59b7d8a43e6b3b00124da648", - "name": "mongo-business-1024", - "display_name": "Business 1G", - "price": 20.0, - "description": "\n", - "position": 6, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-mongo-business-1024" - } - ] - }, - { - "name": "Elasticsearch", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Elasticsearch.svg", - "id": "elasticsearch", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you Elasticsearch as a service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate Elasticsearch databases on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n### Optimal Elasticsearch Performance\r\n\r\nEnjoy SSD-like **performance** on our SAN-backed and dedicated Elasticsearch processes on all of our plans.\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5c1bbf5d3e6b3b0012974a97", - "name": "sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

sandbox plan: for hobbyits

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-sandbox" - }, - { - "id": "5c1bbf733e6b3b0012974a98", - "name": "starter-1024", - "display_name": "Starter 1024", - "price": 10.0, - "description": "

Starter 1GB

\n", - "position": 2, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-starter-1024" - }, - { - "id": "5c1bbf923e6b3b0012974a99", - "name": "starter-2048", - "display_name": "Starter 2048", - "price": 10.0, - "description": "

Starter 2GB

\n", - "position": 3, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-starter-2048" - }, - { - "id": "5c1bbfa73e6b3b0012974a9a", - "name": "business-1024", - "display_name": "Business 1024", - "price": 100.0, - "description": "

Toto

\n", - "position": 5, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-business-1024" - }, - { - "id": "5c1bbfbe3e6b3b0012974a9b", - "name": "business-2048", - "display_name": "Business 2048", - "price": 250.0, - "description": "

TotoMolo

\n", - "position": 6, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-business-2048" - }, - { - "id": "5c34f89290da2a001233c454", - "name": "business-4096", - "display_name": "Business 4096M", - "price": 500.0, - "description": "

3 nodes 4G

\n", - "position": 10, - "on_demand": true, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-business-4096" - } - ] - }, - { - "name": "Redis", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Redis.svg", - "id": "redis", - "short_description": "", - "description": "
\r\n
\r\n\r\n## Scalingo providing you Redis as a Service!\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n### The Magic of the Cloud\r\n\r\nCreate Redis instances on-demand. This add-on is **elastic**: scale up and down with ease, we bill by the minute. Never think about machines and never install software. We give you a connection string, and you are good to go!\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n### Expert Care and Support\r\n\r\nGet advice from our team of experts.\r\n\r\n
\r\n\r\n
\r\n\r\n### Backups\r\n\r\nYour data are backed up daily with the following conservation rule:\r\n* Everyday of 1 month\r\n* One per week during the 2nd and 3rd months\r\n* One per month during the 4th, 5th and 6th months\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n### High availability\r\n\r\nHigh availability options will be available in the coming weeks.\r\n\r\n
\r\n
", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "5cb093763e6b3b00117a36f0", - "name": "redis-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "\n", - "position": 10, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-sandbox" - }, - { - "id": "5cb093983e6b3b00117a36f2", - "name": "redis-starter-256", - "display_name": "Starter 256M", - "price": 7.2, - "description": "\n", - "position": 20, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-starter-256" - }, - { - "id": "5cb093bc3e6b3b00117a36f4", - "name": "redis-starter-512", - "display_name": "Starter 512M", - "price": 14.4, - "description": "\n", - "position": 20, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-starter-512" - }, - { - "id": "5cb093dd3e6b3b00117a36f6", - "name": "redis-starter-1024", - "display_name": "Starter 1G", - "price": 28.8, - "description": "\n", - "position": 40, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-starter-1024" - }, - { - "id": "5cb093fd3e6b3b00117a36f8", - "name": "redis-business-256", - "display_name": "Business 256M", - "price": 14.4, - "description": "\n", - "position": 50, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-business-256" - }, - { - "id": "5cb0943a3e6b3b00117a36fa", - "name": "redis-business-512", - "display_name": "Business 512M", - "price": 28.8, - "description": "\n", - "position": 70, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-business-512" - }, - { - "id": "5cb094573e6b3b00117a36fc", - "name": "redis-business-1024", - "display_name": "Business 1G", - "price": 57.6, - "description": "\n", - "position": 90, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-redis-business-1024" - } - ] - }, - { - "name": "InfluxDB", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Influx_20160624151600.svg", - "id": "influxdb", - "short_description": "", - "description": "", - "category": { - "id": "54c6819f61646d0001000000", - "name": "Databases", - "position": 1 - }, - "provider_name": "", - "provider_url": "", - "plans": [ - { - "id": "576c1d5e61646d000b010000", - "name": "free", - "display_name": "Free Tier", - "price": 0.0, - "description": "

Free Tier

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-free" - }, - { - "id": "59440c833e6b3b001103ffad", - "name": "4g", - "display_name": "4G Database", - "price": 0.0, - "description": "

4G RAM Database

\n", - "position": 1, - "on_demand": null, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-4g" - } - ] - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/provision-201.json b/samples/regional/addons/provision-201.json deleted file mode 100644 index d47f792..0000000 --- a/samples/regional/addons/provision-201.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "addon": { - "addon_provider_id": "postgresql", - "plan_id": "5d1e03873e6b3b000eefa827" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon": { - "id": "ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "app_id": "5ed10967884fef000f5e4fff", - "resource_id": "some_example_5629", - "addon_provider": { - "id": "postgresql", - "name": "PostgreSQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Postgresql.svg" - }, - "plan": { - "id": "5d1e03873e6b3b000eefa827", - "name": "postgresql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

Pouet

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-sandbox" - }, - "provisioned_at": "2020-05-29T13:08:58.103Z", - "deprovisioned_at": null, - "status": "provisioning", - "message": "Database is being provisioned", - "variables": null - }, - "message": "Database is being provisioned" - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/provision-400.json b/samples/regional/addons/provision-400.json deleted file mode 100644 index 2b1408b..0000000 --- a/samples/regional/addons/provision-400.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "addon": { - "addon_provider_id": "postgresql" - } - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 13:08:57 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "plan_id is required" - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/sso-200.json b/samples/regional/addons/sso-200.json deleted file mode 100644 index 104ed87..0000000 --- a/samples/regional/addons/sso-200.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63/sso", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:09:00 GMT", - "Etag": "W/\"ece1ff1263aad47584f356e20127cf3b\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon": { - "id": "ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "app_id": "5ed10967884fef000f5e4fff", - "resource_id": "some_example_5629", - "addon_provider": { - "id": "postgresql", - "name": "PostgreSQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Postgresql.svg" - }, - "plan": { - "id": "5d1e03873e6b3b000eefa827", - "name": "postgresql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

Pouet

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-sandbox" - }, - "provisioned_at": "2020-05-29T13:08:58.103Z", - "deprovisioned_at": null, - "status": "provisioning", - "sso_url": "http://postgresql.staging.scalingo.io/sso?id=some_example_5629&token=72090f7ea7454d20402c94775c98f71e9f9b5f31×tamp=1590757740" - } - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/sso-404.json b/samples/regional/addons/sso-404.json deleted file mode 100644 index 57a7fa8..0000000 --- a/samples/regional/addons/sso-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/wrong-addon-id/sso", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "addon", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/token-200.json b/samples/regional/addons/token-200.json deleted file mode 100644 index 0e740f0..0000000 --- a/samples/regional/addons/token-200.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63/token", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:09:00 GMT", - "Etag": "W/\"ece1ff1263aad47584f356e20127cf3b\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon": { - "id": "ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "app_id": "5ed10967884fef000f5e4fff", - "resource_id": "some_example_5629", - "addon_provider": { - "id": "postgresql", - "name": "PostgreSQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Postgresql.svg" - }, - "plan": { - "id": "5d1e03873e6b3b000eefa827", - "name": "postgresql-sandbox", - "display_name": "Sandbox", - "price": 0.0, - "description": "

Pouet

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-sandbox" - }, - "provisioned_at": "2020-05-29T13:08:58.103Z", - "deprovisioned_at": null, - "status": "provisioning", - "token": "eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJTY2FsaW5nbyIsImlhdCI6MTU5Mjg0MjQ3OSwidXVpZCI6InVzLTY3NmJiMGMxLTFjYTktNDY4Mi04ZWUxLTI1NzQyMmU5ZWFiNSIsInJuZCI6IjlhZGZlMzNlNDUxNzNmZTBiNjg4ZjQxZTY4OTg1OWQ0IiwiZXhwIjoxNTkyODQ2MDc5LCJhZGRvbl91dWlkIjoiYWQtNTRlYzczMzItYjViOS00MGUyLTg2NWQtYmNkYTg1Yzc2Y2I2In0.-rYijDhFRWcycSFLcCbdQD3tg9rh1MhXE_rTvlOtQt-48BJcPmxH9Wpazzp7tkspYrx8jfIrWrALoujvW33WVw" - } - } - } -} diff --git a/samples/regional/addons/token-404.json b/samples/regional/addons/token-404.json deleted file mode 100644 index 86f82b3..0000000 --- a/samples/regional/addons/token-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/wrong-addon-id/token", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "addon", - "error": "not found" - } - } -} diff --git a/samples/regional/addons/update-200.json b/samples/regional/addons/update-200.json deleted file mode 100644 index 355ed9e..0000000 --- a/samples/regional/addons/update-200.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "addon": { - "plan_id": "5d1e03af3e6b3b000eefa82a" - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:09:01 GMT", - "Etag": "W/\"69a96804e2f24161ce80443e2d140034\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "addon": { - "id": "ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "app_id": "5ed10967884fef000f5e4fff", - "resource_id": "some_example_5629", - "addon_provider": { - "id": "postgresql", - "name": "PostgreSQL", - "logo_url": "//cdn.scalingo.com/addons/Scalingo_Postgresql.svg" - }, - "plan": { - "id": "5d1e03af3e6b3b000eefa82a", - "name": "postgresql-starter-512", - "display_name": "Starter 512M", - "price": 0.0, - "description": "

Biniou

\n", - "position": null, - "on_demand": false, - "disabled": false, - "disabled_alternative_plan_id": null, - "sku": "ovh-st-fr1-postgresql-starter-512" - }, - "provisioned_at": "2020-05-29T13:09:01.093Z", - "deprovisioned_at": null, - "status": "provisioning", - "message": "Database plan is being changed", - "variables": null - }, - "variables": null, - "message": "Database plan is being changed" - } - } -} \ No newline at end of file diff --git a/samples/regional/addons/update-404.json b/samples/regional/addons/update-404.json deleted file mode 100644 index cb8db57..0000000 --- a/samples/regional/addons/update-404.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "path": "/apps/5ed10967884fef000f5e4fff/addons/ad-6733873b-1628-4b8e-8e74-c30f1c3f3b63", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "addon": { - "plan_id": "wrong-plan-id" - } - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:09:00 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "plan", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/_meta.json b/samples/regional/apps/_meta.json deleted file mode 100644 index 2f4bf1c..0000000 --- a/samples/regional/apps/_meta.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "id": "5ed12fa6f112e2000f9f93f7", - "not_found_id": "wrong-id", - "create": { - "valid": { - "name": "some-example-app" - }, - "invalid": { - "name": "wrong---" - } - }, - "update": { - "valid": { - "force_https": true - }, - "invalid": { - "stack_id": "stack-not-found" - } - }, - "transfer": { - "valid": { - "current_name": "some-example-app", - "app": { - "owner": "collaborator@null.scalingo.com" - } - }, - "invalid": { - "current_name": "some-example-app--", - "app": { - "owner": "not-existent@account.test" - } - } - }, - "rename": { - "invalid": { - "current_name": "some-example-app", - "new_name": "some-example-app--" - }, - "valid": { - "current_name": "some-example-app", - "new_name": "other-example-app" - } - }, - "destroy": { - "invalid": { - "current_name": "some-example-app-wrong" - }, - "valid": { - "current_name": "some-example-app" - } - } -} diff --git a/samples/regional/apps/all.json b/samples/regional/apps/all.json deleted file mode 100644 index 47c2ce6..0000000 --- a/samples/regional/apps/all.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "path": "/apps", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:52:07 GMT", - "Etag": "W/\"d385304f25d7ae2edc7320af9795b8f2\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "apps": [ - { - "id": "5ed0fe5d884fef000f5e4fd1", - "name": "example-running-application", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:example-running-application.git", - "url": "https://example-running-application.staging.scalingo.io", - "created_at": "2020-05-29T12:21:49.666Z", - "updated_at": "2020-05-29T13:28:06.769Z", - "status": "running", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": "2020-05-29T12:21:51.073Z", - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/example-running-application" - }, - "git_source": "https://github.com/Scalingo/sample-node-express", - "flags": { - }, - "limits": { - }, - "last_deployment_id": "5ed0fe5f884fef000f5e4fd6", - "force_https": false, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://example-running-application.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - }, - { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:07.096Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": false, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/create-201-dry-run.json b/samples/regional/apps/create-201-dry-run.json deleted file mode 100644 index afe75b8..0000000 --- a/samples/regional/apps/create-201-dry-run.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "path": "/apps", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json", - "X-Dry-Run": "true" - }, - "json_body": { - "app": { - "name": "some-example-app" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 15:52:07 GMT", - "Etag": "W/\"bab706f1ac796504b56e336533ceee0f\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:07.096Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": false, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - } - } -} diff --git a/samples/regional/apps/create-201.json b/samples/regional/apps/create-201.json deleted file mode 100644 index 9239362..0000000 --- a/samples/regional/apps/create-201.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "path": "/apps", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "app": { - "name": "some-example-app" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 15:52:07 GMT", - "Etag": "W/\"bab706f1ac796504b56e336533ceee0f\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:07.096Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": false, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/create-422.json b/samples/regional/apps/create-422.json deleted file mode 100644 index 06ad581..0000000 --- a/samples/regional/apps/create-422.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "path": "/apps", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "app": { - "name": "wrong---" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 15:52:06 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "name": [ - "can't end with an hyphen", - "can't contain 2 consecutive hyphens" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/destroy-204.json b/samples/regional/apps/destroy-204.json deleted file mode 100644 index b90e24d..0000000 --- a/samples/regional/apps/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7?current_name=some-example-app", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 15:52:15 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/apps/destroy-404.json b/samples/regional/apps/destroy-404.json deleted file mode 100644 index f0a39f9..0000000 --- a/samples/regional/apps/destroy-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/wrong-id?current_name=some-example-app", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 15:52:14 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "app", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/destroy-422.json b/samples/regional/apps/destroy-422.json deleted file mode 100644 index c8ee7bb..0000000 --- a/samples/regional/apps/destroy-422.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7?current_name=some-example-app-wrong", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 15:52:14 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "current_name": [ - "Provided name does not match app name" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/find-200.json b/samples/regional/apps/find-200.json deleted file mode 100644 index 69cf422..0000000 --- a/samples/regional/apps/find-200.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:52:08 GMT", - "Etag": "W/\"bab706f1ac796504b56e336533ceee0f\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:07.096Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": false, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/find-404.json b/samples/regional/apps/find-404.json deleted file mode 100644 index 54354e9..0000000 --- a/samples/regional/apps/find-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/wrong-id", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 15:52:08 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "app", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/logs_url.json b/samples/regional/apps/logs_url.json deleted file mode 100644 index 2f0b1f1..0000000 --- a/samples/regional/apps/logs_url.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7/logs", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:52:07 GMT", - "Etag": "W/\"e99a847f6df0233cbe86ba82002df6eb\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:07.096Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": false, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null, - "logs_url": null - }, - "logs_url": "https://logs-staging.scalingo.com/apps/5ed12fa6f112e2000f9f93f7/logs?token=SenLIpkuzy53YgFYjMetqo56X1qNPHV_NnRoBwLd1-fTHEhKRodBoIP3i1VE4ikH" - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/rename-200.json b/samples/regional/apps/rename-200.json deleted file mode 100644 index c34620c..0000000 --- a/samples/regional/apps/rename-200.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7/rename", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "current_name": "some-example-app", - "new_name": "other-example-app" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:52:13 GMT", - "Etag": "W/\"e0f31f8c5e8e76fbead579c0b27712ec\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "other-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:other-example-app.git", - "url": "https://other-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:13.302Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/other-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": true, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://other-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/rename-404.json b/samples/regional/apps/rename-404.json deleted file mode 100644 index 70a54f6..0000000 --- a/samples/regional/apps/rename-404.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "path": "/apps/wrong-id/rename", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "current_name": "some-example-app", - "new_name": "other-example-app" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 15:52:12 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "app", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/rename-422.json b/samples/regional/apps/rename-422.json deleted file mode 100644 index ec8a8c0..0000000 --- a/samples/regional/apps/rename-422.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7/rename", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "current_name": "some-example-app", - "new_name": "some-example-app--" - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 15:52:12 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "name": [ - "can't end with an hyphen", - "can't contain 2 consecutive hyphens" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/transfer-200.json b/samples/regional/apps/transfer-200.json deleted file mode 100644 index 5683c38..0000000 --- a/samples/regional/apps/transfer-200.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "current_name": "some-example-app", - "app": { - "owner": "collaborator@null.scalingo.com" - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:52:10 GMT", - "Etag": "W/\"81f2cc2ea8d99c2fffca1cb76cd2beba\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:10.617Z", - "status": "new", - "owner": { - "username": "collaborator", - "email": "collaborator@null.scalingo.com", - "id": "us-d5b215fa-0fcc-4d61-ba8f-24e94597490f", - "flags": { - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": true, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/transfer-404.json b/samples/regional/apps/transfer-404.json deleted file mode 100644 index d605341..0000000 --- a/samples/regional/apps/transfer-404.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "path": "/apps/wrong-id", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 15:52:08 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "app", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/transfer-422.json b/samples/regional/apps/transfer-422.json deleted file mode 100644 index 04c08b4..0000000 --- a/samples/regional/apps/transfer-422.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "current_name": "some-example-app--", - "app": { - "owner": "not-existent@account.test" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 15:52:09 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "current_name": [ - "Provided name does not match app name" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/update-200.json b/samples/regional/apps/update-200.json deleted file mode 100644 index 6902d94..0000000 --- a/samples/regional/apps/update-200.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "app": { - "force_https": true - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:52:08 GMT", - "Etag": "W/\"acdb5302ea631a534aa87f1729b0a640\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12fa6f112e2000f9f93f7", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:52:07.096Z", - "updated_at": "2020-05-29T15:52:08.431Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": true, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/apps/update-stack-404.json b/samples/regional/apps/update-stack-404.json deleted file mode 100644 index 02b811e..0000000 --- a/samples/regional/apps/update-stack-404.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "path": "/apps/5ed12fa6f112e2000f9f93f7", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "app": { - "stack_id": "stack-not-found" - } - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 15:52:08 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "stack", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/_meta.json b/samples/regional/autoscalers/_meta.json deleted file mode 100644 index 2987009..0000000 --- a/samples/regional/autoscalers/_meta.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "app_id": "example-running-application", - "id": "sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "not_found_id": "wrong-autoscaler-id", - "create": { - "invalid": { - "container_type": "web", - "min_containers": 3, - "metric": "rpm_per_container" - }, - "valid": { - "container_type": "web", - "min_containers": 3, - "max_containers": 7, - "metric": "rpm_per_container", - "target": 150 - } - }, - "update": { - "invalid": { - "metric": "unknown" - }, - "valid": { - "target": 200 - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/create-201.json b/samples/regional/autoscalers/create-201.json deleted file mode 100644 index 543b4d3..0000000 --- a/samples/regional/autoscalers/create-201.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers", - "method": "post", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "autoscaler": { - "container_type": "web", - "min_containers": 3, - "max_containers": 7, - "metric": "rpm_per_container", - "target": 150 - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:29 GMT", - "Etag": "W/\"90db16192d022937f3968d284f6e4f77\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "autoscaler": { - "created_at": "2020-08-28T11:48:29.963295861Z", - "updated_at": "2020-08-28T11:48:29.963296084Z", - "id": "sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "app_id": "5f48ecb6f112e2000ef34f14", - "container_type": "web", - "alert_id_scale_up": "al-ecf1cff6-c415-4e7b-8a86-e0ef697b2d87", - "alert_id_scale_down": "al-6ef726e8-d69b-44e1-8d67-3acef2a4802d", - "min_containers": 3, - "max_containers": 7, - "last_scale": "0001-01-01T00:00:00Z", - "disabled": false, - "metric": "rpm_per_container", - "target": 150 - } - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/create-500.json b/samples/regional/autoscalers/create-500.json deleted file mode 100644 index 885e7e9..0000000 --- a/samples/regional/autoscalers/create-500.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers", - "method": "post", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "autoscaler": { - "container_type": "web", - "min_containers": 3, - "metric": "rpm_per_container" - } - } - }, - "response": { - "status": 500, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:29 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "Internal error occured, we're on it!" - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/destroy-204.json b/samples/regional/autoscalers/destroy-204.json deleted file mode 100644 index 3699eeb..0000000 --- a/samples/regional/autoscalers/destroy-204.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers/sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "method": "delete", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:32 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/destroy-404.json b/samples/regional/autoscalers/destroy-404.json deleted file mode 100644 index 97fcec1..0000000 --- a/samples/regional/autoscalers/destroy-404.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers/wrong-autoscaler-id", - "method": "delete", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:31 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "autoscaler", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/find-200.json b/samples/regional/autoscalers/find-200.json deleted file mode 100644 index 60b68c7..0000000 --- a/samples/regional/autoscalers/find-200.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers/sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "method": "get", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:30 GMT", - "Etag": "W/\"c870c2f312d82030bde9ae13625f746d\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "autoscaler": { - "created_at": "2020-08-28T11:48:29.963Z", - "updated_at": "2020-08-28T11:48:29.963Z", - "id": "sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "app_id": "5f48ecb6f112e2000ef34f14", - "container_type": "web", - "alert_id_scale_up": "al-ecf1cff6-c415-4e7b-8a86-e0ef697b2d87", - "alert_id_scale_down": "al-6ef726e8-d69b-44e1-8d67-3acef2a4802d", - "min_containers": 3, - "max_containers": 7, - "last_scale": "0001-01-01T00:00:00Z", - "disabled": false, - "metric": "rpm_per_container", - "target": 150 - } - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/find-404.json b/samples/regional/autoscalers/find-404.json deleted file mode 100644 index 686107e..0000000 --- a/samples/regional/autoscalers/find-404.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers/wrong-autoscaler-id", - "method": "get", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:30 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "autoscaler", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/for-200.json b/samples/regional/autoscalers/for-200.json deleted file mode 100644 index 4215876..0000000 --- a/samples/regional/autoscalers/for-200.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers", - "method": "get", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:30 GMT", - "Etag": "W/\"78d382e1680bcf4d9ff9e58c906714ba\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "autoscalers": [ - { - "created_at": "2020-08-28T11:48:29.963Z", - "updated_at": "2020-08-28T11:48:29.963Z", - "id": "sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "app_id": "5f48ecb6f112e2000ef34f14", - "container_type": "web", - "alert_id_scale_up": "al-ecf1cff6-c415-4e7b-8a86-e0ef697b2d87", - "alert_id_scale_down": "al-6ef726e8-d69b-44e1-8d67-3acef2a4802d", - "min_containers": 3, - "max_containers": 7, - "last_scale": "0001-01-01T00:00:00Z", - "disabled": false, - "metric": "rpm_per_container", - "target": 150 - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/update-200.json b/samples/regional/autoscalers/update-200.json deleted file mode 100644 index 6f44aa9..0000000 --- a/samples/regional/autoscalers/update-200.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers/sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "method": "patch", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "autoscaler": { - "target": 200 - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:31 GMT", - "Etag": "W/\"f11b66f818316c26bb369e2e72009d4e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "autoscaler": { - "created_at": "2020-08-28T11:48:29.963Z", - "updated_at": "2020-08-28T11:48:31.56609493Z", - "id": "sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "app_id": "5f48ecb6f112e2000ef34f14", - "container_type": "web", - "alert_id_scale_up": "al-ecf1cff6-c415-4e7b-8a86-e0ef697b2d87", - "alert_id_scale_down": "al-6ef726e8-d69b-44e1-8d67-3acef2a4802d", - "min_containers": 3, - "max_containers": 7, - "last_scale": "0001-01-01T00:00:00Z", - "disabled": false, - "metric": "rpm_per_container", - "target": 200 - } - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/update-404.json b/samples/regional/autoscalers/update-404.json deleted file mode 100644 index 94c07ea..0000000 --- a/samples/regional/autoscalers/update-404.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers/wrong-autoscaler-id", - "method": "patch", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "autoscaler": { - "target": 200 - } - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:30 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "autoscaler", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/autoscalers/update-500.json b/samples/regional/autoscalers/update-500.json deleted file mode 100644 index fe04e07..0000000 --- a/samples/regional/autoscalers/update-500.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "path": "/apps/example-running-application/autoscalers/sc-5418fe67-885d-4e50-8cbe-9a9a2d2d690a", - "method": "patch", - "request": { - "headers": { - "Accept": "application/json", - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "autoscaler": { - "metric": "unknown" - } - } - }, - "response": { - "status": 500, - "headers": { - "Date": "Fri, 28 Aug 2020 11:48:31 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "Internal error occured, we're on it!" - } - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/_meta.json b/samples/regional/collaborators/_meta.json deleted file mode 100644 index ad02b85..0000000 --- a/samples/regional/collaborators/_meta.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "app_id": "5ed12f4c884fef000f5e5047", - "id": "5ed12f4df112e2000f9f93f2", - "not_found_id": "not-found-collaborator", - "invite": { - "valid": { - "email": "collaborator@null.scalingo.com" - }, - "invalid": { - "wrong": "params" - } - }, - "accept": { - "valid": "edd8badd0538816f6f80f3bf40a06bffbb85c443", - "invalid": "some-token" - } -} diff --git a/samples/regional/collaborators/accept-200.json b/samples/regional/collaborators/accept-200.json deleted file mode 100644 index a4802e9..0000000 --- a/samples/regional/collaborators/accept-200.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "path": "/apps/collaboration?token=edd8badd0538816f6f80f3bf40a06bffbb85c443", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:50:39 GMT", - "Etag": "W/\"e754717b790b2c068949cbe88e2da755\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "app": { - "id": "5ed12f4c884fef000f5e5047", - "name": "some-example-app", - "parent_app_name": "", - "git_url": "git@staging.scalingo.com:some-example-app.git", - "url": "https://some-example-app.staging.scalingo.io", - "created_at": "2020-05-29T15:50:37.066Z", - "updated_at": "2020-05-29T15:50:37.066Z", - "status": "new", - "owner": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5", - "flags": { - "": true, - "admin": true - } - }, - "last_deployed_at": null, - "last_deployed_by": null, - "links": { - "deployments_stream": "wss://deployments-staging.scalingo.com/apps/some-example-app" - }, - "git_source": null, - "flags": { - }, - "limits": { - }, - "last_deployment_id": null, - "force_https": false, - "sticky_session": false, - "router_logs": false, - "stack_id": "st-66a577a9-7c41-4fbc-b8ac-07cebd91339b", - "base_url": "https://some-example-app.staging.scalingo.io", - "new_dashboard_url": null, - "new_region": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/accept-400.json b/samples/regional/collaborators/accept-400.json deleted file mode 100644 index eb1fea7..0000000 --- a/samples/regional/collaborators/accept-400.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/collaboration?token=edd8badd0538816f6f80f3bf40a06bffbb85c443", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 15:50:38 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "type": "already-collaborator", - "error": "You're already working on this app, this invitation is for collaborator@null.scalingo.com" - } - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/accept-404.json b/samples/regional/collaborators/accept-404.json deleted file mode 100644 index 7b3be36..0000000 --- a/samples/regional/collaborators/accept-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/collaboration?token=some-token", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 15:50:38 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "collaborator", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/destroy-204.json b/samples/regional/collaborators/destroy-204.json deleted file mode 100644 index c6eb79a..0000000 --- a/samples/regional/collaborators/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/apps/5ed12f4c884fef000f5e5047/collaborators/5ed12f4df112e2000f9f93f2", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 15:50:39 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/destroy-404.json b/samples/regional/collaborators/destroy-404.json deleted file mode 100644 index ddc1b29..0000000 --- a/samples/regional/collaborators/destroy-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed12f4c884fef000f5e5047/collaborators/not-found-collaborator", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 15:50:39 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "collaborator", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/for-200.json b/samples/regional/collaborators/for-200.json deleted file mode 100644 index 4820681..0000000 --- a/samples/regional/collaborators/for-200.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "path": "/apps/5ed12f4c884fef000f5e5047/collaborators", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 15:50:39 GMT", - "Etag": "W/\"ce6999ba62a118218a598eba342018a1\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "collaborators": [ - { - "id": "5ed12f4df112e2000f9f93f2", - "email": "collaborator@null.scalingo.com", - "username": "collaborator", - "status": "accepted", - "invitation_link": "https://my.st-sc.fr/apps/collaboration?token=", - "app_id": "5ed12f4c884fef000f5e5047", - "user_id": "us-d5b215fa-0fcc-4d61-ba8f-24e94597490f" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/invite-201.json b/samples/regional/collaborators/invite-201.json deleted file mode 100644 index 0314e9e..0000000 --- a/samples/regional/collaborators/invite-201.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "path": "/apps/5ed12f4c884fef000f5e5047/collaborators", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "collaborator": { - "email": "collaborator@null.scalingo.com" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 15:50:38 GMT", - "Etag": "W/\"a7ee60d68a08a38cb393f44fb622ed3c\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "collaborator": { - "id": "5ed12f4df112e2000f9f93f2", - "email": "collaborator@null.scalingo.com", - "username": "n/a", - "status": "pending", - "invitation_link": "https://my.st-sc.fr/apps/collaboration?token=edd8badd0538816f6f80f3bf40a06bffbb85c443", - "app_id": "5ed12f4c884fef000f5e5047" - } - } - } -} \ No newline at end of file diff --git a/samples/regional/collaborators/invite-422.json b/samples/regional/collaborators/invite-422.json deleted file mode 100644 index 4b30d1d..0000000 --- a/samples/regional/collaborators/invite-422.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "path": "/apps/5ed12f4c884fef000f5e5047/collaborators", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "collaborator": { - "wrong": "params" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 15:50:37 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "email": [ - "can't be blank", - "is invalid" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/containers/_meta.json b/samples/regional/containers/_meta.json deleted file mode 100644 index 3628acd..0000000 --- a/samples/regional/containers/_meta.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "app_id": "example-running-application", - "scale": { - "valid": [ - { - "name": "web", - "amount": 3 - } - ], - "invalid": [ - { - "name": "web", - "amount": 11 - } - ] - }, - "restart": { - "valid": [ - "web" - ], - "invalid": [ - "wrong" - ] - } -} \ No newline at end of file diff --git a/samples/regional/containers/for-200.json b/samples/regional/containers/for-200.json deleted file mode 100644 index 01ac9ce..0000000 --- a/samples/regional/containers/for-200.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "path": "/apps/example-running-application/containers", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:27:44 GMT", - "Etag": "W/\"ccdb0dfa95473494ced5b93f81e8bc0b\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "containers": [ - { - "name": "web", - "command": "", - "amount": 1, - "size": "S", - "app_id": "5ed0fe5d884fef000f5e4fd1" - }, - { - "name": "clock", - "command": "node cron.js", - "amount": 0, - "size": "M", - "app_id": "5ed0fe5d884fef000f5e4fd1" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/containers/restart-202.json b/samples/regional/containers/restart-202.json deleted file mode 100644 index c6b14a2..0000000 --- a/samples/regional/containers/restart-202.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "path": "/apps/example-running-application/restart", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "scope": [ - "web" - ] - } - }, - "response": { - "status": 202, - "headers": { - "Date": "Fri, 29 May 2020 13:27:56 GMT", - "Content-Type": "text/plain; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin", - "Location": "https://api.st-sc.fr/v1/apps/example-running-application/operations/5ed10ddcf112e2000f9f93e4" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/containers/restart-422.json b/samples/regional/containers/restart-422.json deleted file mode 100644 index 21717fd..0000000 --- a/samples/regional/containers/restart-422.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "path": "/apps/example-running-application/restart", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "scope": [ - "wrong" - ] - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 13:27:55 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "scope": [ - "'wrong' → no such process type" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/containers/scale-202.json b/samples/regional/containers/scale-202.json deleted file mode 100644 index d90a46f..0000000 --- a/samples/regional/containers/scale-202.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "path": "/apps/example-running-application/scale", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "containers": [ - { - "name": "web", - "amount": 3 - } - ] - } - }, - "response": { - "status": 202, - "headers": { - "Date": "Fri, 29 May 2020 13:27:45 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin", - "Location": "https://api.st-sc.fr/v1/apps/example-running-application/operations/5ed10dd1f112e2000f9f93e1" - }, - "json_body": { - "containers": [ - { - "name": "web", - "command": "", - "amount": 3, - "size": "S", - "app_id": "5ed0fe5d884fef000f5e4fd1" - }, - { - "name": "clock", - "command": "node cron.js", - "amount": 0, - "size": "M", - "app_id": "5ed0fe5d884fef000f5e4fd1" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/containers/scale-422.json b/samples/regional/containers/scale-422.json deleted file mode 100644 index 1624859..0000000 --- a/samples/regional/containers/scale-422.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "path": "/apps/example-running-application/scale", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "containers": [ - { - "name": "web", - "amount": 11 - } - ] - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 13:27:44 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "container-web-amount": [ - "can't scale over 10 containers, contact us at support@scalingo.com if you need more" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/containers/sizes-guest.json b/samples/regional/containers/sizes-guest.json deleted file mode 100644 index 434e5c5..0000000 --- a/samples/regional/containers/sizes-guest.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "path": "/features/container_sizes", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:27:44 GMT", - "Etag": "W/\"30e33a7afe7a41cc528bfeaeb2af8750\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "container_sizes": [ - { - "id": "2f6fb9e0-a23e-4c7b-b06d-3a00c3ec9d4f", - "human_cpu": "low CPU priority", - "name": "S", - "human_name": "S", - "memory": 268435456, - "ordinal": 2, - "hourly_price": 10, - "thirtydays_price": 720, - "pids_limit": 128, - "swap": null, - "sku": "ovh-st-fr1-app-s" - }, - { - "id": "c8d9eec1-c1fb-4349-8f74-0eee76c1d6dd", - "human_cpu": "standard CPU priority", - "name": "M", - "human_name": "M", - "memory": 536870912, - "ordinal": 3, - "hourly_price": 20, - "thirtydays_price": 1440, - "pids_limit": 256, - "swap": null, - "sku": "ovh-st-fr1-app-m" - }, - { - "id": "8cd5b2c4-952a-41bc-98bb-2e6f23c9cc2f", - "human_cpu": "standard CPU priority", - "name": "L", - "human_name": "L", - "memory": 1073741824, - "ordinal": 4, - "hourly_price": 40, - "thirtydays_price": 2880, - "pids_limit": 512, - "swap": null, - "sku": "ovh-st-fr1-app-l" - }, - { - "id": "528077c6-cea1-4240-85b0-b87108c3b7ca", - "human_cpu": "high CPU priority", - "name": "XL", - "human_name": "XL", - "memory": 2147483648, - "ordinal": 5, - "hourly_price": 80, - "thirtydays_price": 5760, - "pids_limit": 1024, - "swap": null, - "sku": "ovh-st-fr1-app-xl" - }, - { - "id": "85b8676f-f9d3-4a6e-91a3-4132211325d0", - "human_cpu": "high CPU priority", - "name": "2XL", - "human_name": "2XL", - "memory": 4294967296, - "ordinal": 6, - "hourly_price": 160, - "thirtydays_price": 11520, - "pids_limit": 2048, - "swap": null, - "sku": "ovh-st-fr1-app-2xl" - }, - { - "id": "47cc2149-a965-47d8-a4e1-55cb33a18bda", - "human_cpu": "very high CPU priority", - "name": "3XL", - "human_name": "3XL", - "memory": 8589934592, - "ordinal": 7, - "hourly_price": 320, - "thirtydays_price": 23040, - "pids_limit": 4096, - "swap": null, - "sku": "ovh-st-fr1-app-3xl" - }, - { - "id": "526f629a-f532-45a9-a16e-66d65ec20411", - "human_cpu": "very high CPU priority", - "name": "4XL", - "human_name": "4XL", - "memory": 17179869184, - "ordinal": 8, - "hourly_price": 480, - "thirtydays_price": 46080, - "pids_limit": 8182, - "swap": null, - "sku": "ovh-st-fr1-app-4xl" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/containers/sizes-logged.json b/samples/regional/containers/sizes-logged.json deleted file mode 100644 index 279e808..0000000 --- a/samples/regional/containers/sizes-logged.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "path": "/features/container_sizes", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:27:44 GMT", - "Etag": "W/\"30e33a7afe7a41cc528bfeaeb2af8750\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "container_sizes": [ - { - "id": "2f6fb9e0-a23e-4c7b-b06d-3a00c3ec9d4f", - "human_cpu": "low CPU priority", - "name": "S", - "human_name": "S", - "memory": 268435456, - "ordinal": 2, - "hourly_price": 10, - "thirtydays_price": 720, - "pids_limit": 128, - "swap": null, - "sku": "ovh-st-fr1-app-s" - }, - { - "id": "c8d9eec1-c1fb-4349-8f74-0eee76c1d6dd", - "human_cpu": "standard CPU priority", - "name": "M", - "human_name": "M", - "memory": 536870912, - "ordinal": 3, - "hourly_price": 20, - "thirtydays_price": 1440, - "pids_limit": 256, - "swap": null, - "sku": "ovh-st-fr1-app-m" - }, - { - "id": "8cd5b2c4-952a-41bc-98bb-2e6f23c9cc2f", - "human_cpu": "standard CPU priority", - "name": "L", - "human_name": "L", - "memory": 1073741824, - "ordinal": 4, - "hourly_price": 40, - "thirtydays_price": 2880, - "pids_limit": 512, - "swap": null, - "sku": "ovh-st-fr1-app-l" - }, - { - "id": "528077c6-cea1-4240-85b0-b87108c3b7ca", - "human_cpu": "high CPU priority", - "name": "XL", - "human_name": "XL", - "memory": 2147483648, - "ordinal": 5, - "hourly_price": 80, - "thirtydays_price": 5760, - "pids_limit": 1024, - "swap": null, - "sku": "ovh-st-fr1-app-xl" - }, - { - "id": "85b8676f-f9d3-4a6e-91a3-4132211325d0", - "human_cpu": "high CPU priority", - "name": "2XL", - "human_name": "2XL", - "memory": 4294967296, - "ordinal": 6, - "hourly_price": 160, - "thirtydays_price": 11520, - "pids_limit": 2048, - "swap": null, - "sku": "ovh-st-fr1-app-2xl" - }, - { - "id": "47cc2149-a965-47d8-a4e1-55cb33a18bda", - "human_cpu": "very high CPU priority", - "name": "3XL", - "human_name": "3XL", - "memory": 8589934592, - "ordinal": 7, - "hourly_price": 320, - "thirtydays_price": 23040, - "pids_limit": 4096, - "swap": null, - "sku": "ovh-st-fr1-app-3xl" - }, - { - "id": "526f629a-f532-45a9-a16e-66d65ec20411", - "human_cpu": "very high CPU priority", - "name": "4XL", - "human_name": "4XL", - "memory": 17179869184, - "ordinal": 8, - "hourly_price": 480, - "thirtydays_price": 46080, - "pids_limit": 8182, - "swap": null, - "sku": "ovh-st-fr1-app-4xl" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/deployments/_meta.json b/samples/regional/deployments/_meta.json deleted file mode 100644 index 285bbba..0000000 --- a/samples/regional/deployments/_meta.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "app_id": "example-running-application", - "id": "cabf82f2-1cb1-46d4-b09e-bfb6fe09bc18", - "not_found_id": "not-found", - "for": { - "page": 3 - } -} \ No newline at end of file diff --git a/samples/regional/deployments/find-200.json b/samples/regional/deployments/find-200.json deleted file mode 100644 index 4f57192..0000000 --- a/samples/regional/deployments/find-200.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "path": "/apps/example-running-application/deployments/cabf82f2-1cb1-46d4-b09e-bfb6fe09bc18", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:27:16 GMT", - "Etag": "W/\"7f48c31c26b53046f991eb782ff2f0d9\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "deployment": { - "id": "cabf82f2-1cb1-46d4-b09e-bfb6fe09bc18", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "created_at": "2020-05-29T12:21:51.275Z", - "finished_at": "2020-05-29T12:23:25.688+00:00", - "status": "success", - "git_ref": "a5dca8ec8f48630c07c56fd8370e4f5535fe0fd8", - "previous_git_ref": null, - "type": "oneclick", - "image": "registry-1-staging.scalingo.com/app-example-running-app:a5dca8ec8f48630-cabf82f2-1cb1-4", - "registry": "registry-1-staging.scalingo.com", - "postdeploy_hook": null, - "duration": 92, - "pusher": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "links": { - "output": "https://api-staging.scalingo.com/v1/apps/5ed0fe5d884fef000f5e4fd1/deployments/cabf82f2-1cb1-46d4-b09e-bfb6fe09bc18/output" - } - } - } - } -} \ No newline at end of file diff --git a/samples/regional/deployments/find-404.json b/samples/regional/deployments/find-404.json deleted file mode 100644 index fd67981..0000000 --- a/samples/regional/deployments/find-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/example-running-application/deployments/not-found", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:27:16 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "deployment", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/deployments/for-with-pages.json b/samples/regional/deployments/for-with-pages.json deleted file mode 100644 index 9c3fbea..0000000 --- a/samples/regional/deployments/for-with-pages.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "path": "/apps/example-running-application/deployments?page=3", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:27:16 GMT", - "Etag": "W/\"914b185f7f1b599c84d1d578b2b39153\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "deployments": [ - {"id": 1} - ], - "meta": { - "pagination": { - "current_page": 3, - "next_page": null, - "previous_page": 2, - "total_pages": 1, - "total_count": 1 - } - } - } - } -} diff --git a/samples/regional/deployments/for-without-pages.json b/samples/regional/deployments/for-without-pages.json deleted file mode 100644 index 8882c69..0000000 --- a/samples/regional/deployments/for-without-pages.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "path": "/apps/example-running-application/deployments", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:27:16 GMT", - "Etag": "W/\"3b3863d52523764d2a5563f0a4f90eb3\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "deployments": [ - { - "id": "cabf82f2-1cb1-46d4-b09e-bfb6fe09bc18", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "created_at": "2020-05-29T12:21:51.275Z", - "finished_at": "2020-05-29T12:23:25.688+00:00", - "status": "success", - "git_ref": "a5dca8ec8f48630c07c56fd8370e4f5535fe0fd8", - "previous_git_ref": null, - "type": "oneclick", - "image": "registry-1-staging.scalingo.com/app-example-running-app:a5dca8ec8f48630-cabf82f2-1cb1-4", - "registry": "registry-1-staging.scalingo.com", - "postdeploy_hook": null, - "duration": 92, - "pusher": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "links": { - "output": "https://api-staging.scalingo.com/v1/apps/5ed0fe5d884fef000f5e4fd1/deployments/cabf82f2-1cb1-46d4-b09e-bfb6fe09bc18/output" - } - } - ], - "meta": { - "pagination": { - "current_page": 1, - "next_page": null, - "previous_page": null, - "total_pages": 1, - "total_count": 1 - } - } - } - } -} \ No newline at end of file diff --git a/samples/regional/deployments/logs-200.json b/samples/regional/deployments/logs-200.json deleted file mode 100644 index 8e0cd4e..0000000 --- a/samples/regional/deployments/logs-200.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "path": "/apps/example-running-application/deployments/cabf82f2-1cb1-46d4-b09e-bfb6fe09bc18/output", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:27:16 GMT", - "Etag": "W/\"3b51fb100eba358988799fd2fbcc51ec\"", - "Content-Type": "text/plain; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": " \u001b[1m<-- Start deployment of example-running-app -->\u001b[0m\n Fetching source code\n=====> Downloading Buildpack: https://github.com/Scalingo/apt-buildpack.git\n=====> Detected Framework: Apt\n-----> Detected Aptfile changes, flushing cache\n-----> Adding custom repositories\n-----> Updating apt caches\n Get:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty InRelease [15.4 kB]\n Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]\n Get:3 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]\n Get:4 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease [84.6 kB]\n Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]\n Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]\n Err:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty InRelease\n The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1E9377A2BA9EF27F\n Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [931 kB]\n Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [854 kB]\n Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8815 B]\n Get:10 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [59.3 kB]\n Get:11 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]\n Get:12 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]\n Get:13 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]\n Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]\n Get:15 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages [304 kB]\n Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1385 kB]\n Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [73.6 kB]\n Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1228 kB]\n Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [20.1 kB]\n Get:20 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [8158 B]\n Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [8286 B]\n Reading package lists...\nW: GPG error: http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1E9377A2BA9EF27F\nE: The repository 'http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty InRelease' is not signed.\n-----> Fetching .debs for g++-5\n Reading package lists...\n Building dependency tree...\n The following additional packages will be installed:\n cpp-5 gcc-5 gcc-5-base libasan2 libgcc-5-dev libisl15 libmpx0\n libstdc++-5-dev\n Suggested packages:\n gcc-5-locales g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-5-multilib\n libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg\n liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg\n libquadmath0-dbg libstdc++-5-doc\n The following NEW packages will be installed:\n cpp-5 g++-5 gcc-5 gcc-5-base libasan2 libgcc-5-dev libisl15 libmpx0\n libstdc++-5-dev\n 0 upgraded, 9 newly installed, 0 to remove and 130 not upgraded.\n Need to get 29.1 MB of archives.\n After this operation, 100 MB of additional disk space will be used.\n Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 gcc-5-base amd64 5.5.0-12ubuntu1 [17.1 kB]\n Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libisl15 amd64 0.18-4 [548 kB]\n Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 cpp-5 amd64 5.5.0-12ubuntu1 [7785 kB]\n Get:4 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libasan2 amd64 5.5.0-12ubuntu1 [264 kB]\n Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libmpx0 amd64 5.5.0-12ubuntu1 [9888 B]\n Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libgcc-5-dev amd64 5.5.0-12ubuntu1 [2224 kB]\n Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 gcc-5 amd64 5.5.0-12ubuntu1 [8357 kB]\n Get:8 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libstdc++-5-dev amd64 5.5.0-12ubuntu1 [1415 kB]\n Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 g++-5 amd64 5.5.0-12ubuntu1 [8450 kB]\n Fetched 29.1 MB in 1s (26.5 MB/s)\n Download complete and in download only mode\nW: --force-yes is deprecated, use one of the options starting with --allow instead.\n-----> Installing cpp-5_5.5.0-12ubuntu1_amd64.deb\n-----> Installing g++-5_5.5.0-12ubuntu1_amd64.deb\n-----> Installing gcc-5-base_5.5.0-12ubuntu1_amd64.deb\n-----> Installing gcc-5_5.5.0-12ubuntu1_amd64.deb\n-----> Installing libasan2_5.5.0-12ubuntu1_amd64.deb\n-----> Installing libgcc-5-dev_5.5.0-12ubuntu1_amd64.deb\n-----> Installing libisl15_0.18-4_amd64.deb\n-----> Installing libmpx0_5.5.0-12ubuntu1_amd64.deb\n-----> Installing libstdc++-5-dev_5.5.0-12ubuntu1_amd64.deb\n-----> Writing profile script\n-----> Rewrite package-config files\n=====> Downloading Buildpack: https://github.com/Scalingo/nodejs-buildpack.git\n=====> Detected Framework: Node.js\n \n-----> Creating runtime environment\n \n NPM_CONFIG_LOGLEVEL=error\n NODE_ENV=production\n NODE_MODULES_CACHE=true\n NODE_VERBOSE=false\n NODE_EXTRA_CA_CERTS=/usr/share/ca-certificates/Scalingo/scalingo-database.pem\n \n-----> Installing binaries\n engines.node (package.json): 8.9.x\n engines.npm (package.json): unspecified (use default)\n \n Resolving node version 8.9.x...\n Downloading and installing node 8.9.4...\n Using default npm version: 5.6.0\n \n-----> Installing dependencies\n Installing node modules (package.json + package-lock)\n added 99 packages in 3.831s\n \n-----> Build\n \n-----> Caching build\n - node_modules\n \n-----> Pruning devDependencies\n Skipping because npm 5.6.0 sometimes fails when running 'npm prune' due to a known issue\n https://github.com/npm/npm/issues/19356\n \n You can silence this warning by updating to at least npm 5.7.1 in your package.json\n https://doc.scalingo.com/languages/nodejs/start#specifying-a-nodejs-version\n \n-----> Build succeeded!\nUsing release configuration from last framework (Node.js).\n-----> Procfile declares types -> clock, postdeploy\n\u001b[0;36m Build complete, shipping your container...\u001b[0m\n\u001b[0;36m Waiting for your application to boot... \u001b[0m\n\u001b[0;36m Postdeploy hook detected, starting 'ls -la /'\u001b[0m\n2020-05-29 14:23:20.938411390 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 May 29 12:23 .\r\n2020-05-29 14:23:20.938217012 +0200 CEST [postdeploy-2231] total 92\r\n2020-05-29 14:23:20.938699447 +0200 CEST [postdeploy-2231] -rwxr-xr-x 1 root root 0 May 29 12:23 .dockerenv\r\n2020-05-29 14:23:20.938556211 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 May 29 12:23 ..\r\n2020-05-29 14:23:20.938969163 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Dec 23 16:33 bin\r\n2020-05-29 14:23:20.939246376 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 appsdeck appsdeck 4096 May 29 12:22 build\r\n2020-05-29 14:23:20.939515640 +0200 CEST [postdeploy-2231] drwxr-xr-x 5 root root 340 May 29 12:23 dev\r\n2020-05-29 14:23:20.939644556 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 May 29 12:23 etc\r\n2020-05-29 14:23:20.939917192 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Dec 23 16:35 lib\r\n2020-05-29 14:23:20.940193619 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 2 12:43 lib64\r\n2020-05-29 14:23:20.940333958 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 2 12:43 media\r\n2020-05-29 14:23:20.940464823 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 2 12:43 mnt\r\n2020-05-29 14:23:20.940627343 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 2 12:43 opt\r\n2020-05-29 14:23:20.940758545 +0200 CEST [postdeploy-2231] dr-xr-xr-x 1109 root root 0 May 29 12:23 proc\r\n2020-05-29 14:23:20.941173843 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Dec 19 04:21 sbin\r\n2020-05-29 14:23:20.941471711 +0200 CEST [postdeploy-2231] -rwxr-xr-x 1 root root 2591 May 29 12:22 start\r\n2020-05-29 14:23:20.941794793 +0200 CEST [postdeploy-2231] dr-xr-xr-x 13 root root 0 Jun 21 2019 sys\r\n2020-05-29 14:23:20.941797466 +0200 CEST [postdeploy-2231] drwxrwxrwt 1 root root 4096 May 29 12:23 tmp\r\n2020-05-29 14:23:20.941799437 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Dec 30 14:27 var\r\n2020-05-29 14:23:21.392354937 +0200 CEST [manager] container [postdeploy-2231] (5ed0feb862291b50b7473aeb) has stopped\r\n\u001b[0;36m Postdeploy hook succeeded, accepting deployment... \u001b[0m\n \u001b[1m<-- https://example-running-app.staging.scalingo.io -->\u001b[0m\n" - } -} \ No newline at end of file diff --git a/samples/regional/deployments/logs-404.json b/samples/regional/deployments/logs-404.json deleted file mode 100644 index bf044f9..0000000 --- a/samples/regional/deployments/logs-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/example-running-application/deployments/not-found/output", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:27:17 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "deployment", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/_meta.json b/samples/regional/domains/_meta.json deleted file mode 100644 index a407170..0000000 --- a/samples/regional/domains/_meta.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "app_id": "5ed10ae7f112e2000f9f93be", - "id": "5ed10ae9884fef000f5e500b", - "not_found_id": "not-found", - "create": { - "valid": { - "name": "somedomain.scalingo.com" - }, - "invalid": { - "wrong": "params" - } - }, - "update": { - "valid": { - "canonical": true - }, - "invalid": { - "tlscert": "something" - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/create-201.json b/samples/regional/domains/create-201.json deleted file mode 100644 index 64d548d..0000000 --- a/samples/regional/domains/create-201.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "domain": { - "name": "somedomain.scalingo.com" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 13:15:21 GMT", - "Etag": "W/\"a9d277ab377e9776938dd86462cf500c\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "domain": { - "id": "5ed10ae9884fef000f5e500b", - "app_id": "5ed10ae7f112e2000f9f93be", - "name": "somedomain.scalingo.com", - "created_at": "2020-05-29T13:15:21.050Z", - "ssl": false, - "letsencrypt": false, - "letsencrypt_status": "new", - "canonical": false, - "acme_dns_fqdn": null, - "acme_dns_value": null, - "acme_dns_error": { - }, - "acme_challenge_error": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/create-422.json b/samples/regional/domains/create-422.json deleted file mode 100644 index 2f7dce4..0000000 --- a/samples/regional/domains/create-422.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "domain": { - "wrong": "params" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 13:15:20 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "name": [ - "can't be blank" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/destroy-204.json b/samples/regional/domains/destroy-204.json deleted file mode 100644 index c10e053..0000000 --- a/samples/regional/domains/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains/5ed10ae9884fef000f5e500b", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 13:15:22 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/domains/destroy-404.json b/samples/regional/domains/destroy-404.json deleted file mode 100644 index 5cdfe9f..0000000 --- a/samples/regional/domains/destroy-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains/not-found", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:15:22 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "domain", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/find-200.json b/samples/regional/domains/find-200.json deleted file mode 100644 index ed765c0..0000000 --- a/samples/regional/domains/find-200.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains/5ed10ae9884fef000f5e500b", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:15:21 GMT", - "Etag": "W/\"a9d277ab377e9776938dd86462cf500c\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "domain": { - "id": "5ed10ae9884fef000f5e500b", - "app_id": "5ed10ae7f112e2000f9f93be", - "name": "somedomain.scalingo.com", - "created_at": "2020-05-29T13:15:21.050Z", - "ssl": false, - "letsencrypt": false, - "letsencrypt_status": "new", - "canonical": false, - "acme_dns_fqdn": null, - "acme_dns_value": null, - "acme_dns_error": { - }, - "acme_challenge_error": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/find-404.json b/samples/regional/domains/find-404.json deleted file mode 100644 index cd1b722..0000000 --- a/samples/regional/domains/find-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains/not-found", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:15:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "domain", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/for-200.json b/samples/regional/domains/for-200.json deleted file mode 100644 index 40a7efc..0000000 --- a/samples/regional/domains/for-200.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:15:21 GMT", - "Etag": "W/\"d9351b8d4b2fd4bb06d54b85205c4c2c\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "domains": [ - { - "id": "5ed10ae9884fef000f5e500b", - "app_id": "5ed10ae7f112e2000f9f93be", - "name": "somedomain.scalingo.com", - "created_at": "2020-05-29T13:15:21.050Z", - "ssl": false, - "letsencrypt": false, - "letsencrypt_status": "new", - "canonical": false, - "acme_dns_fqdn": null, - "acme_dns_value": null, - "acme_dns_error": { - }, - "acme_challenge_error": null - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/update-200.json b/samples/regional/domains/update-200.json deleted file mode 100644 index 0a2ca98..0000000 --- a/samples/regional/domains/update-200.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains/5ed10ae9884fef000f5e500b", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "domain": { - "canonical": true - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:15:22 GMT", - "Etag": "W/\"3d39af249fb24d3b3ab0846119206794\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "domain": { - "id": "5ed10ae9884fef000f5e500b", - "app_id": "5ed10ae7f112e2000f9f93be", - "name": "somedomain.scalingo.com", - "created_at": "2020-05-29T13:15:21.050Z", - "ssl": false, - "letsencrypt": false, - "letsencrypt_status": "new", - "canonical": true, - "acme_dns_fqdn": null, - "acme_dns_value": null, - "acme_dns_error": { - }, - "acme_challenge_error": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/update-404.json b/samples/regional/domains/update-404.json deleted file mode 100644 index 89b7e0b..0000000 --- a/samples/regional/domains/update-404.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains/not-found", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "domain": { - "canonical": true - } - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:15:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "domain", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/domains/update-422.json b/samples/regional/domains/update-422.json deleted file mode 100644 index bdfbc48..0000000 --- a/samples/regional/domains/update-422.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "path": "/apps/5ed10ae7f112e2000f9f93be/domains/5ed10ae9884fef000f5e500b", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "domain": { - "tlscert": "something" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 13:15:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "tlskey": [ - "can't be blank" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/environment/_meta.json b/samples/regional/environment/_meta.json deleted file mode 100644 index d412e63..0000000 --- a/samples/regional/environment/_meta.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "app_id": "5ed10d73884fef000f5e5024", - "id": "5ed10d74f112e2000f9f93d8", - "not_found_id": "not-found", - "create": { - "valid": { - "name": "name", - "value": "value" - }, - "invalid": { - "wrong": "params" - } - }, - "update": { - "valid": { - "value": "newvalue" - }, - "bulk": [ - { - "name": "name1", - "value": "value1" - }, - { - "name": "name2", - "value": "value2" - }, - { - "name": "name3", - "value": "value3" - }, - { - "name": "name4", - "value": "value4" - } - ] - }, - "destroy": { - "bulk": [ - "5ed10d75f112e2000f9f93db", - "5ed10d75f112e2000f9f93dc", - "5ed10d75f112e2000f9f93dd", - "5ed10d75f112e2000f9f93de" - ] - } -} diff --git a/samples/regional/environment/bulk-destroy-204.json b/samples/regional/environment/bulk-destroy-204.json deleted file mode 100644 index fd99e34..0000000 --- a/samples/regional/environment/bulk-destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables?variable_ids%5B%5D=5ed10d75f112e2000f9f93db&variable_ids%5B%5D=5ed10d75f112e2000f9f93dc&variable_ids%5B%5D=5ed10d75f112e2000f9f93dd&variable_ids%5B%5D=5ed10d75f112e2000f9f93de", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 13:26:14 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/environment/bulk-update-200.json b/samples/regional/environment/bulk-update-200.json deleted file mode 100644 index 32117f9..0000000 --- a/samples/regional/environment/bulk-update-200.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables", - "method": "put", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "variables": [ - { - "name": "name1", - "value": "value1" - }, - { - "name": "name2", - "value": "value2" - }, - { - "name": "name3", - "value": "value3" - }, - { - "name": "name4", - "value": "value4" - } - ] - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:26:13 GMT", - "Etag": "W/\"cea41814b1b2bcc5197f343267cc861c\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "variables": [ - { - "id": "5ed10d75f112e2000f9f93db", - "app_id": "5ed10d73884fef000f5e5024", - "name": "name1", - "value": "value1" - }, - { - "id": "5ed10d75f112e2000f9f93dc", - "app_id": "5ed10d73884fef000f5e5024", - "name": "name2", - "value": "value2" - }, - { - "id": "5ed10d75f112e2000f9f93dd", - "app_id": "5ed10d73884fef000f5e5024", - "name": "name3", - "value": "value3" - }, - { - "id": "5ed10d75f112e2000f9f93de", - "app_id": "5ed10d73884fef000f5e5024", - "name": "name4", - "value": "value4" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/environment/create-201.json b/samples/regional/environment/create-201.json deleted file mode 100644 index 38bd644..0000000 --- a/samples/regional/environment/create-201.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "variable": { - "name": "name", - "value": "value" - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 13:26:12 GMT", - "Etag": "W/\"0126382be6765be682e7fc3648ef1983\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "variable": { - "id": "5ed10d74f112e2000f9f93d8", - "app_id": "5ed10d73884fef000f5e5024", - "name": "name", - "value": "value" - } - } - } -} \ No newline at end of file diff --git a/samples/regional/environment/create-422.json b/samples/regional/environment/create-422.json deleted file mode 100644 index a678823..0000000 --- a/samples/regional/environment/create-422.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "variable": { - "wrong": "params" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 13:26:12 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "name": [ - "can't be blank", - "must start with a letter" - ], - "value": [ - "can't be blank" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/environment/destroy-204.json b/samples/regional/environment/destroy-204.json deleted file mode 100644 index 2824483..0000000 --- a/samples/regional/environment/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables/5ed10d74f112e2000f9f93d8", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 13:26:14 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/environment/destroy-404.json b/samples/regional/environment/destroy-404.json deleted file mode 100644 index 90ebe58..0000000 --- a/samples/regional/environment/destroy-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables/not-found", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:26:14 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "variable", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/environment/for-200.json b/samples/regional/environment/for-200.json deleted file mode 100644 index fbbcaa4..0000000 --- a/samples/regional/environment/for-200.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:26:13 GMT", - "Etag": "W/\"223261413be0a0593975b88dd00bdb9d\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "variables": [ - { - "id": "5ed10d74f112e2000f9f93d8", - "app_id": "5ed10d73884fef000f5e5024", - "name": "name", - "value": "value" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/environment/update-200.json b/samples/regional/environment/update-200.json deleted file mode 100644 index 30e5455..0000000 --- a/samples/regional/environment/update-200.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables/5ed10d74f112e2000f9f93d8", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "variable": { - "value": "newvalue" - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:26:13 GMT", - "Etag": "W/\"c16a9b36b03af0a062a0694d3f382871\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "variable": { - "id": "5ed10d74f112e2000f9f93d8", - "app_id": "5ed10d73884fef000f5e5024", - "name": "name", - "value": "newvalue" - } - } - } -} \ No newline at end of file diff --git a/samples/regional/environment/update-404.json b/samples/regional/environment/update-404.json deleted file mode 100644 index e91247c..0000000 --- a/samples/regional/environment/update-404.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "path": "/apps/5ed10d73884fef000f5e5024/variables/not-found", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "variable": { - "value": "newvalue" - } - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 13:26:13 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "variable", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/events/_meta.json b/samples/regional/events/_meta.json deleted file mode 100644 index 675e662..0000000 --- a/samples/regional/events/_meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "app_id": "example-running-application" -} \ No newline at end of file diff --git a/samples/regional/events/all-200.json b/samples/regional/events/all-200.json deleted file mode 100644 index 8a1967b..0000000 --- a/samples/regional/events/all-200.json +++ /dev/null @@ -1,619 +0,0 @@ -{ - "path": "/events", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:57:47 GMT", - "Etag": "W/\"2563d2e694059cfe01cf05db9b34ff6e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "events": [ - { - "id": "5ed10de6884fef000f5e502a", - "created_at": "2020-05-29T13:28:06.846Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "3:S", - "clock": "0:M" - }, - "containers": { - "web": "1:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed10ddcf112e2000f9f93e3", - "created_at": "2020-05-29T13:27:56.095Z", - "type": "restart", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "scope": [ - "web" - ] - } - }, - { - "id": "5ed10dd1f112e2000f9f93e2", - "created_at": "2020-05-29T13:27:45.574Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "1:S", - "clock": "0:M" - }, - "containers": { - "web": "3:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed10d77884fef000f5e5028", - "created_at": "2020-05-29T13:26:15.590Z", - "type": "delete_app", - "app_id": "5ed10d73884fef000f5e5024", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - } - }, - { - "id": "5ed10d76f112e2000f9f93e0", - "created_at": "2020-05-29T13:26:14.505Z", - "type": "edit_variables", - "app_id": "5ed10d73884fef000f5e5024", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "new_vars": null, - "updated_vars": null, - "deleted_vars": [ - { - "name": "name1", - "value": "value1" - }, - { - "name": "name2", - "value": "value2" - }, - { - "name": "name3", - "value": "value3" - }, - { - "name": "name4", - "value": "value4" - } - ] - } - }, - { - "id": "5ed10d76884fef000f5e5027", - "created_at": "2020-05-29T13:26:14.171Z", - "type": "delete_variable", - "app_id": "5ed10d73884fef000f5e5024", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "newvalue" - } - }, - { - "id": "5ed10d75f112e2000f9f93df", - "created_at": "2020-05-29T13:26:13.813Z", - "type": "edit_variables", - "app_id": "5ed10d73884fef000f5e5024", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "new_vars": [ - { - "name": "name1", - "value": "value1" - }, - { - "name": "name2", - "value": "value2" - }, - { - "name": "name3", - "value": "value3" - }, - { - "name": "name4", - "value": "value4" - } - ], - "updated_vars": [ - - ], - "deleted_vars": null - } - }, - { - "id": "5ed10d75f112e2000f9f93da", - "created_at": "2020-05-29T13:26:13.443Z", - "type": "edit_variable", - "app_id": "5ed10d73884fef000f5e5024", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "addon_name": null, - "name": "name", - "old_value": "value", - "value": "newvalue" - } - }, - { - "id": "5ed10d74f112e2000f9f93d9", - "created_at": "2020-05-29T13:26:12.808Z", - "type": "new_variable", - "app_id": "5ed10d73884fef000f5e5024", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "value" - } - }, - { - "id": "5ed10d74884fef000f5e5025", - "created_at": "2020-05-29T13:26:12.084Z", - "type": "new_app", - "app_id": "5ed10d73884fef000f5e5024", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "git_source": null - } - }, - { - "id": "5ed10d5df112e2000f9f93d7", - "created_at": "2020-05-29T13:25:49.511Z", - "type": "delete_app", - "app_id": "5ed10d59884fef000f5e501e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - } - }, - { - "id": "5ed10d5c884fef000f5e5023", - "created_at": "2020-05-29T13:25:48.497Z", - "type": "edit_variables", - "app_id": "5ed10d59884fef000f5e501e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "new_vars": null, - "updated_vars": null, - "deleted_vars": [ - { - "name": "name1", - "value": "value1" - }, - { - "name": "name2", - "value": "value2" - }, - { - "name": "name3", - "value": "value3" - }, - { - "name": "name4", - "value": "value4" - } - ] - } - }, - { - "id": "5ed10d5c884fef000f5e5022", - "created_at": "2020-05-29T13:25:48.196Z", - "type": "delete_variable", - "app_id": "5ed10d59884fef000f5e501e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "newvalue" - } - }, - { - "id": "5ed10d5bf112e2000f9f93d6", - "created_at": "2020-05-29T13:25:47.807Z", - "type": "edit_variables", - "app_id": "5ed10d59884fef000f5e501e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "new_vars": [ - { - "name": "name1", - "value": "value1" - }, - { - "name": "name2", - "value": "value2" - }, - { - "name": "name3", - "value": "value3" - }, - { - "name": "name4", - "value": "value4" - } - ], - "updated_vars": [ - - ], - "deleted_vars": null - } - }, - { - "id": "5ed10d5b884fef000f5e5021", - "created_at": "2020-05-29T13:25:47.325Z", - "type": "edit_variable", - "app_id": "5ed10d59884fef000f5e501e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "addon_name": null, - "name": "name", - "old_value": "value", - "value": "newvalue" - } - }, - { - "id": "5ed10d5af112e2000f9f93d1", - "created_at": "2020-05-29T13:25:46.699Z", - "type": "new_variable", - "app_id": "5ed10d59884fef000f5e501e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "value" - } - }, - { - "id": "5ed10d59884fef000f5e501f", - "created_at": "2020-05-29T13:25:45.988Z", - "type": "new_app", - "app_id": "5ed10d59884fef000f5e501e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "git_source": null - } - }, - { - "id": "5ed10d56f112e2000f9f93cf", - "created_at": "2020-05-29T13:25:42.148Z", - "type": "delete_app", - "app_id": "5ed10cee884fef000f5e5019", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - } - }, - { - "id": "5ed10d55884fef000f5e501d", - "created_at": "2020-05-29T13:25:41.247Z", - "type": "delete_variable", - "app_id": "5ed10cee884fef000f5e5019", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "newvalue" - } - }, - { - "id": "5ed10cf0f112e2000f9f93ce", - "created_at": "2020-05-29T13:24:00.992Z", - "type": "edit_variables", - "app_id": "5ed10cee884fef000f5e5019", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "new_vars": [ - { - "name": "name1", - "value": "value1" - }, - { - "name": "name2", - "value": "value2" - }, - { - "name": "name3", - "value": "value3" - }, - { - "name": "name4", - "value": "value4" - } - ], - "updated_vars": [ - - ], - "deleted_vars": null - } - }, - { - "id": "5ed10cf0884fef000f5e501c", - "created_at": "2020-05-29T13:24:00.516Z", - "type": "edit_variable", - "app_id": "5ed10cee884fef000f5e5019", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "addon_name": null, - "name": "name", - "old_value": "value", - "value": "newvalue" - } - }, - { - "id": "5ed10ceff112e2000f9f93c9", - "created_at": "2020-05-29T13:23:59.891Z", - "type": "new_variable", - "app_id": "5ed10cee884fef000f5e5019", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "value" - } - }, - { - "id": "5ed10cef884fef000f5e501a", - "created_at": "2020-05-29T13:23:59.150Z", - "type": "new_app", - "app_id": "5ed10cee884fef000f5e5019", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "git_source": null - } - }, - { - "id": "5ed10bd4884fef000f5e5018", - "created_at": "2020-05-29T13:19:16.508Z", - "type": "delete_app", - "app_id": "5ed10bd1884fef000f5e5012", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - } - }, - { - "id": "5ed10bd3f112e2000f9f93c7", - "created_at": "2020-05-29T13:19:15.599Z", - "type": "delete_variable", - "app_id": "5ed10bd1884fef000f5e5012", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "value" - } - }, - { - "id": "5ed10bd3884fef000f5e5017", - "created_at": "2020-05-29T13:19:15.118Z", - "type": "edit_variable", - "app_id": "5ed10bd1884fef000f5e5012", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "addon_name": null, - "name": "name", - "old_value": "value", - "value": "value" - } - }, - { - "id": "5ed10bd2f112e2000f9f93c6", - "created_at": "2020-05-29T13:19:14.576Z", - "type": "edit_variable", - "app_id": "5ed10bd1884fef000f5e5012", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "addon_name": null, - "name": "name", - "old_value": "value", - "value": "value" - } - }, - { - "id": "5ed10bd2884fef000f5e5016", - "created_at": "2020-05-29T13:19:14.178Z", - "type": "new_variable", - "app_id": "5ed10bd1884fef000f5e5012", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "name": "name", - "value": "value" - } - }, - { - "id": "5ed10bd1884fef000f5e5013", - "created_at": "2020-05-29T13:19:13.498Z", - "type": "new_app", - "app_id": "5ed10bd1884fef000f5e5012", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "git_source": null - } - }, - { - "id": "5ed10bb6f112e2000f9f93c5", - "created_at": "2020-05-29T13:18:46.694Z", - "type": "delete_app", - "app_id": "5ed10bb4884fef000f5e500e", - "app_name": "some-example-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - } - } - ], - "meta": { - "pagination": { - "current_page": 1, - "next_page": 2, - "previous_page": null, - "total_pages": 16, - "total_count": 455 - } - } - } - } -} \ No newline at end of file diff --git a/samples/regional/events/categories-guest.json b/samples/regional/events/categories-guest.json deleted file mode 100644 index 5ac15fa..0000000 --- a/samples/regional/events/categories-guest.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "path": "/event_categories", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:57:46 GMT", - "Etag": "W/\"682d29b34798d9860d5d6e157fc58ac7\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "event_categories": [ - { - "id": "595cf85d6bb8f100167429ca", - "name": "app_operations", - "display_name": "App operations", - "position": 1 - }, - { - "id": "595cf85d6bb8f100167429cb", - "name": "addons", - "display_name": "Addons", - "position": 2 - }, - { - "id": "595cf85d6bb8f100167429cc", - "name": "collaborators", - "display_name": "Collaborators", - "position": 3 - }, - { - "id": "595cf85d6bb8f100167429cd", - "name": "domains", - "display_name": "Domains", - "position": 4 - }, - { - "id": "595cf85d6bb8f100167429ce", - "name": "notifiers", - "display_name": "Notifiers", - "position": 5 - }, - { - "id": "595cf85d6bb8f100167429cf", - "name": "variables", - "display_name": "Variables", - "position": 6 - }, - { - "id": "595cf85d6bb8f100167429d0", - "name": "github", - "display_name": "GitHub", - "position": 7 - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/events/categories-logged.json b/samples/regional/events/categories-logged.json deleted file mode 100644 index 8d2ab1c..0000000 --- a/samples/regional/events/categories-logged.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "path": "/event_categories", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:57:46 GMT", - "Etag": "W/\"682d29b34798d9860d5d6e157fc58ac7\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "event_categories": [ - { - "id": "595cf85d6bb8f100167429ca", - "name": "app_operations", - "display_name": "App operations", - "position": 1 - }, - { - "id": "595cf85d6bb8f100167429cb", - "name": "addons", - "display_name": "Addons", - "position": 2 - }, - { - "id": "595cf85d6bb8f100167429cc", - "name": "collaborators", - "display_name": "Collaborators", - "position": 3 - }, - { - "id": "595cf85d6bb8f100167429cd", - "name": "domains", - "display_name": "Domains", - "position": 4 - }, - { - "id": "595cf85d6bb8f100167429ce", - "name": "notifiers", - "display_name": "Notifiers", - "position": 5 - }, - { - "id": "595cf85d6bb8f100167429cf", - "name": "variables", - "display_name": "Variables", - "position": 6 - }, - { - "id": "595cf85d6bb8f100167429d0", - "name": "github", - "display_name": "GitHub", - "position": 7 - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/events/for-200.json b/samples/regional/events/for-200.json deleted file mode 100644 index 9f9f8f6..0000000 --- a/samples/regional/events/for-200.json +++ /dev/null @@ -1,404 +0,0 @@ -{ - "path": "/apps/example-running-application/events", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:57:47 GMT", - "Etag": "W/\"fa2e15ebf7c8122b84ce6dcad8342571\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "events": [ - { - "id": "5ed10de6884fef000f5e502a", - "created_at": "2020-05-29T13:28:06.846Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "3:S", - "clock": "0:M" - }, - "containers": { - "web": "1:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed10ddcf112e2000f9f93e3", - "created_at": "2020-05-29T13:27:56.095Z", - "type": "restart", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "scope": [ - "web" - ] - } - }, - { - "id": "5ed10dd1f112e2000f9f93e2", - "created_at": "2020-05-29T13:27:45.574Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "1:S", - "clock": "0:M" - }, - "containers": { - "web": "3:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed1020b884fef000f5e4fe1", - "created_at": "2020-05-29T12:37:31.892Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "3:S", - "clock": "0:M" - }, - "containers": { - "web": "1:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed10201884fef000f5e4fde", - "created_at": "2020-05-29T12:37:21.141Z", - "type": "restart", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "scope": [ - "web" - ] - } - }, - { - "id": "5ed101f6884fef000f5e4fdd", - "created_at": "2020-05-29T12:37:10.668Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "1:S", - "clock": "0:M" - }, - "containers": { - "web": "3:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed101eaf112e2000f9f9396", - "created_at": "2020-05-29T12:36:58.335Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "3:S", - "clock": "0:M" - }, - "containers": { - "web": "1:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed10153d59250000fc19d93", - "created_at": "2020-05-29T12:34:27.633Z", - "type": "restart", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "scope": [ - - ] - } - }, - { - "id": "5ed1013cf112e2000f9f9394", - "created_at": "2020-05-29T12:34:04.534Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "1:S", - "clock": "0:M" - }, - "containers": { - "web": "3:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed1010d884fef000f5e4fdb", - "created_at": "2020-05-29T12:33:17.097Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "3:S", - "clock": "0:M" - }, - "containers": { - "web": "1:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed10099d59250000fc19d92", - "created_at": "2020-05-29T12:31:21.888Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "1:S", - "clock": "0:M" - }, - "containers": { - "web": "3:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed1004ad59250000fc19d90", - "created_at": "2020-05-29T12:30:02.275Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "3:S", - "clock": "0:M" - }, - "containers": { - "web": "1:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed10010f112e2000f9f9392", - "created_at": "2020-05-29T12:29:04.394Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "1:S", - "clock": "0:M" - }, - "containers": { - "web": "3:S", - "clock": "0:M" - } - } - }, - { - "id": "5ed0fec0884fef000f5e4fd9", - "created_at": "2020-05-29T12:23:28.360Z", - "type": "rename_app", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-application", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "old_name": "example-running-app", - "new_name": "example-running-application" - } - }, - { - "id": "5ed0fe5f884fef000f5e4fd7", - "created_at": "2020-05-29T12:21:51.334Z", - "type": "deployment", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "deployment_id": "5ed0fe5f884fef000f5e4fd6", - "pusher": "example-username", - "git_ref": "a5dca8ec8f48630c07c56fd8370e4f5535fe0fd8", - "stack": "scalingo-18", - "last_commits": { - "commits": [ - - ], - "remaining": 0 - }, - "git_ref_url": null, - "deployment_type": "deployment", - "status": "success", - "duration": 92, - "finished_at": "2020-05-29T12:23:25.688+00:00" - } - }, - { - "id": "5ed0febe884fef000f5e4fd8", - "created_at": "2020-05-29T12:21:51.275Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - "web": "0:M" - }, - "containers": { - "web": "1:M" - } - } - }, - { - "id": "5ed0fe5e884fef000f5e4fd5", - "created_at": "2020-05-29T12:21:50.356Z", - "type": "scale", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "previous_containers": { - }, - "containers": { - "web": "1:S" - } - } - }, - { - "id": "5ed0fe5d884fef000f5e4fd2", - "created_at": "2020-05-29T12:21:49.552Z", - "type": "new_app", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "app_name": "example-running-app", - "user": { - "username": "example-username", - "email": "example@null.scalingo.com", - "id": "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - }, - "type_data": { - "git_source": "https://github.com/Scalingo/sample-node-express" - } - } - ], - "meta": { - "pagination": { - "current_page": 1, - "next_page": null, - "previous_page": null, - "total_pages": 1, - "total_count": 18 - } - } - } - } -} \ No newline at end of file diff --git a/samples/regional/events/types-guest.json b/samples/regional/events/types-guest.json deleted file mode 100644 index 497614f..0000000 --- a/samples/regional/events/types-guest.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "path": "/event_types", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:57:46 GMT", - "Etag": "W/\"636300ce2f0f2825b0a7e168a1d16a4a\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "event_types": [ - { - "id": "595cf85e6bb8f100167429df", - "name": "addon_db_upgraded", - "display_name": "Addon database upgraded", - "description": "A database addon was upgraded", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85d6bb8f100167429d1", - "name": "app_deployed", - "display_name": "App deployed", - "description": "An app was deployed", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429e0", - "name": "addon_deleted", - "display_name": "Addon deleted", - "description": "An addon was deleted", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429d9", - "name": "app_renamed", - "display_name": "App renamed", - "description": "An app was renamed", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429e2", - "name": "collaborator_accepted", - "display_name": "Collaborator accepted", - "description": "A collaborator invitation was accepted", - "template": null, - "category_id": "595cf85d6bb8f100167429cc" - }, - { - "id": "595cf85e6bb8f100167429e8", - "name": "notifier_edited", - "display_name": "Notifier edited", - "description": "A notifier was edited", - "template": null, - "category_id": "595cf85d6bb8f100167429ce" - }, - { - "id": "595cf85e6bb8f100167429e9", - "name": "notifier_removed", - "display_name": "Notifier removed", - "description": "A notifier was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429ce" - }, - { - "id": "595cf85e6bb8f100167429ec", - "name": "variable_bulk_edited", - "display_name": "Variables bulk edited", - "description": "Some variables was bulk edited", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85e6bb8f100167429ea", - "name": "variable_added", - "display_name": "Variable added", - "description": "A variable was added", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85d6bb8f100167429d2", - "name": "app_restarted", - "display_name": "App restarted", - "description": "An app was restarted", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429de", - "name": "addon_plan_changed", - "display_name": "Addon plan changed", - "description": "An addon plan was changed", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429e6", - "name": "domain_removed", - "display_name": "Domain removed", - "description": "A domain was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429cd" - }, - { - "id": "595cf85e6bb8f100167429ee", - "name": "github_link", - "display_name": "Github link", - "description": "A GitHub repo was linked to an app", - "template": null, - "category_id": "595cf85d6bb8f100167429d0" - }, - { - "id": "595cf85d6bb8f100167429d4", - "name": "app_scaled", - "display_name": "App scaled", - "description": "An app was scaled", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429d7", - "name": "app_deleted", - "display_name": "App deleted", - "description": "A command was ran in an app", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429e5", - "name": "domain_edited", - "display_name": "Domain edited", - "description": "A domain was edited", - "template": null, - "category_id": "595cf85d6bb8f100167429cd" - }, - { - "id": "595cf85e6bb8f100167429e3", - "name": "collaborator_removed", - "display_name": "Collaborator removed", - "description": "A collaborator was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429cc" - }, - { - "id": "595cf85e6bb8f100167429ed", - "name": "variable_removed", - "display_name": "Variable removed", - "description": "A variable was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85e6bb8f100167429da", - "name": "app_alert_triggered", - "display_name": "App alert triggered", - "description": "An app alert was triggered", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429d8", - "name": "app_transferred", - "display_name": "App transferred", - "description": "An app was transferred", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429dc", - "name": "addon_resumed", - "display_name": "Addon resumed", - "description": "An addon was provisioned", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429e4", - "name": "domain_added", - "display_name": "Domain added", - "description": "A domain was added", - "template": null, - "category_id": "595cf85d6bb8f100167429cd" - }, - { - "id": "595cf85e6bb8f100167429e7", - "name": "notifier_added", - "display_name": "Notifier added", - "description": "A notifier was added", - "template": null, - "category_id": "595cf85d6bb8f100167429ce" - }, - { - "id": "595cf85e6bb8f100167429dd", - "name": "addon_suspended", - "display_name": "Addon suspended", - "description": "An addon was suspended", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429eb", - "name": "variable_edited", - "display_name": "Variable edited", - "description": "A variable was edited", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85e6bb8f100167429ef", - "name": "github_unlink", - "display_name": "Github unlink", - "description": "A GitHub repo was unlinked to an app", - "template": null, - "category_id": "595cf85d6bb8f100167429d0" - }, - { - "id": "595cf85d6bb8f100167429d3", - "name": "app_crashed", - "display_name": "App crashed", - "description": "An app was crashed", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85d6bb8f100167429d5", - "name": "app_stopped", - "display_name": "App stopped", - "description": "An app was stopped", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429d6", - "name": "app_command_ran", - "display_name": "App command ran", - "description": "A command was ran in an app", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429db", - "name": "addon_provisioned", - "display_name": "Addon provisioned", - "description": "An addon was provisioned", - "template": "", - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429e1", - "name": "collaborator_invited", - "display_name": "Collaborator invited", - "description": "A collaborator was invited", - "template": null, - "category_id": "595cf85d6bb8f100167429cc" - }, - { - "id": "59c2797bc094990048778884", - "name": "app_crashed_repeated", - "display_name": "App crashed repeated", - "description": "An app was crashed. This event is sent on each crash.", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "5de654023e6b3b000f1dd75d", - "name": "addon_updated", - "display_name": "Addon Updated", - "description": "An addon has been updated", - "template": "", - "category_id": "595cf85d6bb8f100167429cb" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/events/types-logged.json b/samples/regional/events/types-logged.json deleted file mode 100644 index b8eb0d3..0000000 --- a/samples/regional/events/types-logged.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "path": "/event_types", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:57:46 GMT", - "Etag": "W/\"636300ce2f0f2825b0a7e168a1d16a4a\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "event_types": [ - { - "id": "595cf85e6bb8f100167429df", - "name": "addon_db_upgraded", - "display_name": "Addon database upgraded", - "description": "A database addon was upgraded", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85d6bb8f100167429d1", - "name": "app_deployed", - "display_name": "App deployed", - "description": "An app was deployed", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429e0", - "name": "addon_deleted", - "display_name": "Addon deleted", - "description": "An addon was deleted", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429d9", - "name": "app_renamed", - "display_name": "App renamed", - "description": "An app was renamed", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429e2", - "name": "collaborator_accepted", - "display_name": "Collaborator accepted", - "description": "A collaborator invitation was accepted", - "template": null, - "category_id": "595cf85d6bb8f100167429cc" - }, - { - "id": "595cf85e6bb8f100167429e8", - "name": "notifier_edited", - "display_name": "Notifier edited", - "description": "A notifier was edited", - "template": null, - "category_id": "595cf85d6bb8f100167429ce" - }, - { - "id": "595cf85e6bb8f100167429e9", - "name": "notifier_removed", - "display_name": "Notifier removed", - "description": "A notifier was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429ce" - }, - { - "id": "595cf85e6bb8f100167429ec", - "name": "variable_bulk_edited", - "display_name": "Variables bulk edited", - "description": "Some variables was bulk edited", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85e6bb8f100167429ea", - "name": "variable_added", - "display_name": "Variable added", - "description": "A variable was added", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85d6bb8f100167429d2", - "name": "app_restarted", - "display_name": "App restarted", - "description": "An app was restarted", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429de", - "name": "addon_plan_changed", - "display_name": "Addon plan changed", - "description": "An addon plan was changed", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429e6", - "name": "domain_removed", - "display_name": "Domain removed", - "description": "A domain was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429cd" - }, - { - "id": "595cf85e6bb8f100167429ee", - "name": "github_link", - "display_name": "Github link", - "description": "A GitHub repo was linked to an app", - "template": null, - "category_id": "595cf85d6bb8f100167429d0" - }, - { - "id": "595cf85d6bb8f100167429d4", - "name": "app_scaled", - "display_name": "App scaled", - "description": "An app was scaled", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429d7", - "name": "app_deleted", - "display_name": "App deleted", - "description": "A command was ran in an app", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429e5", - "name": "domain_edited", - "display_name": "Domain edited", - "description": "A domain was edited", - "template": null, - "category_id": "595cf85d6bb8f100167429cd" - }, - { - "id": "595cf85e6bb8f100167429e3", - "name": "collaborator_removed", - "display_name": "Collaborator removed", - "description": "A collaborator was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429cc" - }, - { - "id": "595cf85e6bb8f100167429ed", - "name": "variable_removed", - "display_name": "Variable removed", - "description": "A variable was removed", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85e6bb8f100167429da", - "name": "app_alert_triggered", - "display_name": "App alert triggered", - "description": "An app alert was triggered", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429d8", - "name": "app_transferred", - "display_name": "App transferred", - "description": "An app was transferred", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429dc", - "name": "addon_resumed", - "display_name": "Addon resumed", - "description": "An addon was provisioned", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429e4", - "name": "domain_added", - "display_name": "Domain added", - "description": "A domain was added", - "template": null, - "category_id": "595cf85d6bb8f100167429cd" - }, - { - "id": "595cf85e6bb8f100167429e7", - "name": "notifier_added", - "display_name": "Notifier added", - "description": "A notifier was added", - "template": null, - "category_id": "595cf85d6bb8f100167429ce" - }, - { - "id": "595cf85e6bb8f100167429dd", - "name": "addon_suspended", - "display_name": "Addon suspended", - "description": "An addon was suspended", - "template": null, - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429eb", - "name": "variable_edited", - "display_name": "Variable edited", - "description": "A variable was edited", - "template": null, - "category_id": "595cf85d6bb8f100167429cf" - }, - { - "id": "595cf85e6bb8f100167429ef", - "name": "github_unlink", - "display_name": "Github unlink", - "description": "A GitHub repo was unlinked to an app", - "template": null, - "category_id": "595cf85d6bb8f100167429d0" - }, - { - "id": "595cf85d6bb8f100167429d3", - "name": "app_crashed", - "display_name": "App crashed", - "description": "An app was crashed", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85d6bb8f100167429d5", - "name": "app_stopped", - "display_name": "App stopped", - "description": "An app was stopped", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429d6", - "name": "app_command_ran", - "display_name": "App command ran", - "description": "A command was ran in an app", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "595cf85e6bb8f100167429db", - "name": "addon_provisioned", - "display_name": "Addon provisioned", - "description": "An addon was provisioned", - "template": "", - "category_id": "595cf85d6bb8f100167429cb" - }, - { - "id": "595cf85e6bb8f100167429e1", - "name": "collaborator_invited", - "display_name": "Collaborator invited", - "description": "A collaborator was invited", - "template": null, - "category_id": "595cf85d6bb8f100167429cc" - }, - { - "id": "59c2797bc094990048778884", - "name": "app_crashed_repeated", - "display_name": "App crashed repeated", - "description": "An app was crashed. This event is sent on each crash.", - "template": "", - "category_id": "595cf85d6bb8f100167429ca" - }, - { - "id": "5de654023e6b3b000f1dd75d", - "name": "addon_updated", - "display_name": "Addon Updated", - "description": "An addon has been updated", - "template": "", - "category_id": "595cf85d6bb8f100167429cb" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/logs/_meta.json b/samples/regional/logs/_meta.json deleted file mode 100644 index 95b2415..0000000 --- a/samples/regional/logs/_meta.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "app_id": "example-running-application", - "urls": { - "guest": "https://logs-staging.scalingo.com/apps/5ed0fe5d884fef000f5e4fd1/logs?token=72Yh1hk8Q94k2nUkIrNQQ5OX1ZihdQVZZ7A5jKmvNcQBdxMSxd_XAGSS1hLpIZIE", - "logged": "https://logs-staging.scalingo.com/apps/5ed0fe5d884fef000f5e4fd1/logs?token=ZU5KAqQMdulCUukmHKd6iSAWJRdfNGsGL_5FZQkWJVRAmEW4JkR_LZPMQaPvDKLe", - "with_limit": "https://logs-staging.scalingo.com/apps/5ed0fe5d884fef000f5e4fd1/logs?token=ZU5KAqQMdulCUukmHKd6iSAWJRdfNGsGL_5FZQkWJVRAmEW4JkR_LZPMQaPvDKLe" - }, - "options": { - "n": 2 - } -} \ No newline at end of file diff --git a/samples/regional/logs/archives-200.json b/samples/regional/logs/archives-200.json deleted file mode 100644 index 38379cb..0000000 --- a/samples/regional/logs/archives-200.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "path": "/apps/example-running-application/logs_archives", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:17:54 GMT", - "Etag": "W/\"b974eeff6deca4c6e4f587c44a7bb1d3\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "next_cursor": "", - "has_more": false, - "archives": [ - - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/logs/get-guest-200.json b/samples/regional/logs/get-guest-200.json deleted file mode 100644 index b32609b..0000000 --- a/samples/regional/logs/get-guest-200.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "url": "https://logs-staging.scalingo.com/apps/5ed0fe5d884fef000f5e4fd1/logs?token=72Yh1hk8Q94k2nUkIrNQQ5OX1ZihdQVZZ7A5jKmvNcQBdxMSxd_XAGSS1hLpIZIE", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:17:55 GMT", - "Content-Type": "text/plain; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive" - }, - "body": "2020-05-29 14:34:29.830432944 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:34:30.146800736 +0200 CEST [web-1] App listening at http://:::22235\r\n2020-05-29 14:34:30.114801910 +0200 CEST [web-2] App listening at http://:::22236\r\n2020-05-29 14:37:02.182423686 +0200 CEST [manager] container [web-3] (5ed1015362291b50b7473b2d) has stopped\r\n2020-05-29 14:37:02.182359131 +0200 CEST [manager] container [web-2] (5ed1015362291b50b7473b2b) has stopped\r\n2020-05-29 14:37:11.582567073 +0200 CEST [manager] container [web-3] (5ed101f64ffb09636fb1b59e) started\r\n2020-05-29 14:37:11.801070949 +0200 CEST [manager] container [web-2] (5ed101f64ffb09636fb1b596) started\r\n2020-05-29 14:37:12.453252017 +0200 CEST [web-2] \r\n2020-05-29 14:37:12.453250656 +0200 CEST [web-2] > node app.js\r\n2020-05-29 14:37:12.397362504 +0200 CEST [web-3] App listening at http://:::22237\r\n2020-05-29 14:37:22.208218332 +0200 CEST [manager] container [web-2] (5ed1020162291b50b7473b30) started\r\n2020-05-29 14:37:22.373544118 +0200 CEST [manager] container [web-1] (5ed1020162291b50b7473b2e) started\r\n2020-05-29 14:37:22.875638172 +0200 CEST [web-2] \r\n2020-05-29 14:37:22.875631731 +0200 CEST [web-2] > node app.js\r\n2020-05-29 14:37:22.946082357 +0200 CEST [web-3] \r\n2020-05-29 14:37:22.946121840 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:22.946268588 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:37:22.966165590 +0200 CEST [web-1] > node app.js\r\n2020-05-29 14:37:23.153623053 +0200 CEST [web-3] App listening at http://:::22239\r\n2020-05-29 14:37:23.132343975 +0200 CEST [web-2] App listening at http://:::20902\r\n2020-05-29 14:37:23.191278703 +0200 CEST [web-1] App listening at http://:::22238\r\n2020-05-29 14:37:35.718034824 +0200 CEST [manager] container [web-3] (5ed1020162291b50b7473b2f) has stopped\r\n2020-05-29 14:37:38.996777470 +0200 CEST [manager] container [web-3] (5ed101f64ffb09636fb1b59e) has stopped\r\n2020-05-29 14:23:19.769592075 +0200 CEST [web-1] \r\n2020-05-29 14:23:19.769629555 +0200 CEST [web-1] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:23:19.769630814 +0200 CEST [web-1] > node app.js\r\n2020-05-29 14:23:19.769631561 +0200 CEST [web-1] \r\n2020-05-29 14:23:20.030541532 +0200 CEST [web-1] App listening at http://:::22231\r\n2020-05-29 14:23:20.683962851 +0200 CEST [manager] container [postdeploy-2231] (5ed0feb862291b50b7473aeb) started with the command 'ls -la /'\r\n2020-05-29 14:23:20.938828286 +0200 CEST [postdeploy-2231] drwx------ 9 appsdeck appsdeck 4096 May 29 12:22 app\r\n2020-05-29 14:23:20.939099331 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Apr 24 2018 boot\r\n2020-05-29 14:23:20.939374591 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 May 29 12:21 buildpacks\r\n2020-05-29 14:23:20.939790367 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Apr 24 2018 home\r\n2020-05-29 14:23:20.940061581 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 23 16:33 lib32\r\n2020-05-29 14:23:20.940901411 +0200 CEST [postdeploy-2231] drwx------ 1 root root 4096 Dec 23 16:39 root\r\n2020-05-29 14:23:20.941034046 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Dec 23 16:36 run\r\n2020-05-29 14:23:20.941301030 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 2 12:43 srv\r\n2020-05-29 14:23:20.941798612 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Jul 15 2019 usr\r\n2020-05-29 14:29:05.382345128 +0200 CEST [manager] container [web-3] (5ed1001062291b50b7473b03) started\r\n2020-05-29 14:29:05.867036134 +0200 CEST [web-3] \r\n2020-05-29 14:29:05.867082735 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:29:05.867084236 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:29:06.132419001 +0200 CEST [web-3] App listening at http://:::22232\r\n2020-05-29 14:29:15.533394646 +0200 CEST [web-2] > node app.js\r\n2020-05-29 14:31:23.459236485 +0200 CEST [web-3] \r\n2020-05-29 14:31:23.459309119 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:31:23.459310176 +0200 CEST [web-3] \r\n2020-05-29 14:31:23.654190113 +0200 CEST [web-3] App listening at http://:::22233\r\n2020-05-29 14:31:35.221523367 +0200 CEST [web-2] \r\n2020-05-29 14:31:35.460513122 +0200 CEST [web-2] App listening at http://:::20900\r\n2020-05-29 14:33:20.717798383 +0200 CEST [manager] container [web-3] (5ed1009a62291b50b7473b13) has stopped\r\n2020-05-29 14:34:06.116878646 +0200 CEST [web-2] \r\n2020-05-29 14:34:06.517314495 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:34:06.517195107 +0200 CEST [web-3] \r\n2020-05-29 14:34:06.517316602 +0200 CEST [web-3] \r\n2020-05-29 14:34:06.517316023 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:34:29.217821168 +0200 CEST [manager] container [web-2] (5ed1015362291b50b7473b2b) started\r\n2020-05-29 14:34:29.486822137 +0200 CEST [web-3] \r\n2020-05-29 14:34:29.486846047 +0200 CEST [web-3] \r\n2020-05-29 14:34:29.486845424 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:34:29.486844399 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:34:29.820284772 +0200 CEST [web-1] > node app.js\r\n2020-05-29 14:34:29.820285372 +0200 CEST [web-1] \r\n2020-05-29 14:34:29.830411460 +0200 CEST [web-2] \r\n2020-05-29 14:34:29.830434756 +0200 CEST [web-2] \r\n2020-05-29 14:34:29.830434003 +0200 CEST [web-2] > node app.js\r\n2020-05-29 14:34:44.469148598 +0200 CEST [manager] container [web-1] (5ed0fea462291b50b7473ae3) has stopped\r\n2020-05-29 14:34:44.718062110 +0200 CEST [manager] container [web-3] (5ed1013c62291b50b7473b23) has stopped\r\n2020-05-29 14:34:47.983159285 +0200 CEST [manager] container [web-2] (5ed1013c62291b50b7473b1b) has stopped\r\n2020-05-29 14:37:12.189659521 +0200 CEST [web-3] \r\n2020-05-29 14:37:12.189712244 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:12.189717756 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:37:12.189719083 +0200 CEST [web-3] \r\n2020-05-29 14:37:12.453167954 +0200 CEST [web-2] \r\n2020-05-29 14:37:12.453248321 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:12.701646476 +0200 CEST [web-2] App listening at http://:::20901\r\n2020-05-29 14:37:22.468001815 +0200 CEST [manager] container [web-3] (5ed1020162291b50b7473b2f) started\r\n2020-05-29 14:37:22.875553777 +0200 CEST [web-2] \r\n2020-05-29 14:37:22.875619770 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:22.966139147 +0200 CEST [web-1] \r\n2020-05-29 14:37:22.946330031 +0200 CEST [web-3] \r\n2020-05-29 14:37:22.966166173 +0200 CEST [web-1] \r\n2020-05-29 14:37:22.966164597 +0200 CEST [web-1] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:35.485957993 +0200 CEST [manager] container [web-2] (5ed1020162291b50b7473b30) has stopped\r\n2020-05-29 14:37:38.814510200 +0200 CEST [manager] container [web-2] (5ed101f64ffb09636fb1b596) has stopped\r\n2020-05-29 14:37:42.467426015 +0200 CEST [manager] container [web-1] (5ed1015362291b50b7473b2c) has stopped\r\n2020-05-29 15:27:47.158342856 +0200 CEST [web-3] \r\n2020-05-29 15:27:57.268012229 +0200 CEST [manager] container [web-1] (5ed10ddc4ffb09636fb1b5a7) started\r\n2020-05-29 15:27:57.839361762 +0200 CEST [web-3] \r\n2020-05-29 15:27:58.076125874 +0200 CEST [web-3] App listening at http://:::22241\r\n2020-05-29 15:27:58.113231032 +0200 CEST [web-1] \r\n2020-05-29 15:27:58.120318727 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 15:27:58.120321309 +0200 CEST [web-2] > node app.js\r\n2020-05-29 15:27:58.120322417 +0200 CEST [web-2] \r\n2020-05-29 15:27:58.377483006 +0200 CEST [web-2] App listening at http://:::21225\r\n2020-05-29 15:27:58.369680765 +0200 CEST [web-1] App listening at http://:::22242\r\n2020-05-29 15:28:10.718031722 +0200 CEST [manager] container [web-3] (5ed10ddc4ffb09636fb1b5a6) has stopped\r\n2020-05-29 15:28:13.903854732 +0200 CEST [manager] container [web-3] (5ed10dd162291b50b7473b39) has stopped\r\n2020-05-29 15:28:14.101386263 +0200 CEST [manager] container [web-2] (5ed10dd162291b50b7473b31) has stopped\r\n2020-05-29 15:28:17.352021680 +0200 CEST [manager] container [web-1] (5ed1020162291b50b7473b2e) has stopped\r\n" - } -} \ No newline at end of file diff --git a/samples/regional/logs/get-logged-200.json b/samples/regional/logs/get-logged-200.json deleted file mode 100644 index dcb174b..0000000 --- a/samples/regional/logs/get-logged-200.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "url": "https://logs-staging.scalingo.com/apps/5ed0fe5d884fef000f5e4fd1/logs?token=ZU5KAqQMdulCUukmHKd6iSAWJRdfNGsGL_5FZQkWJVRAmEW4JkR_LZPMQaPvDKLe", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:17:58 GMT", - "Content-Type": "text/plain; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive" - }, - "body": "2020-05-29 14:37:35.718034824 +0200 CEST [manager] container [web-3] (5ed1020162291b50b7473b2f) has stopped\r\n2020-05-29 14:37:38.996777470 +0200 CEST [manager] container [web-3] (5ed101f64ffb09636fb1b59e) has stopped\r\n2020-05-29 14:23:19.769592075 +0200 CEST [web-1] \r\n2020-05-29 14:23:19.769629555 +0200 CEST [web-1] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:23:19.769630814 +0200 CEST [web-1] > node app.js\r\n2020-05-29 14:23:19.769631561 +0200 CEST [web-1] \r\n2020-05-29 14:23:20.030541532 +0200 CEST [web-1] App listening at http://:::22231\r\n2020-05-29 14:23:20.683962851 +0200 CEST [manager] container [postdeploy-2231] (5ed0feb862291b50b7473aeb) started with the command 'ls -la /'\r\n2020-05-29 14:23:20.938828286 +0200 CEST [postdeploy-2231] drwx------ 9 appsdeck appsdeck 4096 May 29 12:22 app\r\n2020-05-29 14:23:20.939099331 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Apr 24 2018 boot\r\n2020-05-29 14:23:20.939374591 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 May 29 12:21 buildpacks\r\n2020-05-29 14:23:20.939790367 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Apr 24 2018 home\r\n2020-05-29 14:23:20.940061581 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 23 16:33 lib32\r\n2020-05-29 14:23:20.940901411 +0200 CEST [postdeploy-2231] drwx------ 1 root root 4096 Dec 23 16:39 root\r\n2020-05-29 14:23:20.941034046 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Dec 23 16:36 run\r\n2020-05-29 14:23:20.941301030 +0200 CEST [postdeploy-2231] drwxr-xr-x 2 root root 4096 Dec 2 12:43 srv\r\n2020-05-29 14:23:20.941798612 +0200 CEST [postdeploy-2231] drwxr-xr-x 1 root root 4096 Jul 15 2019 usr\r\n2020-05-29 14:29:05.382345128 +0200 CEST [manager] container [web-3] (5ed1001062291b50b7473b03) started\r\n2020-05-29 14:29:05.867036134 +0200 CEST [web-3] \r\n2020-05-29 14:29:05.867082735 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:29:05.867084236 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:29:06.132419001 +0200 CEST [web-3] App listening at http://:::22232\r\n2020-05-29 14:29:15.533394646 +0200 CEST [web-2] > node app.js\r\n2020-05-29 14:31:23.459236485 +0200 CEST [web-3] \r\n2020-05-29 14:31:23.459309119 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:31:23.459310176 +0200 CEST [web-3] \r\n2020-05-29 14:31:23.654190113 +0200 CEST [web-3] App listening at http://:::22233\r\n2020-05-29 14:31:35.221523367 +0200 CEST [web-2] \r\n2020-05-29 14:31:35.460513122 +0200 CEST [web-2] App listening at http://:::20900\r\n2020-05-29 14:33:20.717798383 +0200 CEST [manager] container [web-3] (5ed1009a62291b50b7473b13) has stopped\r\n2020-05-29 14:34:06.116878646 +0200 CEST [web-2] \r\n2020-05-29 14:34:06.517314495 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:34:06.517195107 +0200 CEST [web-3] \r\n2020-05-29 14:34:06.517316602 +0200 CEST [web-3] \r\n2020-05-29 14:34:06.517316023 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:34:29.217821168 +0200 CEST [manager] container [web-2] (5ed1015362291b50b7473b2b) started\r\n2020-05-29 14:34:29.486822137 +0200 CEST [web-3] \r\n2020-05-29 14:34:29.486846047 +0200 CEST [web-3] \r\n2020-05-29 14:34:29.486845424 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:34:29.486844399 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:34:29.820284772 +0200 CEST [web-1] > node app.js\r\n2020-05-29 14:34:29.820285372 +0200 CEST [web-1] \r\n2020-05-29 14:34:29.830411460 +0200 CEST [web-2] \r\n2020-05-29 14:34:29.830434756 +0200 CEST [web-2] \r\n2020-05-29 14:34:29.830434003 +0200 CEST [web-2] > node app.js\r\n2020-05-29 14:34:44.469148598 +0200 CEST [manager] container [web-1] (5ed0fea462291b50b7473ae3) has stopped\r\n2020-05-29 14:34:44.718062110 +0200 CEST [manager] container [web-3] (5ed1013c62291b50b7473b23) has stopped\r\n2020-05-29 14:34:47.983159285 +0200 CEST [manager] container [web-2] (5ed1013c62291b50b7473b1b) has stopped\r\n2020-05-29 14:37:12.189659521 +0200 CEST [web-3] \r\n2020-05-29 14:37:12.189712244 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:12.189717756 +0200 CEST [web-3] > node app.js\r\n2020-05-29 14:37:12.189719083 +0200 CEST [web-3] \r\n2020-05-29 14:37:12.453167954 +0200 CEST [web-2] \r\n2020-05-29 14:37:12.453248321 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:12.701646476 +0200 CEST [web-2] App listening at http://:::20901\r\n2020-05-29 14:37:22.468001815 +0200 CEST [manager] container [web-3] (5ed1020162291b50b7473b2f) started\r\n2020-05-29 14:37:22.875553777 +0200 CEST [web-2] \r\n2020-05-29 14:37:22.875619770 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:22.966139147 +0200 CEST [web-1] \r\n2020-05-29 14:37:22.946330031 +0200 CEST [web-3] \r\n2020-05-29 14:37:22.966166173 +0200 CEST [web-1] \r\n2020-05-29 14:37:22.966164597 +0200 CEST [web-1] > sample-node-express@0.1.0 start /app\r\n2020-05-29 14:37:35.485957993 +0200 CEST [manager] container [web-2] (5ed1020162291b50b7473b30) has stopped\r\n2020-05-29 14:37:38.814510200 +0200 CEST [manager] container [web-2] (5ed101f64ffb09636fb1b596) has stopped\r\n2020-05-29 14:37:42.467426015 +0200 CEST [manager] container [web-1] (5ed1015362291b50b7473b2c) has stopped\r\n2020-05-29 15:27:47.158342856 +0200 CEST [web-3] \r\n2020-05-29 15:27:57.268012229 +0200 CEST [manager] container [web-1] (5ed10ddc4ffb09636fb1b5a7) started\r\n2020-05-29 15:27:57.839361762 +0200 CEST [web-3] \r\n2020-05-29 15:27:58.076125874 +0200 CEST [web-3] App listening at http://:::22241\r\n2020-05-29 15:27:58.113231032 +0200 CEST [web-1] \r\n2020-05-29 15:27:58.120318727 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 15:27:58.120321309 +0200 CEST [web-2] > node app.js\r\n2020-05-29 15:27:58.120322417 +0200 CEST [web-2] \r\n2020-05-29 15:27:58.377483006 +0200 CEST [web-2] App listening at http://:::21225\r\n2020-05-29 15:27:58.369680765 +0200 CEST [web-1] App listening at http://:::22242\r\n2020-05-29 15:28:10.718031722 +0200 CEST [manager] container [web-3] (5ed10ddc4ffb09636fb1b5a6) has stopped\r\n2020-05-29 15:28:13.903854732 +0200 CEST [manager] container [web-3] (5ed10dd162291b50b7473b39) has stopped\r\n2020-05-29 15:28:14.101386263 +0200 CEST [manager] container [web-2] (5ed10dd162291b50b7473b31) has stopped\r\n2020-05-29 15:28:17.352021680 +0200 CEST [manager] container [web-1] (5ed1020162291b50b7473b2e) has stopped\r\n2020-05-29 15:27:46.480427776 +0200 CEST [manager] container [web-3] (5ed10dd162291b50b7473b39) started\r\n2020-05-29 15:27:46.968180231 +0200 CEST [manager] container [web-2] (5ed10dd162291b50b7473b31) started\r\n2020-05-29 15:27:47.158675094 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 15:27:47.158680167 +0200 CEST [web-3] > node app.js\r\n2020-05-29 15:27:47.158681528 +0200 CEST [web-3] \r\n2020-05-29 15:27:47.382296765 +0200 CEST [web-3] App listening at http://:::22240\r\n2020-05-29 15:27:47.637194562 +0200 CEST [web-2] \r\n2020-05-29 15:27:47.637462073 +0200 CEST [web-2] > sample-node-express@0.1.0 start /app\r\n2020-05-29 15:27:47.637819312 +0200 CEST [web-2] > node app.js\r\n2020-05-29 15:27:47.637851478 +0200 CEST [web-2] \r\n2020-05-29 15:27:47.914611702 +0200 CEST [web-2] App listening at http://:::21224\r\n2020-05-29 15:27:57.101210405 +0200 CEST [manager] container [web-3] (5ed10ddc4ffb09636fb1b5a6) started\r\n2020-05-29 15:27:57.477513592 +0200 CEST [manager] container [web-2] (5ed10ddc4ffb09636fb1b5a8) started\r\n2020-05-29 15:27:57.839066164 +0200 CEST [web-3] \r\n2020-05-29 15:27:57.839102284 +0200 CEST [web-3] > sample-node-express@0.1.0 start /app\r\n2020-05-29 15:27:57.839103431 +0200 CEST [web-3] > node app.js\r\n2020-05-29 15:27:58.112839402 +0200 CEST [web-1] \r\n2020-05-29 15:27:58.113225955 +0200 CEST [web-1] > sample-node-express@0.1.0 start /app\r\n2020-05-29 15:27:58.113229919 +0200 CEST [web-1] > node app.js\r\n2020-05-29 15:27:58.120261663 +0200 CEST [web-2] \r\n2020-05-29 15:28:10.718153340 +0200 CEST [manager] container [web-2] (5ed10ddc4ffb09636fb1b5a8) has stopped\r\n" - } -} \ No newline at end of file diff --git a/samples/regional/logs/get-with-limit-200.json b/samples/regional/logs/get-with-limit-200.json deleted file mode 100644 index b513ccc..0000000 --- a/samples/regional/logs/get-with-limit-200.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "url": "https://logs-staging.scalingo.com/apps/5ed0fe5d884fef000f5e4fd1/logs?n=2&token=ZU5KAqQMdulCUukmHKd6iSAWJRdfNGsGL_5FZQkWJVRAmEW4JkR_LZPMQaPvDKLe", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:18:01 GMT", - "Content-Type": "text/plain; charset=utf-8", - "Connection": "keep-alive" - }, - "body": "2020-05-29 15:27:58.120261663 +0200 CEST [web-2] \r\n2020-05-29 15:28:10.718153340 +0200 CEST [manager] container [web-2] (5ed10ddc4ffb09636fb1b5a8) has stopped\r\n" - } -} \ No newline at end of file diff --git a/samples/regional/metrics/_meta.json b/samples/regional/metrics/_meta.json deleted file mode 100644 index f6fa8d4..0000000 --- a/samples/regional/metrics/_meta.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "app_id": "example-running-application", - "for": { - "valid_cpu": { - "metric": "cpu", - "container_type": "web" - }, - "valid_router": { - "metric": "router" - }, - "invalid": { - "metric": "cpu" - } - } -} \ No newline at end of file diff --git a/samples/regional/metrics/for-invalid-400.json b/samples/regional/metrics/for-invalid-400.json deleted file mode 100644 index d727057..0000000 --- a/samples/regional/metrics/for-invalid-400.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "path": "/apps/example-running-application/stats/cpu", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Sat, 30 May 2020 13:36:29 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "'container' should be defined" - } - } -} \ No newline at end of file diff --git a/samples/regional/metrics/for-valid-cpu-200.json b/samples/regional/metrics/for-valid-cpu-200.json deleted file mode 100644 index f5afd41..0000000 --- a/samples/regional/metrics/for-valid-cpu-200.json +++ /dev/null @@ -1,747 +0,0 @@ -{ - "path": "/apps/example-running-application/stats/cpu/web", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Sat, 30 May 2020 13:36:28 GMT", - "Etag": "W/\"49efc84f0203d9bd6c07a12902a49612\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": [ - { - "time": "2020-05-30T10:36:00Z", - "value": null - }, - { - "time": "2020-05-30T10:37:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:38:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:39:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:40:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:41:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:42:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:43:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:44:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:45:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:46:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:47:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:48:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:49:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:50:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:51:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:52:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:53:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:54:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:55:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:56:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:57:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:58:00Z", - "value": 0 - }, - { - "time": "2020-05-30T10:59:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:00:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:01:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:02:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:03:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:04:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:05:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:06:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:07:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:08:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:09:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:10:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:11:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:12:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:13:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:14:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:15:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:16:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:17:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:18:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:19:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:20:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:21:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:22:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:23:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:24:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:25:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:26:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:27:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:28:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:29:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:30:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:31:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:32:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:33:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:34:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:35:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:36:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:37:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:38:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:39:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:40:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:41:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:42:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:43:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:44:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:45:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:46:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:47:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:48:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:49:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:50:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:51:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:52:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:53:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:54:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:55:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:56:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:57:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:58:00Z", - "value": 0 - }, - { - "time": "2020-05-30T11:59:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:00:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:01:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:02:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:03:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:04:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:05:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:06:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:07:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:08:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:09:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:10:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:11:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:12:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:13:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:14:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:15:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:16:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:17:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:18:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:19:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:20:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:21:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:22:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:23:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:24:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:25:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:26:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:27:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:28:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:29:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:30:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:31:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:32:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:33:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:34:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:35:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:36:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:37:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:38:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:39:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:40:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:41:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:42:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:43:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:44:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:45:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:46:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:47:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:48:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:49:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:50:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:51:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:52:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:53:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:54:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:55:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:56:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:57:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:58:00Z", - "value": 0 - }, - { - "time": "2020-05-30T12:59:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:00:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:01:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:02:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:03:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:04:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:05:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:06:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:07:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:08:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:09:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:10:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:11:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:12:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:13:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:14:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:15:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:16:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:17:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:18:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:19:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:20:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:21:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:22:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:23:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:24:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:25:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:26:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:27:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:28:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:29:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:30:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:31:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:32:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:33:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:34:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:35:00Z", - "value": 0 - }, - { - "time": "2020-05-30T13:36:00Z", - "value": 0 - } - ] - } -} \ No newline at end of file diff --git a/samples/regional/metrics/for-valid-router-404.json b/samples/regional/metrics/for-valid-router-404.json deleted file mode 100644 index c673e47..0000000 --- a/samples/regional/metrics/for-valid-router-404.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "path": "/apps/example-running-application/stats/router", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Sat, 30 May 2020 13:36:29 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "no metrics found" - } - } -} \ No newline at end of file diff --git a/samples/regional/metrics/types-guest.json b/samples/regional/metrics/types-guest.json deleted file mode 100644 index 705a144..0000000 --- a/samples/regional/metrics/types-guest.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "path": "/features/metrics", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Sat, 30 May 2020 13:36:28 GMT", - "Etag": "W/\"bf16ddb7c5cda85ad82370a834ccd47b\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "metrics": [ - { - "id": "cpu", - "label": "CPU", - "suffix": "%", - "type": "global" - }, - { - "id": "memory", - "label": "RAM", - "suffix": "%", - "type": "global" - }, - { - "id": "swap", - "label": "Swap", - "suffix": "%", - "type": "global" - }, - { - "id": "p95_response_time", - "label": "Response Time", - "suffix": "ms", - "type": "router" - }, - { - "id": "5XX", - "label": "5xx Errors", - "suffix": "", - "type": "router" - }, - { - "id": "rpm", - "label": "Requests per Minute", - "suffix": "rpm", - "type": "router" - }, - { - "id": "rpm_per_container", - "label": "RPM per Container", - "suffix": "rpm", - "type": "router" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/metrics/types-logged.json b/samples/regional/metrics/types-logged.json deleted file mode 100644 index 1b951e8..0000000 --- a/samples/regional/metrics/types-logged.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "path": "/features/metrics", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Sat, 30 May 2020 13:36:28 GMT", - "Etag": "W/\"bf16ddb7c5cda85ad82370a834ccd47b\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "metrics": [ - { - "id": "cpu", - "label": "CPU", - "suffix": "%", - "type": "global" - }, - { - "id": "memory", - "label": "RAM", - "suffix": "%", - "type": "global" - }, - { - "id": "swap", - "label": "Swap", - "suffix": "%", - "type": "global" - }, - { - "id": "p95_response_time", - "label": "Response Time", - "suffix": "ms", - "type": "router" - }, - { - "id": "5XX", - "label": "5xx Errors", - "suffix": "", - "type": "router" - }, - { - "id": "rpm", - "label": "Requests per Minute", - "suffix": "rpm", - "type": "router" - }, - { - "id": "rpm_per_container", - "label": "RPM per Container", - "suffix": "rpm", - "type": "router" - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/_meta.json b/samples/regional/notifiers/_meta.json deleted file mode 100644 index b570640..0000000 --- a/samples/regional/notifiers/_meta.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "app_id": "5ed12291f112e2000f9f93ed", - "id": "no-a0354d81-4a89-49c3-9ee3-3a1b41678703", - "not_found_id": "not-found", - "create": { - "valid": { - "platform_id": "59c27732c094990021f325dc", - "name": "my notifier", - "active": false - }, - "not_found": { - "wrong": "params" - }, - "invalid": { - "platform_id": "59c27732c094990021f325dc" - } - }, - "update": { - "valid": { - "name": "some other name" - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/create-201.json b/samples/regional/notifiers/create-201.json deleted file mode 100644 index cbbc3f4..0000000 --- a/samples/regional/notifiers/create-201.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "notifier": { - "platform_id": "59c27732c094990021f325dc", - "name": "my notifier", - "active": false - } - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 14:56:19 GMT", - "Etag": "W/\"c2d3631865cd82208f504c00448a4fa2\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "notifier": { - "id": "no-a0354d81-4a89-49c3-9ee3-3a1b41678703", - "name": "my notifier", - "active": false, - "type": "email", - "platform_id": "59c27732c094990021f325dc", - "created_at": "2020-05-29T14:56:19.782Z", - "updated_at": "2020-05-29T14:56:19.782Z", - "send_all_alerts": false, - "send_all_events": false, - "selected_event_ids": [ - - ], - "app_id": "5ed12291f112e2000f9f93ed", - "app": "some-example-app", - "type_data": { - "user_ids": [ - - ], - "emails": [ - - ] - } - } - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/create-404.json b/samples/regional/notifiers/create-404.json deleted file mode 100644 index 27bc280..0000000 --- a/samples/regional/notifiers/create-404.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "notifier": { - "wrong": "params" - } - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 14:56:19 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "notification_platform", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/create-422.json b/samples/regional/notifiers/create-422.json deleted file mode 100644 index 5e135e5..0000000 --- a/samples/regional/notifiers/create-422.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "notifier": { - "platform_id": "59c27732c094990021f325dc" - } - } - }, - "response": { - "status": 422, - "headers": { - "Date": "Fri, 29 May 2020 14:56:19 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "errors": { - "name": [ - "can't be blank" - ], - "active": [ - "can't be blank" - ] - } - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/destroy-204.json b/samples/regional/notifiers/destroy-204.json deleted file mode 100644 index 5a52db3..0000000 --- a/samples/regional/notifiers/destroy-204.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers/no-a0354d81-4a89-49c3-9ee3-3a1b41678703", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 29 May 2020 14:56:21 GMT", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/destroy-404.json b/samples/regional/notifiers/destroy-404.json deleted file mode 100644 index f4f3a78..0000000 --- a/samples/regional/notifiers/destroy-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers/not-found", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 14:56:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "base", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/find-200.json b/samples/regional/notifiers/find-200.json deleted file mode 100644 index 390df8a..0000000 --- a/samples/regional/notifiers/find-200.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers/no-a0354d81-4a89-49c3-9ee3-3a1b41678703", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:56:20 GMT", - "Etag": "W/\"c2d3631865cd82208f504c00448a4fa2\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "notifier": { - "id": "no-a0354d81-4a89-49c3-9ee3-3a1b41678703", - "name": "my notifier", - "active": false, - "type": "email", - "platform_id": "59c27732c094990021f325dc", - "created_at": "2020-05-29T14:56:19.782Z", - "updated_at": "2020-05-29T14:56:19.782Z", - "send_all_alerts": false, - "send_all_events": false, - "selected_event_ids": [ - - ], - "app_id": "5ed12291f112e2000f9f93ed", - "app": "some-example-app", - "type_data": { - "user_ids": [ - - ], - "emails": [ - - ] - } - } - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/find-404.json b/samples/regional/notifiers/find-404.json deleted file mode 100644 index e0744aa..0000000 --- a/samples/regional/notifiers/find-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers/not-found", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 14:56:20 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "base", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/for-200.json b/samples/regional/notifiers/for-200.json deleted file mode 100644 index f42487d..0000000 --- a/samples/regional/notifiers/for-200.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:56:18 GMT", - "Etag": "W/\"74a421ff4adc8595a52396baa1fbe848\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "notifiers": [ - { - "id": "no-6eb3219e-1318-4d53-9dac-e73244c184ae", - "name": "Default 'some-example-app' notifier", - "active": true, - "type": "email", - "platform_id": "59c27732c094990021f325dc", - "created_at": "2020-05-29T14:56:17.837Z", - "updated_at": "2020-05-29T14:56:17.837Z", - "send_all_alerts": false, - "send_all_events": false, - "selected_event_ids": [ - "59c2797bc094990048778884" - ], - "app_id": "5ed12291f112e2000f9f93ed", - "app": "some-example-app", - "type_data": { - "user_ids": [ - "us-676bb0c1-1ca9-4682-8ee1-257422e9eab5" - ], - "emails": [ - - ] - } - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/platforms-guest.json b/samples/regional/notifiers/platforms-guest.json deleted file mode 100644 index 5d49c87..0000000 --- a/samples/regional/notifiers/platforms-guest.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "path": "/notification_platforms", - "method": "get", - "request": { - "headers": { - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:56:18 GMT", - "Etag": "W/\"d623819a5ecf8ecf3fdbd76058662f21\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "notification_platforms": [ - { - "id": "595cf87681ac730016cd5472", - "name": "rocket_chat", - "display_name": "Rocket.Chat", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/rocket-chat-c56ae9ef87233d878ff18c3c3692084d.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Automatically send chosen events to any RocketChat instance." - }, - { - "id": "595cf87681ac730016cd5471", - "name": "webhook", - "display_name": "Webhook", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/webhook-1f16734c1d9b61dff4460d067ab980ec.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Send HTTP requests to any target when events happen." - }, - { - "id": "595cf87681ac730016cd5470", - "name": "slack", - "display_name": "Slack", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/slack-831fd1b21576dbb3e0037b7211ecfd93.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Send events to your team thanks to Slack Incoming WebHooks." - }, - { - "id": "59c27732c094990021f325dc", - "name": "email", - "display_name": "Email", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/email-ff68b7de90aed03248853abde33136a2.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Send an email on key events to you and your collaborators." - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/platforms-logged.json b/samples/regional/notifiers/platforms-logged.json deleted file mode 100644 index 3a99efa..0000000 --- a/samples/regional/notifiers/platforms-logged.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "path": "/notification_platforms", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:56:18 GMT", - "Etag": "W/\"d623819a5ecf8ecf3fdbd76058662f21\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "notification_platforms": [ - { - "id": "595cf87681ac730016cd5472", - "name": "rocket_chat", - "display_name": "Rocket.Chat", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/rocket-chat-c56ae9ef87233d878ff18c3c3692084d.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Automatically send chosen events to any RocketChat instance." - }, - { - "id": "595cf87681ac730016cd5471", - "name": "webhook", - "display_name": "Webhook", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/webhook-1f16734c1d9b61dff4460d067ab980ec.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Send HTTP requests to any target when events happen." - }, - { - "id": "595cf87681ac730016cd5470", - "name": "slack", - "display_name": "Slack", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/slack-831fd1b21576dbb3e0037b7211ecfd93.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Send events to your team thanks to Slack Incoming WebHooks." - }, - { - "id": "59c27732c094990021f325dc", - "name": "email", - "display_name": "Email", - "logo_url": "https://cdn2.scalingo.com/dashboard-staging/assets/images/notification/email-ff68b7de90aed03248853abde33136a2.svg", - "available_event_ids": [ - "595cf85d6bb8f100167429d1", - "595cf85d6bb8f100167429d2", - "595cf85d6bb8f100167429d3", - "595cf85d6bb8f100167429d4", - "595cf85d6bb8f100167429d5", - "595cf85e6bb8f100167429d6", - "595cf85e6bb8f100167429d7", - "595cf85e6bb8f100167429d8", - "595cf85e6bb8f100167429d9", - "595cf85e6bb8f100167429db", - "595cf85e6bb8f100167429dc", - "595cf85e6bb8f100167429dd", - "595cf85e6bb8f100167429de", - "595cf85e6bb8f100167429df", - "595cf85e6bb8f100167429e0", - "595cf85e6bb8f100167429e1", - "595cf85e6bb8f100167429e2", - "595cf85e6bb8f100167429e3", - "595cf85e6bb8f100167429e4", - "595cf85e6bb8f100167429e5", - "595cf85e6bb8f100167429e6", - "595cf85e6bb8f100167429e7", - "595cf85e6bb8f100167429e8", - "595cf85e6bb8f100167429e9", - "595cf85e6bb8f100167429ea", - "595cf85e6bb8f100167429eb", - "595cf85e6bb8f100167429ec", - "595cf85e6bb8f100167429ed", - "595cf85e6bb8f100167429ee", - "595cf85e6bb8f100167429ef", - "59c2797bc094990048778884" - ], - "description": "Send an email on key events to you and your collaborators." - } - ] - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/test-200.json b/samples/regional/notifiers/test-200.json deleted file mode 100644 index 76680e4..0000000 --- a/samples/regional/notifiers/test-200.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers/no-a0354d81-4a89-49c3-9ee3-3a1b41678703/test", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Length": "0" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:56:20 GMT", - "Content-Type": "text/plain; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "body": "" - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/test-404.json b/samples/regional/notifiers/test-404.json deleted file mode 100644 index 018e9b0..0000000 --- a/samples/regional/notifiers/test-404.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers/not-found/test", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Length": "0" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 14:56:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "base", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/notifiers/update-200.json b/samples/regional/notifiers/update-200.json deleted file mode 100644 index 65cfe2e..0000000 --- a/samples/regional/notifiers/update-200.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "path": "/apps/5ed12291f112e2000f9f93ed/notifiers/no-a0354d81-4a89-49c3-9ee3-3a1b41678703", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "notifier": { - "name": "some other name" - } - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:56:20 GMT", - "Etag": "W/\"8a8ee812375a2edf01d146a4779f0288\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "notifier": { - "id": "no-a0354d81-4a89-49c3-9ee3-3a1b41678703", - "name": "some other name", - "active": false, - "type": "email", - "platform_id": "59c27732c094990021f325dc", - "created_at": "2020-05-29T14:56:19.782Z", - "updated_at": "2020-05-29T14:56:20.654Z", - "send_all_alerts": false, - "send_all_events": false, - "selected_event_ids": [ - - ], - "app_id": "5ed12291f112e2000f9f93ed", - "app": "some-example-app", - "type_data": { - "user_ids": [ - - ], - "emails": [ - - ] - } - } - } - } -} \ No newline at end of file diff --git a/samples/regional/operations/_meta.json b/samples/regional/operations/_meta.json deleted file mode 100644 index 660af27..0000000 --- a/samples/regional/operations/_meta.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "app_id": "example-running-application", - "not_found_id": "not-found", - "id": "5ed11f2c884fef000f5e502e" -} \ No newline at end of file diff --git a/samples/regional/operations/find-200.json b/samples/regional/operations/find-200.json deleted file mode 100644 index 2109566..0000000 --- a/samples/regional/operations/find-200.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "path": "/apps/example-running-application/operations/5ed11f2c884fef000f5e502e", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 14:41:48 GMT", - "Etag": "W/\"da06f8876f68c938c969029e88ef3a3b\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "operation": { - "id": "5ed11f2c884fef000f5e502e", - "app_id": "5ed0fe5d884fef000f5e4fd1", - "created_at": "2020-05-29T14:41:48.360Z", - "status": "running", - "type": "restart", - "message": null - } - } - } -} \ No newline at end of file diff --git a/samples/regional/operations/find-404.json b/samples/regional/operations/find-404.json deleted file mode 100644 index 9ddb535..0000000 --- a/samples/regional/operations/find-404.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/apps/example-running-application/operations/not-found", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 404, - "headers": { - "Date": "Fri, 29 May 2020 14:41:48 GMT", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "no-cache", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "resource": "operation", - "error": "not found" - } - } -} \ No newline at end of file diff --git a/samples/regional/scm_repo_links/_meta.json b/samples/regional/scm_repo_links/_meta.json deleted file mode 100644 index 86d82fd..0000000 --- a/samples/regional/scm_repo_links/_meta.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "app_id": "example-running-application", - "create": { - "valid": { - "source": "https://github.com/Scalingo/sample-go-martini", - "branch": "master", - "auto_deploy_enabled": false, - "deploy_review_apps_enabled": false, - "delete_on_close_enabled": false, - "hours_before_delete_on_close": 0 - } - }, - "update": { - "valid": { - "branch": "prod", - "auto_deploy_enabled": true - } - }, - "deploy": { - "valid": { - "branch": "master" - } - } -} diff --git a/samples/regional/scm_repo_links/create-201.json b/samples/regional/scm_repo_links/create-201.json deleted file mode 100644 index 7244157..0000000 --- a/samples/regional/scm_repo_links/create-201.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "path": "/apps/example-running-application/scm_repo_link", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "scm_repo_link" : { - "source":"https://github.com/Scalingo/sample-go-martini", - "branch":"master", - "auto_deploy_enabled": false, - "deploy_review_apps_enabled":false, - "delete_on_close_enabled":false, - "hours_before_delete_on_close":0 - } - } - }, - "response": { - "status": 201, - "headers": { - "Content-Type": "application/json; charset=utf-8" - }, - "json_body": { - "scm_repo_link": [ - { - "id":"42d04de5-5377-11e8-90e6-0242ac110052", - "app_id": "1d6e59a0-5377-11e8-90e6-0242ac110052", - "auth_integration_uuid": "14235182-54f4-4951-be65-d78020615818", - "linker": { - "id":"us-aa263090-9a23-81f5-8c7c-5fd9a50a8fa8", - "username":"john", - "email":"john.doe@example.com" - }, - "created_at":"2018-05-09T12:53:52.276+02:00", - "updated_at":"2018-06-01T11:45:26.078+02:00", - "owner": "my-username", - "repo": "my-company", - "branch": "master", - "scm_type": "github", - "auto_deploy_enabled":false, - "github_integration_uuid":"42d04de5-5377-11e8-90e6-0242ac110052", - "deploy_review_apps_enabled":false, - "delete_on_close_enabled":false, - "hours_before_delete_on_close":0, - "delete_stale_enabled":false, - "hours_before_delete_stale":0, - "last_auto_deploy_at":"2018-06-01T11:45:26.077+02:00" - } - ] - } - } -} diff --git a/samples/regional/scm_repo_links/destroy-204.json b/samples/regional/scm_repo_links/destroy-204.json deleted file mode 100644 index 51f54b8..0000000 --- a/samples/regional/scm_repo_links/destroy-204.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "path": "/apps/example-running-application/scm_repo_link", - "method": "delete", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 204, - "headers": { - }, - "body": "" - } -} diff --git a/samples/regional/scm_repo_links/manual-deploy-200.json b/samples/regional/scm_repo_links/manual-deploy-200.json deleted file mode 100644 index 5cfbfd1..0000000 --- a/samples/regional/scm_repo_links/manual-deploy-200.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "path": "/apps/example-running-application/scm_repo_link/manual_deploy", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - }, - "json_body": { - "branch": "master" - } - }, - "response": { - "status": 200, - "headers": { - "Content-Type": "application/json; charset=utf-8" - }, - "json_body": { - "deployment": { - "app_id": "54100930736f7563d5030000", - "created_at": "2014-09-10T10:49:42.390+02:00", - "git_ref": "abcdef1234567890", - "status": "build-error", - "id": "123e4567-e89b-12d3-a456-426655440000", - "pusher": { - "email": "user@example.com", - "id": "54100245736f7563d5000000", - "username": "john" - } - } - } - } -} diff --git a/samples/regional/scm_repo_links/show-200.json b/samples/regional/scm_repo_links/show-200.json deleted file mode 100644 index 1742128..0000000 --- a/samples/regional/scm_repo_links/show-200.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "path": "/apps/example-running-application/scm_repo_link", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Content-Type": "application/json; charset=utf-8" - }, - "json_body": { - "scm_repo_link": [ - { - "id":"42d04de5-5377-11e8-90e6-0242ac110052", - "app_id": "1d6e59a0-5377-11e8-90e6-0242ac110052", - "auth_integration_uuid": "14235182-54f4-4951-be65-d78020615818", - "linker": { - "id":"us-aa263090-9a23-81f5-8c7c-5fd9a50a8fa8", - "username":"john", - "email":"john.doe@example.com" - }, - "created_at":"2018-05-09T12:53:52.276+02:00", - "updated_at":"2018-06-01T11:45:26.078+02:00", - "owner": "my-username", - "repo": "my-company", - "branch": "master", - "scm_type": "github", - "auto_deploy_enabled":true, - "github_integration_uuid":"42d04de5-5377-11e8-90e6-0242ac110052", - "deploy_review_apps_enabled":false, - "delete_on_close_enabled":false, - "hours_before_delete_on_close":0, - "delete_stale_enabled":false, - "hours_before_delete_stale":0, - "last_auto_deploy_at":"2018-06-01T11:45:26.077+02:00" - } - ] - } - } -} diff --git a/samples/regional/scm_repo_links/update-200.json b/samples/regional/scm_repo_links/update-200.json deleted file mode 100644 index b5621ab..0000000 --- a/samples/regional/scm_repo_links/update-200.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "path": "/apps/example-running-application/scm_repo_link", - "method": "patch", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token", - "Content-Type": "application/json" - }, - "json_body": { - "scm_repo_link" : { - "branch":"prod", - "auto_deploy_enabled": true - } - } - }, - "response": { - "status": 200, - "headers": { - "Content-Type": "application/json; charset=utf-8" - }, - "json_body": { - "scm_repo_link": [ - { - "id":"42d04de5-5377-11e8-90e6-0242ac110052", - "app_id": "1d6e59a0-5377-11e8-90e6-0242ac110052", - "auth_integration_uuid": "14235182-54f4-4951-be65-d78020615818", - "linker": { - "id":"us-aa263090-9a23-81f5-8c7c-5fd9a50a8fa8", - "username":"john", - "email":"john.doe@example.com" - }, - "created_at":"2018-05-09T12:53:52.276+02:00", - "updated_at":"2018-06-01T11:45:26.078+02:00", - "owner": "my-username", - "repo": "my-company", - "branch": "prod", - "scm_type": "github", - "auto_deploy_enabled":true, - "github_integration_uuid":"42d04de5-5377-11e8-90e6-0242ac110052", - "deploy_review_apps_enabled":false, - "delete_on_close_enabled":false, - "hours_before_delete_on_close":0, - "delete_stale_enabled":false, - "hours_before_delete_stale":0, - "last_auto_deploy_at":"2018-06-01T11:45:26.077+02:00" - } - ] - } - } -} diff --git a/samples/regional_database/backups/_meta.json b/samples/regional_database/backups/_meta.json deleted file mode 100644 index bc70f41..0000000 --- a/samples/regional_database/backups/_meta.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "addon_id": "63bfe3b600deff4f0516cc12", - "id": "5bb95a904ffb096e9a2831b8" -} diff --git a/samples/regional_database/backups/archive-200.json b/samples/regional_database/backups/archive-200.json deleted file mode 100644 index eab2862..0000000 --- a/samples/regional_database/backups/archive-200.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/backups/5bb95a904ffb096e9a2831b8/archive", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "download_url": "https://regional-database.scalingo.test/databases/63bfe3b600deff4f0516cc12/backups/5bb95a904ffb096e9a2831b8/download?token=token1234" - } - } -} diff --git a/samples/regional_database/backups/archive-400.json b/samples/regional_database/backups/archive-400.json deleted file mode 100644 index 64ab78f..0000000 --- a/samples/regional_database/backups/archive-400.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/backups/5bb95a904ffb096e9a2831b8/archive", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "unauthorized" - } - } -} diff --git a/samples/regional_database/backups/create-201.json b/samples/regional_database/backups/create-201.json deleted file mode 100644 index 1b55e75..0000000 --- a/samples/regional_database/backups/create-201.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/backups", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 201, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "database_backup": { - "id": "5b8b36104ffb090be1ac3ce1", - "created_at": "2019-07-18T03:00:00.178+02:00", - "name": "20180902010000_kibana-3938", - "size": 0, - "status": "pending", - "database_id": "597601234ffb097af4f3099b", - "type": "postgresql" - } - } - } -} diff --git a/samples/regional_database/backups/create-400.json b/samples/regional_database/backups/create-400.json deleted file mode 100644 index f4f9aba..0000000 --- a/samples/regional_database/backups/create-400.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/backups", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "unauthorized" - } - } -} diff --git a/samples/regional_database/backups/for-200.json b/samples/regional_database/backups/for-200.json deleted file mode 100644 index 7b114be..0000000 --- a/samples/regional_database/backups/for-200.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/backups", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "database_backups": [ - { - "id": "5bde44904ffb096c714be89c", - "created_at": "2018-11-04T02:00:00.154+01:00", - "name": "20181104010000_kibana-3938", - "size": 0, - "status": "pending", - "database_id": "597601234ffb097af4f3099b", - "type": "postgresql" - }, - { - "id": "5bb95a904ffb096e9a2831b8", - "created_at": "2018-10-07T03:00:00.150+02:00", - "name": "20181007010000_kibana-3938", - "size": 0, - "status": "error", - "database_id": "597601234ffb097af4f3099b", - "type": "postgresql" - }, - { - "id": "5b8b36104ffb090be1ac3ce1", - "created_at": "2018-09-02T03:00:00.178+02:00", - "name": "20180902010000_kibana-3938", - "size": 17484513608, - "status": "done", - "database_id": "597601234ffb097af4f3099b", - "type": "postgresql" - } - ] - } - } -} diff --git a/samples/regional_database/backups/for-400.json b/samples/regional_database/backups/for-400.json deleted file mode 100644 index 31e679e..0000000 --- a/samples/regional_database/backups/for-400.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/backups", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "unauthorized" - } - } -} diff --git a/samples/regional_database/databases/_meta.json b/samples/regional_database/databases/_meta.json deleted file mode 100644 index e6339ab..0000000 --- a/samples/regional_database/databases/_meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "id": "63bfe3b600deff4f0516cc12" -} diff --git a/samples/regional_database/databases/find-200.json b/samples/regional_database/databases/find-200.json deleted file mode 100644 index 5cc228d..0000000 --- a/samples/regional_database/databases/find-200.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 200, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "database": { - "id": "63bfe3b600deff4f0516cc12", - "resource_id": "my-db-123", - "app_name": "my-app", - "created_at": "2019-02-05T15:38:14.343+01:00", - "encryption_at_rest": true, - "features": [ - { - "name": "redis-rdb", - "status": "ACTIVATED" - } - ], - "plan": "free", - "status": "running", - "type_id": "5bf30d1104c87f000161285a", - "type_name": "redis", - "version_id": "5bf30d1104c87f000161285b", - "instances": [], - "readable_version": "3.2.9-1", - "periodic_backups_enabled": true, - "periodic_backups_scheduled_at": [ - 0 - ] - } - } - } -} diff --git a/samples/regional_database/databases/find-400.json b/samples/regional_database/databases/find-400.json deleted file mode 100644 index 8b92faa..0000000 --- a/samples/regional_database/databases/find-400.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12", - "method": "get", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "unauthorized" - } - } -} diff --git a/samples/regional_database/databases/upgrade-202.json b/samples/regional_database/databases/upgrade-202.json deleted file mode 100644 index e84361b..0000000 --- a/samples/regional_database/databases/upgrade-202.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/upgrade", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 202, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin", - "Location": "https://db-api.osc-st-fr1.st-sc.fr/api/operations/63bef2179307d55a9658cd99" - }, - "json_body": { - "message": "Database upgrade to 7.0.5-1 is pending", - "id": "6335961fb07f4c000fe7461c", - "created_at": "2022-09-29T12:57:03.372Z", - "updated_at": "2022-09-29T12:57:03.372Z", - "database_type_id": "5eea3345d6f2bd5a55e2aad0", - "major": 7, - "minor": 0, - "patch": 5, - "build": 1, - "features": [ - "tls" - ], - "release_number": 330, - "allowed_plugins": null, - "warning_message": "" - } - } -} diff --git a/samples/regional_database/databases/upgrade-400.json b/samples/regional_database/databases/upgrade-400.json deleted file mode 100644 index d440c20..0000000 --- a/samples/regional_database/databases/upgrade-400.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "/databases/63bfe3b600deff4f0516cc12/upgrade", - "method": "post", - "request": { - "headers": { - "Authorization": "Bearer the-bearer-token" - } - }, - "response": { - "status": 400, - "headers": { - "Date": "Fri, 29 May 2020 13:08:59 GMT", - "Etag": "W/\"a9504bb2f6f87c65ff68074ae787831e\"", - "Content-Type": "application/json; charset=utf-8", - "Transfer-Encoding": "chunked", - "Connection": "keep-alive", - "Cache-Control": "max-age=0, private, must-revalidate", - "Referrer-Policy": "strict-origin-when-cross-origin" - }, - "json_body": { - "error": "unauthorized" - } - } -} diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e1a4edc..04345ea 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -20,14 +20,5 @@ c.syntax = :expect end - config.include Scalingo::StubHelpers - config.include Scalingo::Common - config.extend Scalingo::DescribedMethod - - config.before(:example) do |example| - if defined?(stub_pattern) - load_meta! - register_stubs!(stub_pattern) - end - end + config.include_context "default endpoint context", type: :endpoint end diff --git a/spec/support/scalingo.rb b/spec/support/scalingo.rb deleted file mode 100644 index 54f7d92..0000000 --- a/spec/support/scalingo.rb +++ /dev/null @@ -1,161 +0,0 @@ -module Scalingo - VALID_ACCESS_TOKEN = "lala" - VALID_BEARER_TOKEN = "the-bearer-token" - - ENDPOINTS = { - auth: "https://auth.scalingo.test", - billing: "https://billing.scalingo.test", - regional: "https://regional.scalingo.test", - regional_database: "https://regional-database.scalingo.test" - } - - class SpecClient < CoreClient - def auth - @auth ||= Auth.new(ENDPOINTS[:auth], scalingo: self) - end - - def billing - @billing ||= Billing.new(ENDPOINTS[:billing], scalingo: self) - end - - def regional - @regional ||= Regional.new(ENDPOINTS[:regional], scalingo: self) - end - end - - module StubHelpers - def project_root - File.expand_path("../..", File.dirname(__FILE__)) - end - - def samples_root - File.join(project_root, "samples") - end - - def load_meta!(api: nil, folder: nil) - guessed_api, guessed_folder = described_class.to_s.underscore.split("/").last(2) - api ||= guessed_api - folder ||= guessed_folder - - path = [samples_root, api, folder, "_meta.json"].compact.join("/") - - if File.exist?(path) - @meta = JSON.parse(File.read(path), symbolize_names: true) - end - end - - def register_stubs!(pattern = "**/*", api: nil, folder: nil) - guessed_api, guessed_folder = described_class.to_s.underscore.split("/").last(2) - api ||= guessed_api - folder ||= guessed_folder - - endpoint = ENDPOINTS.fetch(api.to_sym) - - path = [samples_root, api, folder].compact.join("/") - - Dir["#{path}/#{pattern}.json"].each do |path| - stub_data = JSON.parse(File.read(path), symbolize_names: true) - - url = stub_data[:url] || File.join(endpoint, stub_data[:path]) - method = (stub_data[:method] || :get).to_sym - - request_options = {} - - if stub_data[:request].present? - req = stub_data[:request] - - if req[:headers].present? - request_options[:headers] ||= {} - request_options[:headers].update(req[:headers]) - end - - if req[:json_body].present? - request_options[:headers] ||= {} - request_options[:headers]["Content-Type"] = "application/json" - request_options[:body] = JSON.generate(req[:json_body]) - end - end - - response_options = { - status: stub_data.dig(:response, :status) || 200, - headers: {} - } - - if stub_data.dig(:response, :json_body).present? - response_options[:headers]["Content-Type"] = "application/json" - response_options[:body] = JSON.pretty_generate(stub_data[:response][:json_body]) - end - - stubbing = stub_request(method, url) - stubbing = stubbing.with(request_options) if request_options.any? - stubbing.to_return(response_options) - end - end - end - - module DescribedMethod - def describe_method(method_name, &block) - unless described_class.instance_methods.include?(method_name.to_sym) - raise NameError, "No method named `#{method_name}` for class #{described_class}" - end - - # Helper method to quickly define a context for a method with default let values - context(method_name) do - let(:method_name) { method_name } - let(:basic) { nil } - let(:params) { {} } - let(:body) { nil } - let(:arguments) { nil } - - let(:response) { - args = [method_name] - - # A few methods use positional arguments - if arguments.is_a?(Array) - args += arguments - elsif arguments - args << arguments - end - - args.compact! - - subject.public_send(*args, body: body, basic: basic, **params) - } - - instance_exec(&block) - end - end - end - - module Common - extend RSpec::SharedContext - let(:scalingo_guest) { Scalingo::SpecClient.new } - let(:scalingo) { Scalingo::SpecClient.new.tap { |c| c.authenticate_with(bearer_token: Scalingo::VALID_BEARER_TOKEN) } } - let(:auth) { Scalingo::Auth.new(ENDPOINTS[:auth], scalingo: scalingo) } - let(:auth_guest) { Scalingo::Auth.new(ENDPOINTS[:auth], scalingo: scalingo_guest) } - let(:billing) { Scalingo::Billing.new(ENDPOINTS[:billing], scalingo: scalingo) } - let(:billing_guest) { Scalingo::Billing.new(ENDPOINTS[:billing], scalingo: scalingo_guest) } - let(:regional) { Scalingo::Regional.new(ENDPOINTS[:regional], scalingo: scalingo) } - let(:regional_guest) { Scalingo::Regional.new(ENDPOINTS[:regional], scalingo: scalingo_guest) } - let(:regionaldatabase) { Scalingo::RegionalDatabase.new(ENDPOINTS[:regional_database], scalingo: scalingo) } - let(:meta) { @meta } - - let(:endpoint) do - if described_class < Scalingo::API::Endpoint - api = described_class.to_s.split("::")[-2].downcase - - described_class.new(send(api)) - end - end - - let(:guest_endpoint) do - if described_class < Scalingo::API::Endpoint - api = described_class.to_s.split("::")[-2].downcase - - described_class.new(send(:"#{api}_guest")) - end - end - - subject { endpoint } - end -end diff --git a/spec/support/shared.rb b/spec/support/shared.rb index 8e37f79..e69de29 100644 --- a/spec/support/shared.rb +++ b/spec/support/shared.rb @@ -1,125 +0,0 @@ -RSpec.shared_examples "a successful response" do |code = 200| - let(:expected_code) { code } - - it "is successful" do - expect(response).to be_success - expect(response.status).to eq code - end - - # Checking that the method accepts a block and passes the faraday object - it "can configure the request via a block" do - expect { |block| - args = [method_name] - - # A few methods use positional arguments - if arguments.is_a?(Array) - args += arguments - elsif arguments - args << arguments - end - - args.compact! - - subject.public_send(*args, **params, body: body, &block) - }.to yield_with_args(Faraday::Request, Hash) - end -end - -RSpec.shared_examples "a client error" do - it "is a generic client error" do - expect(response).to be_client_error - expect(response.status).to eq 400 - end -end - -RSpec.shared_examples "a server error" do - it "is a generic server error" do - expect(response).to be_server_error - expect(response.status).to eq 500 - end -end - -RSpec.shared_examples "a not found response" do - it "cannot be found" do - expect(response).to be_client_error - expect(response.status).to eq 404 - end -end - -RSpec.shared_examples "an unprocessable request" do - it "cannot be found" do - expect(response).to be_client_error - expect(response.status).to eq 422 - end -end - -RSpec.shared_examples "a singular object response" do |code = 200| - it_behaves_like "a successful response", code - - let(:expected_type) { Object } unless method_defined?(:expected_type) - let(:expected_keys) { %i[id] } unless method_defined?(:expected_keys) - - it "is an object of the expected type (and if applicable, the expected keys)" do - expect(response.body).to be_a_kind_of(expected_type) - - if response.body.respond_to?(:key?) - expected_keys.each do |key| - expect(response.body.key?(key)).to be true - end - end - end -end - -RSpec.shared_examples "an empty response" do |code = 204| - it_behaves_like "a successful response", code - - it "is empty" do - expect(response.body).to eq("") - end -end - -RSpec.shared_examples "a collection response" do |code = 200| - it_behaves_like "a successful response", code - - let(:expected_count) { 1 } unless method_defined?(:expected_count) - let(:expected_type) { Object } unless method_defined?(:expected_type) - let(:expected_keys) { %i[id] } unless method_defined?(:expected_keys) - - it "is an array" do - expect(response.body).to be_a_kind_of(Array) - end - - it "contains the number of expected elements" do - expect(response.body.size).to eq(expected_count) - end - - it "items are of the expected type (and if applicable, the expected keys)" do - response.body.each do |item| - expect(item).to be_a_kind_of(expected_type) - - if item.respond_to?(:key?) - expected_keys.each do |key| - expect(item.key?(key)).to be true - end - end - end - end -end - -RSpec.shared_examples "a paginated collection" do |code = 200| - it "is paginated" do - expect(response).to be_paginated - end -end - -RSpec.shared_examples "a cursor paginated collection" do |code = 200| - it "is cursor paginated" do - expect(response).to be_cursor_paginated - end -end - -RSpec.shared_examples "a non-paginated collection" do |code = 200| - it "is not paginated" do - expect(response).not_to be_paginated - end -end