Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Mar 4, 2020
1 parent 8b191ab commit c8da31d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
28 changes: 28 additions & 0 deletions internal/namespaces/baremetal/v1alpha1/baremetal_cli_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package baremetal

import (
"testing"

"github.com/scaleway/scaleway-cli/internal/core"
"github.com/scaleway/scaleway-sdk-go/api/instance/v1"
)

func init() {
if !core.UpdateCassettes {
instance.RetryInterval = 0
}
}

//
// Server
//
func Test_ListServer(t *testing.T) {
t.Run("Simple", core.Test(&core.TestConfig{
Commands: GetCommands(),
Cmd: "scw baremetal server list",
Check: core.TestCheckCombine(
core.TestCheckGolden(),
core.TestCheckExitCode(0),
),
}))
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- scaleway-sdk-go/v1.0.0-beta.5+dev (go1.14; darwin; amd64) cli-e2e-test
url: https://api-world.scaleway.com/baremetal/v1alpha1/zones/fr-par-1/servers?order_by=created_at_asc&page=1
method: GET
response:
body: '{"message":"unknown service"}'
headers:
Content-Length:
- "29"
Content-Security-Policy:
- default-src 'none'; frame-ancestors 'none'
Content-Type:
- application/json
Date:
- Wed, 04 Mar 2020 14:12:11 GMT
Server:
- scaleway_api
Strict-Transport-Security:
- max-age=63072000
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
X-Request-Id:
- 77946fa7-0ffe-40b9-9f9b-895f8076137d
status: 501 Not Implemented
code: 501
duration: ""
Empty file.

0 comments on commit c8da31d

Please sign in to comment.