Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Mar 16, 2020
1 parent f947032 commit 76a3adf
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ interactions:
form: {}
headers:
User-Agent:
- scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; darwin; amd64) cli-e2e-test
- scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14; darwin; amd64) cli-e2e-test
url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/offers?page=1
method: GET
response:
body: '{"total_count":6,"offers":[{"id":"3ab0dc29-2fd4-486e-88bf-d08fbf49214b","name":"HC-BM1-L","stock":"empty","bandwidth":1000,"commercial_range":"high_cpu","price_by_minute":{"currency_code":"EUR","units":1,"nanos":499900000},"price_by_month":{"currency_code":"EUR","units":749,"nanos":990000000},"disk":[{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"}],"enable":true,"cpu":[{"name":"Intel
body: '{"total_count":6,"offers":[{"id":"3ab0dc29-2fd4-486e-88bf-d08fbf49214b","name":"HC-BM1-L","stock":"available","bandwidth":1000,"commercial_range":"high_cpu","price_by_minute":{"currency_code":"EUR","units":1,"nanos":499900000},"price_by_month":{"currency_code":"EUR","units":749,"nanos":990000000},"disk":[{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"}],"enable":true,"cpu":[{"name":"Intel
Xeon Gold 5120","cores":28,"threads":56,"frequency":2200},{"name":"Intel Xeon
Gold 5120","cores":28,"threads":56,"frequency":2200}],"memory":[{"capacity":384,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_high","price_per_sixty_minutes":{"currency_code":"EUR","units":1,"nanos":499900000},"price_per_month":{"currency_code":"EUR","units":749,"nanos":990000000}},{"id":"5363865f-2266-40f9-a43f-4f3aba251524","name":"HM-BM1-XL","stock":"empty","bandwidth":1000,"commercial_range":"high_memory","price_by_minute":{"currency_code":"EUR","units":2,"nanos":599900000},"price_by_month":{"currency_code":"EUR","units":1299,"nanos":990000000},"disk":[{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"}],"enable":true,"cpu":[{"name":"Intel
Xeon Gold 6140","cores":36,"threads":72,"frequency":2300},{"name":"Intel Xeon
Gold 6140","cores":36,"threads":72,"frequency":2300}],"memory":[{"capacity":768,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_high","price_per_sixty_minutes":{"currency_code":"EUR","units":2,"nanos":599900000},"price_per_month":{"currency_code":"EUR","units":1299,"nanos":990000000}},{"id":"737f18c8-febc-4408-b69e-776bca0a3f48","name":"HC-BM1-S","stock":"available","bandwidth":1000,"commercial_range":"high_cpu","price_by_minute":{"currency_code":"EUR","units":0,"nanos":659900000},"price_by_month":{"currency_code":"EUR","units":329,"nanos":990000000},"disk":[{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"}],"enable":true,"cpu":[{"name":"Intel
Xeon Silver 4114","cores":10,"threads":20,"frequency":2200},{"name":"Intel Xeon
Silver 4114","cores":10,"threads":20,"frequency":2200}],"memory":[{"capacity":128,"type":"DDR4","frequency":2400,"ecc":true}],"quota_name":"bmaas_high","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":659900000},"price_per_month":{"currency_code":"EUR","units":329,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"empty","bandwidth":1000,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":499900000},"price_by_month":{"currency_code":"EUR","units":249,"nanos":990000000},"disk":[{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"}],"enable":true,"cpu":[{"name":"AMD
Silver 4114","cores":10,"threads":20,"frequency":2200}],"memory":[{"capacity":128,"type":"DDR4","frequency":2400,"ecc":true}],"quota_name":"bmaas_high","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":659900000},"price_per_month":{"currency_code":"EUR","units":329,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"available","bandwidth":1000,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":499900000},"price_by_month":{"currency_code":"EUR","units":249,"nanos":990000000},"disk":[{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"}],"enable":true,"cpu":[{"name":"AMD
EPYC 7281","cores":16,"threads":32,"frequency":2100}],"memory":[{"capacity":96,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":499900000},"price_per_month":{"currency_code":"EUR","units":249,"nanos":990000000}},{"id":"964f9b38-577e-470f-a220-7d762f9e8672","name":"GP-BM1-M","stock":"available","bandwidth":500,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":399900000},"price_by_month":{"currency_code":"EUR","units":199,"nanos":990000000},"disk":[{"capacity":1024,"type":"SSD"},{"capacity":1024,"type":"SSD"},{"capacity":1024,"type":"SSD"}],"enable":true,"cpu":[{"name":"Intel
Xeon E3 1240v6","cores":4,"threads":8,"frequency":3700}],"memory":[{"capacity":64,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":399900000},"price_per_month":{"currency_code":"EUR","units":199,"nanos":990000000}},{"id":"c452f76a-2cda-4a1b-9658-a16952dc5ff0","name":"HM-BM1-M","stock":"available","bandwidth":1000,"commercial_range":"high_memory","price_by_minute":{"currency_code":"EUR","units":0,"nanos":799900000},"price_by_month":{"currency_code":"EUR","units":399,"nanos":990000000},"disk":[{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"},{"capacity":1024,"type":"NVMe"}],"enable":true,"cpu":[{"name":"AMD
EPYC 7401P","cores":24,"threads":48,"frequency":2000}],"memory":[{"capacity":256,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_high","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":799900000},"price_per_month":{"currency_code":"EUR","units":399,"nanos":990000000}}]}'
Expand All @@ -26,7 +26,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 12 Mar 2020 16:48:02 GMT
- Mon, 16 Mar 2020 15:02:43 GMT
Server:
- scaleway_api
Strict-Transport-Security:
Expand All @@ -36,31 +36,31 @@ interactions:
X-Frame-Options:
- DENY
X-Request-Id:
- 09dc99ee-67f3-47ec-a4fc-1910b154afb6
- 5439d8ff-9e6b-4d35-b4bc-9804ab319959
status: 200 OK
code: 200
duration: ""
- request:
body: '{"offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-festive-saha","description":"","tags":null}'
body: '{"offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-adoring-burnell","description":"","tags":null}'
form: {}
headers:
Content-Type:
- application/json
User-Agent:
- scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; darwin; amd64) cli-e2e-test
- scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14; darwin; amd64) cli-e2e-test
url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers
method: POST
response:
body: '{"id":"aecb6bf4-db1a-4d9b-9b65-d6e241fc22b6","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-festive-saha","description":"","updated_at":"2020-03-12T16:48:02.637218571Z","created_at":"2020-03-12T16:48:02.637218571Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}'
body: '{"id":"56443f14-77a3-47f9-9468-972be70d20fa","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-adoring-burnell","description":"","updated_at":"2020-03-16T15:02:44.095279868Z","created_at":"2020-03-16T15:02:44.095279868Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}'
headers:
Content-Length:
- "398"
- "401"
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'
Content-Type:
- application/json
Date:
- Thu, 12 Mar 2020 16:48:02 GMT
- Mon, 16 Mar 2020 15:02:43 GMT
Server:
- scaleway_api
Strict-Transport-Security:
Expand All @@ -70,7 +70,7 @@ interactions:
X-Frame-Options:
- DENY
X-Request-Id:
- d25039c0-8f71-4905-bc9b-0966d2d93fd0
- 0cdd8d80-4368-453b-9134-e7ce105fd41f
status: 200 OK
code: 200
duration: ""
Expand All @@ -79,8 +79,8 @@ interactions:
form: {}
headers:
User-Agent:
- scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; darwin; amd64) cli-e2e-test
url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/aecb6bf4-db1a-4d9b-9b65-d6e241fc22b6
- scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14; darwin; amd64) cli-e2e-test
url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/56443f14-77a3-47f9-9468-972be70d20fa
method: DELETE
response:
body: '{"message":"Server is not delivered"}'
Expand All @@ -92,7 +92,7 @@ interactions:
Content-Type:
- application/json
Date:
- Thu, 12 Mar 2020 16:48:02 GMT
- Mon, 16 Mar 2020 15:02:43 GMT
Server:
- scaleway_api
Strict-Transport-Security:
Expand All @@ -102,7 +102,7 @@ interactions:
X-Frame-Options:
- DENY
X-Request-Id:
- f2349049-a1cb-4a3e-b86d-d01f867a5e64
- 11f38363-ebdc-46a9-acd9-8f04c50fed03
status: 400 Bad Request
code: 400
duration: ""
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id aecb6bf4-db1a-4d9b-9b65-d6e241fc22b6
id 56443f14-77a3-47f9-9468-972be70d20fa
organization-id 951df375-e094-4d26-97c1-ba548eeb9c42
name cli-bm-festive-saha
name cli-bm-adoring-burnell
description -
updated-at few seconds ago
created-at few seconds ago
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14; darwin; amd64) cli-e2e-test
url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-1/offers?page=1
method: GET
response:
body: '{"message":"unknown service"}'
headers:
Content-Length:
- "29"
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'
Content-Type:
- application/json
Date:
- Mon, 16 Mar 2020 15:02:44 GMT
Server:
- scaleway_api
Strict-Transport-Security:
- max-age=63072000
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
X-Request-Id:
- 981b4050-4f98-4fd4-ab5e-a8a4e78ed537
status: 501 Not Implemented
code: 501
duration: ""
Loading

0 comments on commit 76a3adf

Please sign in to comment.