diff --git a/cmd/scw/testdata/test-all-usage-account-ssh-key-init-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-account-ssh-key-init-usage.stderr.golden index 68995b3a96..513682b49f 100644 --- a/cmd/scw/testdata/test-all-usage-account-ssh-key-init-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-account-ssh-key-init-usage.stderr.golden @@ -1,4 +1,4 @@ -Initiliaze SSH key. +Initialize SSH key. USAGE: scw account ssh-key init diff --git a/cmd/scw/testdata/test-all-usage-account-ssh-key-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-account-ssh-key-usage.stderr.golden index 03897dacd0..7e5903a790 100644 --- a/cmd/scw/testdata/test-all-usage-account-ssh-key-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-account-ssh-key-usage.stderr.golden @@ -4,7 +4,7 @@ USAGE: scw account ssh-key AVAILABLE COMMANDS: - init Initiliaze SSH key + init Initialize SSH key FLAGS: -h, --help help for ssh-key diff --git a/cmd/scw/testdata/test-all-usage-baremetal-server-create-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-baremetal-server-create-usage.stderr.golden index 10dae18cae..387fe6cbe8 100644 --- a/cmd/scw/testdata/test-all-usage-baremetal-server-create-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-baremetal-server-create-usage.stderr.golden @@ -3,18 +3,33 @@ Create a new server. Once the server is created, you probably want to install an USAGE: scw baremetal server create [arg=value ...] +EXAMPLES: + Create instance + scw baremetal server create + + Create a GP-BM1-M instance, give it a name and add tags + scw baremetal server create name=foo tags.0=prod tags.1=blue type=GP-BM1-M + ARGS: - offer-id Offer ID of the new server - name Name of the server (≠hostname) - description Description associated to the server, max 255 characters + name= Name of the server (≠hostname) + [description] Description associated to the server, max 255 characters + [type=GP-BM1-S] Server commercial type (GP-BM1-L | GP-BM1-M | GP-BM1-S | HC-BM1-L | HC-BM1-S | HM-BM1-XL | HM-BM1-M) [tags.{index}] Tags to associate to the server [organization-id] Organization ID to use. If none is passed will use default organization ID from the config [zone] Zone to target. If none is passed will use default zone from the config (fr-par-2) FLAGS: -h, --help help for create + -w, --wait wait until the server is ready GLOBAL FLAGS: -D, --debug Enable debug mode -o, --output string Output format: json or human -p, --profile string The config profile to use + +SEE ALSO: + # List os + scw baremetal os list + + # Install an OS on your server + scw baremetal server install diff --git a/cmd/scw/testdata/test-all-usage-baremetal-server-reboot-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-baremetal-server-reboot-usage.stderr.golden index 255c78ab2d..b8391fea92 100644 --- a/cmd/scw/testdata/test-all-usage-baremetal-server-reboot-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-baremetal-server-reboot-usage.stderr.golden @@ -10,6 +10,7 @@ ARGS: FLAGS: -h, --help help for reboot + -w, --wait wait until the server is ready GLOBAL FLAGS: -D, --debug Enable debug mode diff --git a/cmd/scw/testdata/test-all-usage-baremetal-server-start-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-baremetal-server-start-usage.stderr.golden index 67a3210ba3..353a1431de 100644 --- a/cmd/scw/testdata/test-all-usage-baremetal-server-start-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-baremetal-server-start-usage.stderr.golden @@ -9,6 +9,7 @@ ARGS: FLAGS: -h, --help help for start + -w, --wait wait until the server is ready GLOBAL FLAGS: -D, --debug Enable debug mode diff --git a/cmd/scw/testdata/test-all-usage-baremetal-server-stop-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-baremetal-server-stop-usage.stderr.golden index e40e16dd41..78ff08b17a 100644 --- a/cmd/scw/testdata/test-all-usage-baremetal-server-stop-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-baremetal-server-stop-usage.stderr.golden @@ -9,6 +9,7 @@ ARGS: FLAGS: -h, --help help for stop + -w, --wait wait until the server is ready GLOBAL FLAGS: -D, --debug Enable debug mode diff --git a/cmd/scw/testdata/test-all-usage-baremetal-server-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-baremetal-server-usage.stderr.golden index 0164fb6788..823da3bbf1 100644 --- a/cmd/scw/testdata/test-all-usage-baremetal-server-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-baremetal-server-usage.stderr.golden @@ -13,6 +13,7 @@ AVAILABLE COMMANDS: reboot Reboot server start Start server stop Stop server + wait Wait for a server to reach a stable state FLAGS: -h, --help help for server diff --git a/cmd/scw/testdata/test-all-usage-baremetal-server-wait-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-baremetal-server-wait-usage.stderr.golden new file mode 100644 index 0000000000..30bfb13b28 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-baremetal-server-wait-usage.stderr.golden @@ -0,0 +1,20 @@ +Wait for a server to reach a stable state. This is similar to using --wait flag on other action commands, but without requiring a new action on the server. + +USAGE: + scw baremetal server wait [arg=value ...] + +EXAMPLES: + Wait for a server to reach a stable state + scw baremetal server wait server-id=11111111-1111-1111-1111-111111111111 + +ARGS: + server-id ID of the server affected by the action. + [zone] Zone to target. If none is passed will use default zone from the config + +FLAGS: + -h, --help help for wait + +GLOBAL FLAGS: + -D, --debug Enable debug mode + -o, --output string Output format: json or human + -p, --profile string The config profile to use diff --git a/internal/namespaces/baremetal/v1alpha1/baremetal_cli.go b/internal/namespaces/baremetal/v1alpha1/baremetal_cli.go index b4e0cd778b..01dbeffca7 100644 --- a/internal/namespaces/baremetal/v1alpha1/baremetal_cli.go +++ b/internal/namespaces/baremetal/v1alpha1/baremetal_cli.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/scaleway/scaleway-cli/internal/core" - "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1" + baremetal "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1" "github.com/scaleway/scaleway-sdk-go/scw" ) diff --git a/internal/namespaces/baremetal/v1alpha1/baremetal_cli_test.go b/internal/namespaces/baremetal/v1alpha1/baremetal_cli_test.go index b65d136858..3196a8e681 100644 --- a/internal/namespaces/baremetal/v1alpha1/baremetal_cli_test.go +++ b/internal/namespaces/baremetal/v1alpha1/baremetal_cli_test.go @@ -4,13 +4,13 @@ import ( "testing" "github.com/scaleway/scaleway-cli/internal/core" - "github.com/scaleway/scaleway-sdk-go/api/instance/v1" + baremetal "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1" "github.com/scaleway/scaleway-sdk-go/scw" ) func init() { if !core.UpdateCassettes { - instance.RetryInterval = 0 + baremetal.RetryInterval = 0 } } diff --git a/internal/namespaces/baremetal/v1alpha1/custom.go b/internal/namespaces/baremetal/v1alpha1/custom.go index e081d88046..52092154ef 100644 --- a/internal/namespaces/baremetal/v1alpha1/custom.go +++ b/internal/namespaces/baremetal/v1alpha1/custom.go @@ -4,5 +4,17 @@ import "github.com/scaleway/scaleway-cli/internal/core" func GetCommands() *core.Commands { cmds := GetGeneratedCommands() + + cmds.Merge(core.NewCommands( + serverWaitCommand(), + )) + + cmds.MustFind("baremetal", "server", "create").Override(serverCreateBuilder) + + // Action commands + cmds.MustFind("baremetal", "server", "start").Override(serverStartBuilder) + cmds.MustFind("baremetal", "server", "stop").Override(serverStopBuilder) + cmds.MustFind("baremetal", "server", "reboot").Override(serverRebootBuilder) + return cmds } diff --git a/internal/namespaces/baremetal/v1alpha1/custom_server.go b/internal/namespaces/baremetal/v1alpha1/custom_server.go new file mode 100644 index 0000000000..c7c1f2cc56 --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/custom_server.go @@ -0,0 +1,95 @@ +package baremetal + +import ( + "context" + "reflect" + "time" + + "github.com/scaleway/scaleway-cli/internal/core" + baremetal "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +const ( + serverActionTimeout = 20 * time.Minute +) + +func serverWaitCommand() *core.Command { + type serverWaitRequest struct { + ServerID string + Zone scw.Zone + } + + return &core.Command{ + Short: `Wait for a server to reach a stable state`, + Long: `Wait for a server to reach a stable state. This is similar to using --wait flag on other action commands, but without requiring a new action on the server.`, + Namespace: "baremetal", + Resource: "server", + Verb: "wait", + ArgsType: reflect.TypeOf(serverWaitRequest{}), + Run: func(ctx context.Context, argsI interface{}) (i interface{}, err error) { + api := baremetal.NewAPI(core.ExtractClient(ctx)) + return api.WaitForServer(&baremetal.WaitForServerRequest{ + ServerID: argsI.(*serverWaitRequest).ServerID, + Zone: argsI.(*serverWaitRequest).Zone, + Timeout: serverActionTimeout, + }) + }, + ArgSpecs: core.ArgSpecs{ + { + Name: "server-id", + Short: `ID of the server affected by the action.`, + Required: true, + }, + core.ZoneArgSpec(), + }, + Examples: []*core.Example{ + { + Short: "Wait for a server to reach a stable state", + Request: `{"server_id": "11111111-1111-1111-1111-111111111111"}`, + }, + }, + } +} + +// serverStartBuilder overrides the baremetalServerStart command +func serverStartBuilder(c *core.Command) *core.Command { + c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { + api := baremetal.NewAPI(core.ExtractClient(ctx)) + return api.WaitForServer(&baremetal.WaitForServerRequest{ + Zone: argsI.(*baremetal.StartServerRequest).Zone, + ServerID: respI.(*baremetal.StartServerRequest).ServerID, + Timeout: serverActionTimeout, + }) + } + + return c +} + +// serverStopBuilder overrides the baremetalServerStop command +func serverStopBuilder(c *core.Command) *core.Command { + c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { + api := baremetal.NewAPI(core.ExtractClient(ctx)) + return api.WaitForServer(&baremetal.WaitForServerRequest{ + Zone: argsI.(*baremetal.StopServerRequest).Zone, + ServerID: respI.(*baremetal.StopServerRequest).ServerID, + Timeout: serverActionTimeout, + }) + } + + return c +} + +// serverRebootBuilder overrides the baremetalServerReboot command +func serverRebootBuilder(c *core.Command) *core.Command { + c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { + api := baremetal.NewAPI(core.ExtractClient(ctx)) + return api.WaitForServer(&baremetal.WaitForServerRequest{ + Zone: argsI.(*baremetal.RebootServerRequest).Zone, + ServerID: respI.(*baremetal.RebootServerRequest).ServerID, + Timeout: serverActionTimeout, + }) + } + + return c +} diff --git a/internal/namespaces/baremetal/v1alpha1/custom_server_create.go b/internal/namespaces/baremetal/v1alpha1/custom_server_create.go new file mode 100644 index 0000000000..e3e0685fc8 --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/custom_server_create.go @@ -0,0 +1,119 @@ +package baremetal + +import ( + "context" + "fmt" + "reflect" + + "github.com/scaleway/scaleway-cli/internal/core" + baremetal "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func serverCreateBuilder(c *core.Command) *core.Command { + type baremetalCreateServerRequestCustom struct { + Zone scw.Zone `json:"-"` + // OrganizationID with which the server will be created + OrganizationID string `json:"organization_id"` + // Name of the server (≠hostname) + Name string `json:"name"` + // Description associated to the server, max 255 characters + Description string `json:"description"` + // Tags associated with the server + Tags []string `json:"tags"` + // Type of the server + Type string + } + + c.ArgsType = reflect.TypeOf(baremetalCreateServerRequestCustom{}) + + c.ArgSpecs.DeleteByName("offer-id") + + c.ArgSpecs.GetByName("name").Default = core.RandomValueGenerator("bm") + c.ArgSpecs.GetByName("description").Required = false + + c.ArgSpecs.AddBefore("tags.{index}", &core.ArgSpec{ + Name: "type", + Short: "Server commercial type", + Default: core.DefaultValueSetter("GP-BM1-S"), + + EnumValues: []string{ + // General Purpose offers + "GP-BM1-L", + "GP-BM1-M", + "GP-BM1-S", + + // High-computing offers + "HC-BM1-L", + "HC-BM1-S", + + // High-Memory offers + "HM-BM1-XL", + "HM-BM1-M", + }, + }) + + c.Run = func(ctx context.Context, argsI interface{}) (i interface{}, e error) { + client := core.ExtractClient(ctx) + api := baremetal.NewAPI(client) + + tmpRequest := argsI.(*baremetalCreateServerRequestCustom) + request := &baremetal.CreateServerRequest{ + Zone: tmpRequest.Zone, + OrganizationID: tmpRequest.OrganizationID, + Name: tmpRequest.Name, + Description: tmpRequest.Description, + Tags: tmpRequest.Tags, + } + + // We need to find the offer ID. + // While baremetal does not have list offer name filter we are forced to iterate + // on the list of offers provided. + offer, err := api.GetOfferFromName(&baremetal.GetOfferFromOfferNameRequest{ + OfferName: tmpRequest.Type, + Zone: tmpRequest.Zone, + }) + if err != nil { + return nil, err + } + if offer == nil { + return nil, fmt.Errorf("could not match an offer with the type: %s", tmpRequest.Type) + } + request.OfferID = offer.ID + + return api.CreateServer(request) + } + + c.SeeAlsos = []*core.SeeAlso{ + { + Short: "List os", + Command: "scw baremetal os list", + }, + { + Short: "Install an OS on your server", + Command: "scw baremetal server install", + }, + } + + c.Examples = []*core.Example{ + { + Short: "Create instance", + Request: `{}`, + }, + { + Short: "Create a GP-BM1-M instance, give it a name and add tags", + Request: `{"type":"GP-BM1-M","name":"foo","tags":["prod","blue"]}`, + }, + } + + c.WaitFunc = func(ctx context.Context, argsI, respI interface{}) (interface{}, error) { + api := baremetal.NewAPI(core.ExtractClient(ctx)) + return api.WaitForServer(&baremetal.WaitForServerRequest{ + Zone: argsI.(*baremetalCreateServerRequestCustom).Zone, + ServerID: respI.(*baremetal.Server).ID, + Timeout: serverActionTimeout, + }) + } + + return c +} diff --git a/internal/namespaces/baremetal/v1alpha1/custom_server_create_test.go b/internal/namespaces/baremetal/v1alpha1/custom_server_create_test.go new file mode 100644 index 0000000000..5618e33ce6 --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/custom_server_create_test.go @@ -0,0 +1,97 @@ +package baremetal + +import ( + "fmt" + "testing" + + "github.com/alecthomas/assert" + "github.com/scaleway/scaleway-cli/internal/core" + baremetal "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +// All test below should succeed to create an instance. +func Test_CreateServer(t *testing.T) { + // Simple use cases + t.Run("Simple", func(t *testing.T) { + t.Run("Default", core.Test(&core.TestConfig{ + Commands: GetCommands(), + Cmd: "scw baremetal server create -w", + Check: core.TestCheckCombine( + core.TestCheckGolden(), + core.TestCheckExitCode(0), + ), + AfterFunc: func(ctx *core.AfterFuncCtx) error { + _, err := baremetal.NewAPI(ctx.Client).DeleteServer(&baremetal.DeleteServerRequest{ + ServerID: ctx.CmdResult.(*baremetal.Server).ID, + }) + if err != nil { + return err + } + return nil + }, + DefaultZone: scw.ZoneFrPar2, + })) + + t.Run("With name", core.Test(&core.TestConfig{ + Commands: GetCommands(), + Cmd: "scw baremetal server create name=test-create-server-with-name -w", + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + assert.Equal(t, "test-create-server-with-name", ctx.Result.(*baremetal.Server).Name) + }, + core.TestCheckExitCode(0), + ), + DefaultZone: scw.ZoneFrPar2, + AfterFunc: func(ctx *core.AfterFuncCtx) error { + _, err := baremetal.NewAPI(ctx.Client).DeleteServer(&baremetal.DeleteServerRequest{ + ServerID: ctx.CmdResult.(*baremetal.Server).ID, + }) + if err != nil { + return err + } + + return nil + }, + })) + + t.Run("Tags", core.Test(&core.TestConfig{ + Commands: GetCommands(), + Cmd: "scw baremetal server create tags.0=prod tags.1=blue -w", + Check: core.TestCheckCombine( + func(t *testing.T, ctx *core.CheckFuncCtx) { + assert.Equal(t, "prod", ctx.Result.(*baremetal.Server).Tags[0]) + assert.Equal(t, "blue", ctx.Result.(*baremetal.Server).Tags[1]) + }, + core.TestCheckExitCode(0), + ), + DefaultZone: scw.ZoneFrPar2, + AfterFunc: func(ctx *core.AfterFuncCtx) error { + _, err := baremetal.NewAPI(ctx.Client).DeleteServer(&baremetal.DeleteServerRequest{ + ServerID: ctx.CmdResult.(*baremetal.Server).ID, + }) + if err != nil { + return err + } + + return nil + }, + })) + }) + + // None of the tests below should succeed to create an instance. + t.Run("Errors", func(t *testing.T) { + // Instance type errors + t.Run("Error: invalid instance type", core.Test(&core.TestConfig{ + Commands: GetCommands(), + Cmd: "scw baremetal server create type=foobar", + Check: core.TestCheckCombine( + core.TestCheckError(&core.CliError{ + Err: fmt.Errorf("invalid value 'foobar' for arg 'type'"), + Hint: "Accepted values for 'type' are [GP-BM1-L GP-BM1-M GP-BM1-S HC-BM1-L HC-BM1-S HM-BM1-XL HM-BM1-M]", + }), + core.TestCheckExitCode(1), + ), + })) + }) +} diff --git a/internal/namespaces/baremetal/v1alpha1/custom_server_test.go b/internal/namespaces/baremetal/v1alpha1/custom_server_test.go new file mode 100644 index 0000000000..5dafe27047 --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/custom_server_test.go @@ -0,0 +1,41 @@ +package baremetal + +import ( + "testing" + + "github.com/scaleway/scaleway-cli/internal/core" + "github.com/scaleway/scaleway-sdk-go/scw" +) + +func Test_StartServerErrors(t *testing.T) { + t.Run("Error: cannot be started while not delivered", core.Test(&core.TestConfig{ + BeforeFunc: createServer("Server"), + Commands: GetCommands(), + Cmd: "scw baremetal server start server-id={{ .Server.ID }} -w", + Check: core.TestCheckExitCode(1), + AfterFunc: deleteServer("Server"), + DefaultZone: scw.ZoneFrPar2, + })) +} + +func Test_StopServerErrors(t *testing.T) { + t.Run("Error: cannot be stopped while not delivered", core.Test(&core.TestConfig{ + BeforeFunc: createServer("Server"), + Commands: GetCommands(), + Cmd: "scw baremetal server stop server-id={{ .Server.ID }} -w", + Check: core.TestCheckExitCode(1), + AfterFunc: deleteServer("Server"), + DefaultZone: scw.ZoneFrPar2, + })) +} + +func Test_RebootServerErrors(t *testing.T) { + t.Run("Error: cannot be rebooted while not delivered", core.Test(&core.TestConfig{ + BeforeFunc: createServer("Server"), + Commands: GetCommands(), + Cmd: "scw baremetal server reboot server-id={{ .Server.ID }} -w", + Check: core.TestCheckExitCode(1), + AfterFunc: deleteServer("Server"), + DefaultZone: scw.ZoneFrPar2, + })) +} diff --git a/internal/namespaces/baremetal/v1alpha1/helpers_test.go b/internal/namespaces/baremetal/v1alpha1/helpers_test.go new file mode 100644 index 0000000000..9912c3a68b --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/helpers_test.go @@ -0,0 +1,17 @@ +package baremetal + +import ( + "github.com/scaleway/scaleway-cli/internal/core" +) + +// createServer creates a baremetal instance +// register it in the context Meta at metaKey. +func createServer(metaKey string) core.BeforeFunc { + return core.ExecStoreBeforeCmd(metaKey, "scw baremetal server create") +} + +// deleteServer deletes a server +// previously registered in the context Meta at metaKey. +func deleteServer(metaKey string) core.AfterFunc { + return core.ExecAfterCmd("scw baremetal server delete server-id={{ ." + metaKey + ".ID }}") +} diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.cassette.yaml new file mode 100644 index 0000000000..749a438aec --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.cassette.yaml @@ -0,0 +1,461 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; 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":7,"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 + 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":"7fde3890-9787-488c-ac89-c4e00a4e5f83","name":"GP-BM1-S","stock":"available","bandwidth":500,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":240000000},"price_by_month":{"currency_code":"EUR","units":119,"nanos":990000000},"disk":[{"capacity":250,"type":"SSD"},{"capacity":250,"type":"SSD"}],"enable":true,"cpu":[{"name":"Intel + Xeon E3 1240v6","cores":4,"threads":8,"frequency":3700}],"memory":[{"capacity":32,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":240000000},"price_per_month":{"currency_code":"EUR","units":119,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"empty","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}}]}' + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:42:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2ae2b0e1-029c-4a45-b462-02518d0b2108 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","tags":null}' + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers + method: POST + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:49.829565387Z","created_at":"2020-03-31T12:42:49.829565387Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "400" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:42:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b2a62712-83cd-439f-af0c-10c2af40a44d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:49.829565Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:42:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a5efccc2-962a-4254-9b64-f03b4d8f23a9 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:43:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 329e7049-8f4e-4ccc-9195-0a3a4390131d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:43:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 08cfaf79-524e-44d0-9847-820062a64bba + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:43:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6261a24c-815b-4ab7-8ba3-9b2b2177fe8d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:43:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 009fa8c9-91a7-4ae1-bd49-f4878ec1621b + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:44:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fc4d55bd-0e07-4678-a0e0-7cf610274a2f + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:44:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2a48879b-dc80-405d-a6f2-a312cd7f2d56 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:44:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e36a8bd9-a407-44f5-8756-e2b5a398a826 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:44:50 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5785f8e4-d316-46ad-ae2e-f043787992f4 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:42:50.382448Z","created_at":"2020-03-31T12:42:49.829565Z","status":"undelivered","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "394" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:45:05 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d890843c-3678-445a-acde-6dc05e4e0150 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: GET + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:45:12.097905Z","created_at":"2020-03-31T12:42:49.829565Z","status":"ready","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[{"id":"084ea4f5-1f9c-4509-86c1-8f3141d0ac43","address":"2001:0bc8:6005:001b:dac4:97ff:fe2a:33a8","reverse":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null},{"id":"2aa5bb6d-1f65-4566-b44f-fa30bf5c9d01","address":"51.159.31.12","reverse":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null}],"domain":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "925" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:45:20 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 45f9112e-ba9b-4d13-a4ae-b4d4de74f128 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.6+dev (go1.14.1; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/baremetal/v1alpha1/zones/fr-par-2/servers/7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 + method: DELETE + response: + body: '{"id":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-peaceful-lewin","description":"","updated_at":"2020-03-31T12:45:20.361814Z","created_at":"2020-03-31T12:42:49.829565Z","status":"deleting","offer_id":"7fde3890-9787-488c-ac89-c4e00a4e5f83","install":null,"tags":[],"ips":[{"id":"084ea4f5-1f9c-4509-86c1-8f3141d0ac43","address":"2001:0bc8:6005:001b:dac4:97ff:fe2a:33a8","reverse":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null},{"id":"2aa5bb6d-1f65-4566-b44f-fa30bf5c9d01","address":"51.159.31.12","reverse":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null}],"domain":"7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "928" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 31 Mar 2020 12:45:20 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c6777128-0f76-43b4-a1ce-f36e7f858695 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.stdout.golden b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.stdout.golden new file mode 100644 index 0000000000..24f98d30a8 --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-default.stdout.golden @@ -0,0 +1,21 @@ +id 7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5 +organization-id 951df375-e094-4d26-97c1-ba548eeb9c42 +name cli-bm-peaceful-lewin +description - +updated-at few seconds ago +created-at few seconds ago +status ready +offer-id 7fde3890-9787-488c-ac89-c4e00a4e5f83 +ips.0.id 084ea4f5-1f9c-4509-86c1-8f3141d0ac43 +ips.0.address 2001:bc8:6005:1b:dac4:97ff:fe2a:33a8 +ips.0.reverse 7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud +ips.0.version Ipv6 +ips.0.reverse-status pending +ips.1.id 2aa5bb6d-1f65-4566-b44f-fa30bf5c9d01 +ips.1.address 51.159.31.12 +ips.1.reverse 7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud +ips.1.version Ipv4 +ips.1.reverse-status pending +domain 7d25ddb0-9cdb-49fb-8d71-9afaa0c977b5.fr-par-2.baremetal.scw.cloud +boot-type normal +zone fr-par-2 diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-tags.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-tags.cassette.yaml new file mode 100644 index 0000000000..a27ba3752f --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-tags.cassette.yaml @@ -0,0 +1,493 @@ +--- +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-2/offers?page=1 + method: GET + response: + body: '{"total_count":7,"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":"7fde3890-9787-488c-ac89-c4e00a4e5f83","name":"GP-BM1-S","stock":"available","bandwidth":500,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":240000000},"price_by_month":{"currency_code":"EUR","units":119,"nanos":990000000},"disk":[{"capacity":250,"type":"SSD"},{"capacity":250,"type":"SSD"}],"enable":true,"cpu":[{"name":"Intel + Xeon E3 1240v6","cores":4,"threads":8,"frequency":3700}],"memory":[{"capacity":32,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":240000000},"price_per_month":{"currency_code":"EUR","units":119,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"empty","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}}]}' + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 12bbe3c4-98b6-4ac1-9456-d3f462c14f0b + 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-magical-northcutt","description":"","tags":["prod","blue"]}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers + method: POST + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:34.486858025Z","created_at":"2020-03-27T12:57:34.486858025Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "416" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e3918df9-62e0-4df3-a650-79eea00bfa1f + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:34.486858Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 275de2eb-90cf-4f47-b065-d8c47a4798a4 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:34.486858Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e84dbd17-9930-4798-a8ef-e54cfc12a706 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4d93f889-5eb7-4ebc-a593-cc1776815431 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 83e003a6-629a-4168-8917-2b53e5aa93db + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8f493216-b7a7-46c4-b88c-6f021bbfb44c + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 438990e9-61e4-49ef-935c-52f8a3d51d13 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4dd49e90-6bc1-45ff-a6d5-34058b27f0b4 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - cfae2b29-baa1-4b4f-9243-1389295b12fa + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0959339a-f973-4900-b5b2-b8a21577d63a + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d49a44d6-24db-4d33-80d4-5835d0b7ceeb + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T12:57:55.775509Z","created_at":"2020-03-27T12:57:34.486858Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "410" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 13:00:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 126e9246-979f-4404-ad74-1c7b5fa77762 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: GET + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T13:00:18.086102Z","created_at":"2020-03-27T12:57:34.486858Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[{"id":"080c7d67-e056-4e45-afdd-02234fffacb3","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:74fd","reverse":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null},{"id":"2779da21-6cab-4df2-99ad-419b5801193b","address":"51.159.56.167","reverse":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null}],"domain":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "942" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 13:00:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 4eec8060-20c4-430a-8325-bbb36f5ec798 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/a72e6f1b-0cdc-449b-ae93-a91547d5dae4 + method: DELETE + response: + body: '{"id":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-magical-northcutt","description":"","updated_at":"2020-03-27T13:00:20.020104Z","created_at":"2020-03-27T12:57:34.486858Z","status":"deleting","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["prod","blue"],"ips":[{"id":"080c7d67-e056-4e45-afdd-02234fffacb3","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:74fd","reverse":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null},{"id":"2779da21-6cab-4df2-99ad-419b5801193b","address":"51.159.56.167","reverse":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null}],"domain":"a72e6f1b-0cdc-449b-ae93-a91547d5dae4.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "945" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 13:00:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 647e0d3d-014e-4755-9884-d254f67182b4 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-with-name.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-with-name.cassette.yaml new file mode 100644 index 0000000000..bd42269deb --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-create-server-simple-with-name.cassette.yaml @@ -0,0 +1,493 @@ +--- +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-2/offers?page=1 + method: GET + response: + body: '{"total_count":7,"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":"7fde3890-9787-488c-ac89-c4e00a4e5f83","name":"GP-BM1-S","stock":"available","bandwidth":500,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":240000000},"price_by_month":{"currency_code":"EUR","units":119,"nanos":990000000},"disk":[{"capacity":250,"type":"SSD"},{"capacity":250,"type":"SSD"}],"enable":true,"cpu":[{"name":"Intel + Xeon E3 1240v6","cores":4,"threads":8,"frequency":3700}],"memory":[{"capacity":32,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":240000000},"price_per_month":{"currency_code":"EUR","units":119,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"empty","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}}]}' + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b20652b3-8d0c-4259-a548-66eeeb2372c6 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","tags":null}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers + method: POST + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:34.488976716Z","created_at":"2020-03-27T12:57:34.488976716Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "407" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 734fddd4-af43-4f84-a663-b57b62f3c6c0 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:34.488977Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - da856a40-003d-42ad-988d-7f83de86e1ef + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:57:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 50430251-59b6-4220-b84b-5ab6c4323931 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 241aabe7-2386-4334-a702-54d06bb8a124 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 42bfc160-4da3-4fde-8c18-4e7bd6a0ff78 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3814ea6f-81a7-4f94-a2d1-5d86ddbadd09 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:58:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 086dd3f8-ef64-426e-9649-b0db9dc499a6 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 76c71650-2b26-477b-9c9b-cfe1cf1de4bd + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6e1d392c-a9d6-4230-8f2f-45e145d5793c + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:34 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d97c2ec3-6156-4646-9b9f-9c15dfead397 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 12:59:49 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf352a95-15ee-436e-ba75-8b3c80662370 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T12:57:35.112580Z","created_at":"2020-03-27T12:57:34.488977Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "401" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 13:00:04 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7d4dd719-8e9d-4844-b8d0-0e0c6f952aca + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: GET + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T13:00:18.053381Z","created_at":"2020-03-27T12:57:34.488977Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"ab3b5e4a-e206-427b-9c3f-6aa600412d81","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:7a85","reverse":"607d25ac-cc12-42d7-8e5a-3aec6b22430c.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null},{"id":"fa26f004-24a4-4c28-bd65-406cf6eff3af","address":"51.159.56.126","reverse":"607d25ac-cc12-42d7-8e5a-3aec6b22430c.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null}],"domain":"607d25ac-cc12-42d7-8e5a-3aec6b22430c.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "933" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 13:00:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e5249c51-4f9f-4c61-bd91-33d9f4cefd6b + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/607d25ac-cc12-42d7-8e5a-3aec6b22430c + method: DELETE + response: + body: '{"id":"607d25ac-cc12-42d7-8e5a-3aec6b22430c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"test-create-server-with-name","description":"","updated_at":"2020-03-27T13:00:20.020189Z","created_at":"2020-03-27T12:57:34.488977Z","status":"deleting","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"ab3b5e4a-e206-427b-9c3f-6aa600412d81","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:7a85","reverse":"607d25ac-cc12-42d7-8e5a-3aec6b22430c.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null},{"id":"fa26f004-24a4-4c28-bd65-406cf6eff3af","address":"51.159.56.126","reverse":"607d25ac-cc12-42d7-8e5a-3aec6b22430c.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null}],"domain":"607d25ac-cc12-42d7-8e5a-3aec6b22430c.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "936" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 13:00:19 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5aecc4c7-e701-4cdc-927b-090e8be7d2c5 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.cassette.yaml index 31f79e488e..20b2622f61 100644 --- a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.cassette.yaml +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.cassette.yaml @@ -6,20 +6,20 @@ 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/servers?order_by=created_at_asc&page=1&tags=a method: GET response: - body: '{"total_count":1,"servers":[{"id":"188b71df-4193-4f33-9151-df07234f3ef4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"bm-determined-ellis","description":"","updated_at":"2020-03-10T13:49:42.602599Z","created_at":"2020-02-24T09:54:57.367412Z","status":"ready","offer_id":"737f18c8-febc-4408-b69e-776bca0a3f48","install":{"os_id":"f2aeab5d-6015-4b7c-b4ed-d76e89093621","hostname":"bm-determined-ellis","ssh_key_ids":["77021435-ad22-4748-8861-0a1c512154d0","90bf1977-43ab-4eb7-b178-3dd96963ce99"],"status":"completed"},"tags":["a"],"ips":[{"id":"80e3d13b-b5df-4c00-b38c-afc4e96f8ea5","address":"51.159.0.4","reverse":"188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"active","reverse_status_message":null},{"id":"b7abae59-34a3-49fc-87b4-93e95da83207","address":"2001:0bc8:6005:0000:529a:4cff:fe84:ea3d","reverse":"188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"active","reverse_status_message":null}],"domain":"188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}]}' + body: '{"total_count":1,"servers":[{"id":"63122914-918a-431b-aeb1-001fc1a7e3b2","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"bm-blissful-yonath","description":"","updated_at":"2020-03-26T09:58:55.787980Z","created_at":"2020-03-26T09:51:14.289250Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["a"],"ips":[{"id":"fe70a9b5-7f3d-4927-8730-cc3c995fefec","address":"51.159.56.110","reverse":"63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"active","reverse_status_message":null},{"id":"f160ce5b-58c1-47cf-a9ab-807e5f5f45dd","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:7c81","reverse":"63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"active","reverse_status_message":null}],"domain":"63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}]}' headers: Content-Length: - - "1144" + - "954" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 10 Mar 2020 13:53:55 GMT + - Thu, 26 Mar 2020 09:58:58 GMT Server: - scaleway_api Strict-Transport-Security: @@ -29,7 +29,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ca407d93-163d-4711-8993-d10b8e919490 + - 0acae1a9-df5c-4a4d-8fe1-9787ef0d2e65 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.stdout.golden b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.stdout.golden index b2ff582a19..19ae1bf47c 100644 --- a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.stdout.golden +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-list-with-tags.stdout.golden @@ -1,2 +1,2 @@ -ID ORGANIZATION ID NAME DESCRIPTION UPDATED AT CREATED AT STATUS OFFER ID TAGS IPS DOMAIN BOOT TYPE ZONE -188b71df-4193-4f33-9151-df07234f3ef4 951df375-e094-4d26-97c1-ba548eeb9c42 bm-determined-ellis - few seconds ago few seconds ago ready 737f18c8-febc-4408-b69e-776bca0a3f48 [a] 2 188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud normal fr-par-2 +ID ORGANIZATION ID NAME DESCRIPTION UPDATED AT CREATED AT STATUS OFFER ID TAGS IPS DOMAIN BOOT TYPE ZONE +63122914-918a-431b-aeb1-001fc1a7e3b2 951df375-e094-4d26-97c1-ba548eeb9c42 bm-blissful-yonath - few seconds ago few seconds ago ready 964f9b38-577e-470f-a220-7d762f9e8672 [a] 2 63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud normal fr-par-2 diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.cassette.yaml index c5a3431432..049b4f6e5c 100644 --- a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.cassette.yaml +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.cassette.yaml @@ -6,20 +6,20 @@ 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/servers?order_by=created_at_asc&page=1 method: GET response: - body: '{"total_count":2,"servers":[{"id":"188b71df-4193-4f33-9151-df07234f3ef4","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"bm-determined-ellis","description":"","updated_at":"2020-03-10T13:49:42.602599Z","created_at":"2020-02-24T09:54:57.367412Z","status":"ready","offer_id":"737f18c8-febc-4408-b69e-776bca0a3f48","install":{"os_id":"f2aeab5d-6015-4b7c-b4ed-d76e89093621","hostname":"bm-determined-ellis","ssh_key_ids":["77021435-ad22-4748-8861-0a1c512154d0","90bf1977-43ab-4eb7-b178-3dd96963ce99"],"status":"completed"},"tags":["a"],"ips":[{"id":"80e3d13b-b5df-4c00-b38c-afc4e96f8ea5","address":"51.159.0.4","reverse":"188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"active","reverse_status_message":null},{"id":"b7abae59-34a3-49fc-87b4-93e95da83207","address":"2001:0bc8:6005:0000:529a:4cff:fe84:ea3d","reverse":"188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"active","reverse_status_message":null}],"domain":"188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"},{"id":"eabed7e5-d03c-43f4-bc6d-e33f72fceb5b","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"bm-sad-gauss","description":"","updated_at":"2020-03-10T13:49:51.321889Z","created_at":"2020-03-10T13:43:43.978885Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["b"],"ips":[{"id":"15950a05-a378-470c-b0ab-6d8e06bd9875","address":"51.159.56.50","reverse":"eabed7e5-d03c-43f4-bc6d-e33f72fceb5b.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"active","reverse_status_message":null},{"id":"718c1366-3b52-4409-a66c-84d67a2664e8","address":"2001:0bc8:1200:0000:aa1e:84ff:fef3:5cc4","reverse":"eabed7e5-d03c-43f4-bc6d-e33f72fceb5b.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"active","reverse_status_message":null}],"domain":"eabed7e5-d03c-43f4-bc6d-e33f72fceb5b.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}]}' + body: '{"total_count":1,"servers":[{"id":"63122914-918a-431b-aeb1-001fc1a7e3b2","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"bm-blissful-yonath","description":"","updated_at":"2020-03-26T09:58:55.787980Z","created_at":"2020-03-26T09:51:14.289250Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":["a"],"ips":[{"id":"fe70a9b5-7f3d-4927-8730-cc3c995fefec","address":"51.159.56.110","reverse":"63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"active","reverse_status_message":null},{"id":"f160ce5b-58c1-47cf-a9ab-807e5f5f45dd","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:7c81","reverse":"63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"active","reverse_status_message":null}],"domain":"63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}]}' headers: Content-Length: - - "2062" + - "954" Content-Security-Policy: - default-src 'none'; frame-ancestors 'none' Content-Type: - application/json Date: - - Tue, 10 Mar 2020 13:53:55 GMT + - Thu, 26 Mar 2020 09:58:58 GMT Server: - scaleway_api Strict-Transport-Security: @@ -29,7 +29,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - af076dc3-2203-46d6-b9fc-02bcefc7223f + - 233a6a45-c1e7-43d4-ac8d-d2e347a7215c status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.stdout.golden b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.stdout.golden index 0803491946..19ae1bf47c 100644 --- a/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.stdout.golden +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-list-server-simple.stdout.golden @@ -1,3 +1,2 @@ -ID ORGANIZATION ID NAME DESCRIPTION UPDATED AT CREATED AT STATUS OFFER ID TAGS IPS DOMAIN BOOT TYPE ZONE -188b71df-4193-4f33-9151-df07234f3ef4 951df375-e094-4d26-97c1-ba548eeb9c42 bm-determined-ellis - few seconds ago few seconds ago ready 737f18c8-febc-4408-b69e-776bca0a3f48 [a] 2 188b71df-4193-4f33-9151-df07234f3ef4.fr-par-2.baremetal.scw.cloud normal fr-par-2 -eabed7e5-d03c-43f4-bc6d-e33f72fceb5b 951df375-e094-4d26-97c1-ba548eeb9c42 bm-sad-gauss - few seconds ago few seconds ago ready 964f9b38-577e-470f-a220-7d762f9e8672 [b] 2 eabed7e5-d03c-43f4-bc6d-e33f72fceb5b.fr-par-2.baremetal.scw.cloud normal fr-par-2 +ID ORGANIZATION ID NAME DESCRIPTION UPDATED AT CREATED AT STATUS OFFER ID TAGS IPS DOMAIN BOOT TYPE ZONE +63122914-918a-431b-aeb1-001fc1a7e3b2 951df375-e094-4d26-97c1-ba548eeb9c42 bm-blissful-yonath - few seconds ago few seconds ago ready 964f9b38-577e-470f-a220-7d762f9e8672 [a] 2 63122914-918a-431b-aeb1-001fc1a7e3b2.fr-par-2.baremetal.scw.cloud normal fr-par-2 diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-reboot-server-errors-error-cannot-be-rebooted-while-not-delivered.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-reboot-server-errors-error-cannot-be-rebooted-while-not-delivered.cassette.yaml new file mode 100644 index 0000000000..88ce96406b --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-reboot-server-errors-error-cannot-be-rebooted-while-not-delivered.cassette.yaml @@ -0,0 +1,783 @@ +--- +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-2/offers?page=1 + method: GET + response: + body: '{"total_count":7,"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":"7fde3890-9787-488c-ac89-c4e00a4e5f83","name":"GP-BM1-S","stock":"available","bandwidth":500,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":240000000},"price_by_month":{"currency_code":"EUR","units":119,"nanos":990000000},"disk":[{"capacity":250,"type":"SSD"},{"capacity":250,"type":"SSD"}],"enable":true,"cpu":[{"name":"Intel + Xeon E3 1240v6","cores":4,"threads":8,"frequency":3700}],"memory":[{"capacity":32,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":240000000},"price_per_month":{"currency_code":"EUR","units":119,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"empty","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}}]}' + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 00a6f953-ecd9-415f-a502-f8321fa2cf6c + 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-jovial-brown","description":"","tags":null}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers + method: POST + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.358951329Z","created_at":"2020-03-27T10:10:40.358951329Z","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" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - d8dc1ee8-cdb7-422d-919e-4ca306f4df98 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"boot_type":"normal"}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e/reboot + method: POST + response: + body: '{"message":"Server is not delivered"}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1b63dfc7-20a8-4017-80e1-71572f038390 + status: 400 Bad Request + code: 400 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.358951Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f7f023f2-4fb0-4790-b4a6-2624d2d9f852 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:55 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3e571158-2f76-43a7-a62d-a415df0241c0 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:11:10 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bcc4ae45-e84e-4cbb-b8f6-717283edae36 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:11:25 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5b8526f6-917e-48de-bedb-e877fc11e317 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:11:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f213cd10-630d-4062-8298-3972054b4077 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:11:55 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 978be25e-250a-47c9-9f6e-ca26ee57b550 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:12:10 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 077736d4-fe2a-49f4-8dad-72acb85dbbcc + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:12:25 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a0db9c18-909b-41c4-9bf4-baa28d25da03 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:12:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 5024de51-83c6-4a3b-959e-acbe898235dd + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:12:55 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ba4f342f-ba8d-4df0-b908-9e5bb81d7be1 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:13:10 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 000d73d7-899d-44d2-92e0-b716a0cb9c64 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:13:25 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 3cd612f0-d08c-42ee-8909-2546fef24fa4 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:13:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2acdc1e4-e678-4fcc-9f2d-e74b95555245 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:13:55 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bf3775cd-7b94-4c16-b075-5d04cd591c99 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:14:10 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f4c90a5c-2ea9-4bc3-9c6d-acffaed18ebc + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:14:26 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9ffd24f7-8247-44df-8e0b-c3de0c93337d + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:14:41 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 9985a264-5c8f-4416-9003-ac5969cb0b35 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:14:56 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - a4195cc8-27b6-4ecb-bb9e-f13ac3724bb7 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:10:40.966173Z","created_at":"2020-03-27T10:10:40.358951Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "392" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:15:11 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 59672270-ef22-4a7a-96b9-35eef458d67d + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: GET + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:15:23.684191Z","created_at":"2020-03-27T10:10:40.358951Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"71955658-ee4e-4a8f-a2b3-c8f974dc475f","address":"51.159.56.110","reverse":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null},{"id":"b89d1699-7ffd-4ccb-baf5-e01ac432d594","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:7c81","reverse":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null}],"domain":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "924" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:15:26 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7c877eb5-48de-430c-a6ef-63efe3341efa + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/5c3fd7fa-6df0-4d44-983a-819b749e6a7e + method: DELETE + response: + body: '{"id":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-jovial-brown","description":"","updated_at":"2020-03-27T10:15:26.418826Z","created_at":"2020-03-27T10:10:40.358951Z","status":"deleting","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"71955658-ee4e-4a8f-a2b3-c8f974dc475f","address":"51.159.56.110","reverse":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null},{"id":"b89d1699-7ffd-4ccb-baf5-e01ac432d594","address":"2001:0bc8:1200:0000:dac4:97ff:fe5b:7c81","reverse":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null}],"domain":"5c3fd7fa-6df0-4d44-983a-819b749e6a7e.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "927" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:15:26 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0ae2b05b-b233-48cf-add4-8f5f616583b8 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-start-server-errors-error-cannot-be-started-while-not-delivered.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-start-server-errors-error-cannot-be-started-while-not-delivered.cassette.yaml new file mode 100644 index 0000000000..fbb342c1c0 --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-start-server-errors-error-cannot-be-started-while-not-delivered.cassette.yaml @@ -0,0 +1,367 @@ +--- +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-2/offers?page=1 + method: GET + response: + body: '{"total_count":7,"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":"7fde3890-9787-488c-ac89-c4e00a4e5f83","name":"GP-BM1-S","stock":"available","bandwidth":500,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":240000000},"price_by_month":{"currency_code":"EUR","units":119,"nanos":990000000},"disk":[{"capacity":250,"type":"SSD"},{"capacity":250,"type":"SSD"}],"enable":true,"cpu":[{"name":"Intel + Xeon E3 1240v6","cores":4,"threads":8,"frequency":3700}],"memory":[{"capacity":32,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":240000000},"price_per_month":{"currency_code":"EUR","units":119,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"empty","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}}]}' + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:03:52 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 628ddea4-ee72-43c9-9d7a-825c4a252fc0 + 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-nostalgic-aryabhata","description":"","tags":null}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers + method: POST + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:03:53.277880412Z","created_at":"2020-03-27T10:03:53.277880412Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "405" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:03:53 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ea621287-7982-4c20-a16f-77b3bb1cb4c8 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c/start + method: POST + response: + body: '{"message":"Server is not delivered"}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:03:53 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eb9edfc7-7f62-44a0-906c-30fdf65057b6 + status: 400 Bad Request + code: 400 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: GET + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:03:53.277880Z","created_at":"2020-03-27T10:03:53.277880Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "399" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:03:53 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 097a3b94-409f-4589-81bc-5bdd967ef3a4 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: GET + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:03:53.940178Z","created_at":"2020-03-27T10:03:53.277880Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "399" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:04:08 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - f5083ff7-3fd0-46e5-90e1-f9fd0cf96fee + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: GET + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:03:53.940178Z","created_at":"2020-03-27T10:03:53.277880Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "399" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:04:23 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1d8e5d2b-4e68-4006-b0f4-4313e6ea7423 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: GET + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:03:53.940178Z","created_at":"2020-03-27T10:03:53.277880Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "399" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:04:38 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7b67f3da-3df7-4bcc-99ee-252d17b0889c + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: GET + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:03:53.940178Z","created_at":"2020-03-27T10:03:53.277880Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "399" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:04:53 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e9b47578-5624-4ec3-9a0b-5534eb9b7a21 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: GET + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:03:53.940178Z","created_at":"2020-03-27T10:03:53.277880Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "399" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:08 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 965f7cff-29e0-42ea-950b-71a72628dfef + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: GET + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:05:15.445998Z","created_at":"2020-03-27T10:03:53.277880Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"4ff33a3c-b605-447d-96d2-eb0a3bd025c6","address":"51.159.56.72","reverse":"aa4b70b6-9825-4efe-ad2f-f201951b224c.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null},{"id":"9fee40e0-190a-4a9b-b773-3739171dc8a7","address":"2001:0bc8:1200:0000:dac4:97ff:fe2a:30f4","reverse":"aa4b70b6-9825-4efe-ad2f-f201951b224c.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null}],"domain":"aa4b70b6-9825-4efe-ad2f-f201951b224c.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "930" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:23 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - baf5f5d6-e823-4f56-a305-366562a6a621 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/aa4b70b6-9825-4efe-ad2f-f201951b224c + method: DELETE + response: + body: '{"id":"aa4b70b6-9825-4efe-ad2f-f201951b224c","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-nostalgic-aryabhata","description":"","updated_at":"2020-03-27T10:05:23.674284Z","created_at":"2020-03-27T10:03:53.277880Z","status":"deleting","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"4ff33a3c-b605-447d-96d2-eb0a3bd025c6","address":"51.159.56.72","reverse":"aa4b70b6-9825-4efe-ad2f-f201951b224c.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null},{"id":"9fee40e0-190a-4a9b-b773-3739171dc8a7","address":"2001:0bc8:1200:0000:dac4:97ff:fe2a:30f4","reverse":"aa4b70b6-9825-4efe-ad2f-f201951b224c.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null}],"domain":"aa4b70b6-9825-4efe-ad2f-f201951b224c.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "933" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:23 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - df4984cf-f0e7-4d9e-9806-8b10332d4fba + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/baremetal/v1alpha1/testdata/test-stop-server-errors-error-cannot-be-stopped-while-not-delivered.cassette.yaml b/internal/namespaces/baremetal/v1alpha1/testdata/test-stop-server-errors-error-cannot-be-stopped-while-not-delivered.cassette.yaml new file mode 100644 index 0000000000..dff5d7c204 --- /dev/null +++ b/internal/namespaces/baremetal/v1alpha1/testdata/test-stop-server-errors-error-cannot-be-stopped-while-not-delivered.cassette.yaml @@ -0,0 +1,847 @@ +--- +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-2/offers?page=1 + method: GET + response: + body: '{"total_count":7,"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":"7fde3890-9787-488c-ac89-c4e00a4e5f83","name":"GP-BM1-S","stock":"available","bandwidth":500,"commercial_range":"general_purpose","price_by_minute":{"currency_code":"EUR","units":0,"nanos":240000000},"price_by_month":{"currency_code":"EUR","units":119,"nanos":990000000},"disk":[{"capacity":250,"type":"SSD"},{"capacity":250,"type":"SSD"}],"enable":true,"cpu":[{"name":"Intel + Xeon E3 1240v6","cores":4,"threads":8,"frequency":3700}],"memory":[{"capacity":32,"type":"DDR4","frequency":2133,"ecc":true}],"quota_name":"bmaas_gp","price_per_sixty_minutes":{"currency_code":"EUR","units":0,"nanos":240000000},"price_per_month":{"currency_code":"EUR","units":119,"nanos":990000000}},{"id":"8090d302-3545-4905-9cf3-bcb77a299f47","name":"GP-BM1-L","stock":"empty","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}}]}' + headers: + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:23 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e2837623-ecf2-4baf-baf4-781ebf2e336c + 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-beautiful-khorana","description":"","tags":null}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers + method: POST + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:23.954358666Z","created_at":"2020-03-27T10:05:23.954358666Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "403" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:23 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 1ffcbe55-02c2-40cc-a777-2a039511e417 + status: 200 OK + code: 200 + duration: "" +- request: + body: '{}' + form: {} + headers: + Content-Type: + - application/json + 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd/stop + method: POST + response: + body: '{"message":"Server is not delivered"}' + headers: + Content-Length: + - "37" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:23 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ee7c5a37-354d-49bf-8bd9-6c64998bd992 + status: 400 Bad Request + code: 400 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:23.954359Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:23 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - e78247ef-9f13-40c7-81e0-9d40680a65f5 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:38 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 6a4fe346-0587-45cf-bddd-7b914ddb6705 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:05:54 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 16db185c-4f6e-4c6d-bef5-35d8b1eaca5e + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:06:09 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - eeb485dd-18c0-49ce-9183-fabe9ee42ab5 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:06:24 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fda5e40e-922b-4173-8eb6-80e24f8e11b9 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:06:39 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 31bf145c-79d2-4ade-a588-0eb1ba982a3a + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:06:54 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ac5d950e-0b19-4901-ae4f-38e6ada66ca2 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:07:09 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c9510c27-b8d8-413a-b6ff-74ebf1514567 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:07:24 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - b13d8daa-17c6-4dd7-9533-b88fa2f45702 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:07:39 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 53927aae-5dab-4577-8be5-64886dce06a6 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:07:54 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 2fbab57d-4ccc-4b0b-9055-11d0b3c8dffe + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:08:09 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 8d7e87a9-c428-40e4-9715-c06a381bd79f + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:08:24 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - fe11ec89-773d-41f1-8541-eff1486313e4 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:08:39 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7571fa00-bd16-4ab2-acca-a226c31ab351 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:08:54 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 7279f8f8-3a65-4173-ad31-b0fd3b58a860 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:09:09 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 599bd379-5244-4fec-9d88-0d0ee578419d + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:09:24 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - dcc7768b-3fa9-4112-89b0-d28a563a5903 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:09:39 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ee018452-7132-4c60-a471-a08b3cc2e1d7 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:09:54 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - ee8b04cd-2bda-4ca8-ba7a-891363e5163c + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:09 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 55a681c3-666e-4a77-a75b-dc8088cb2886 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:05:24.689901Z","created_at":"2020-03-27T10:05:23.954359Z","status":"undelivered","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[],"domain":"","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "397" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:24 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - bb7daee5-05b5-4585-be5d-ef2057a7f367 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: GET + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:10:27.698331Z","created_at":"2020-03-27T10:05:23.954359Z","status":"ready","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"103d06aa-1f97-463a-9932-0307d2cbf834","address":"51.159.56.77","reverse":"43f935cb-f3fb-4757-8f89-bbf29976efcd.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null},{"id":"dc3014c6-e070-4110-bac7-a6c447058f28","address":"2001:0bc8:1200:0000:dac4:97ff:fe2a:33b0","reverse":"43f935cb-f3fb-4757-8f89-bbf29976efcd.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null}],"domain":"43f935cb-f3fb-4757-8f89-bbf29976efcd.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "928" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:39 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - c7f20a22-bb45-4e9a-9d5d-7bd1199f61e2 + status: 200 OK + code: 200 + duration: "" +- 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-2/servers/43f935cb-f3fb-4757-8f89-bbf29976efcd + method: DELETE + response: + body: '{"id":"43f935cb-f3fb-4757-8f89-bbf29976efcd","organization_id":"951df375-e094-4d26-97c1-ba548eeb9c42","name":"cli-bm-beautiful-khorana","description":"","updated_at":"2020-03-27T10:10:40.071267Z","created_at":"2020-03-27T10:05:23.954359Z","status":"deleting","offer_id":"964f9b38-577e-470f-a220-7d762f9e8672","install":null,"tags":[],"ips":[{"id":"103d06aa-1f97-463a-9932-0307d2cbf834","address":"51.159.56.77","reverse":"43f935cb-f3fb-4757-8f89-bbf29976efcd.fr-par-2.baremetal.scw.cloud","version":"Ipv4","reverse_status":"pending","reverse_status_message":null},{"id":"dc3014c6-e070-4110-bac7-a6c447058f28","address":"2001:0bc8:1200:0000:dac4:97ff:fe2a:33b0","reverse":"43f935cb-f3fb-4757-8f89-bbf29976efcd.fr-par-2.baremetal.scw.cloud","version":"Ipv6","reverse_status":"pending","reverse_status_message":null}],"domain":"43f935cb-f3fb-4757-8f89-bbf29976efcd.fr-par-2.baremetal.scw.cloud","boot_type":"normal","zone":"fr-par-2"}' + headers: + Content-Length: + - "931" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Fri, 27 Mar 2020 10:10:40 GMT + Server: + - scaleway_api + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 399ebb06-d947-4fa8-8954-2b97a71220a0 + status: 200 OK + code: 200 + duration: ""