-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
135 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...tal/v1alpha1/testdata/test-create-server-errors-error-invalid-instance-type.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unknown command "instance" for "scw" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...al/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
DEBUG: 2019/12/09 16:04:07 creating GET request on https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/offers?page=1 | ||
DEBUG: 2019/12/09 16:04:07 | ||
--------------- Scaleway SDK REQUEST 1 : --------------- | ||
GET /baremetal/v1alpha1/zones/fr-par-2/offers?page=1 HTTP/1.1 | ||
Host: api.scaleway.com | ||
User-Agent: scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14; darwin; amd64) cli-e2e-test | ||
X-Auth-Token: 148499e0-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
Accept-Encoding: gzip | ||
|
||
|
||
--------------------------------------------------------- | ||
DEBUG: 2019/12/09 16:04:07 | ||
--------------- Scaleway SDK RESPONSE 1 : --------------- | ||
HTTP/1.0 200 OK | ||
Connection: close | ||
Content-Length: 4684 | ||
Content-Security-Policy: default-src 'none'; frame-ancestors 'none' | ||
Content-Type: application/json | ||
Date: Tue, 17 Mar 2020 15:00:14 GMT | ||
Server: scaleway_api | ||
Strict-Transport-Security: max-age=63072000 | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: DENY | ||
X-Request-Id: 8ff5663b-c7e8-4b5f-8d67-a8b0b33ef4a2 | ||
|
||
{"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":"available","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":"available","bandwidth":750,"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}}]} | ||
---------------------------------------------------------- | ||
DEBUG: 2019/12/09 16:04:07 creating POST request on https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers | ||
DEBUG: 2019/12/09 16:04:07 | ||
--------------- Scaleway SDK REQUEST 2 : --------------- | ||
POST /baremetal/v1alpha1/zones/fr-par-2/servers HTTP/1.1 | ||
Host: api.scaleway.com | ||
User-Agent: scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14; darwin; amd64) cli-e2e-test | ||
Content-Length: 172 | ||
Content-Type: application/json | ||
X-Auth-Token: 148499e0-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
Accept-Encoding: gzip | ||
|
||
{"offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-mystifying-shannon","description":"","tags":null} | ||
--------------------------------------------------------- | ||
DEBUG: 2019/12/09 16:04:07 | ||
--------------- Scaleway SDK RESPONSE 2 : --------------- | ||
HTTP/1.0 200 OK | ||
Connection: close | ||
Content-Length: 404 | ||
Content-Security-Policy: default-src 'none'; frame-ancestors 'none' | ||
Content-Type: application/json | ||
Date: Tue, 17 Mar 2020 15:00:14 GMT | ||
Server: scaleway_api | ||
Strict-Transport-Security: max-age=63072000 | ||
X-Content-Type-Options: nosniff | ||
X-Frame-Options: DENY | ||
X-Request-Id: 08cd5b27-ee60-44fd-94c9-45c7a7f3b501 | ||
|
||
{"id":"2bc82be8-aeb4-4cf3-a474-954c5abf7d3b","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-mystifying-shannon","description":"","updated_at":"2020-03-17T15:00:15.123704001Z","created_at":"2020-03-17T15:00:15.123704001Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"} | ||
---------------------------------------------------------- | ||
DEBUG: 2019/12/09 16:04:07 marshalling type '*baremetal.Server' | ||
DEBUG: 2019/12/09 16:04:07 marshalling type 'baremetal.Server' | ||
DEBUG: 2019/12/09 16:04:07 skipping check version | ||
DEBUG: 2019/12/09 16:04:07 skipping telemetry report |
4 changes: 2 additions & 2 deletions
4
...al/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.stdout.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.