Skip to content

Commit

Permalink
Revert Switchover SSS v2 API, Support Workspace CRUD
Browse files Browse the repository at this point in the history
  • Loading branch information
ikegami-shota committed Feb 28, 2024
1 parent d244572 commit 7da946b
Show file tree
Hide file tree
Showing 510 changed files with 22 additions and 48,810 deletions.
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ way than just downloading it. Here are the basic instructions:
[README](/README.md#how-to-install).

```bash
go get github.com/nttcom/eclcloud/v3
go get github.com/nttcom/eclcloud/v2
```

2. Move into the directory that houses your local repository:

```bash
cd ${GOPATH}/src/github.com/nttcom/eclcloud/v3
cd ${GOPATH}/src/github.com/nttcom/eclcloud/v2
```

3. Fork the `nttcom/eclcloud` repository and update your remote refs. You
Expand Down Expand Up @@ -130,7 +130,7 @@ process of testing expectations with assertions:
import (
"testing"

"github.com/nttcom/eclcloud/v3/testhelper"
"github.com/nttcom/eclcloud/v2/testhelper"
)

func TestSomething(t *testing.T) {
Expand All @@ -156,9 +156,9 @@ Here is a truncated example of mocked HTTP responses:
import (
"testing"

th "github.com/nttcom/eclcloud/v3/testhelper"
fake "github.com/nttcom/eclcloud/v3/testhelper/client"
"github.com/nttcom/eclcloud/v3/ecl/network/v2/networks"
th "github.com/nttcom/eclcloud/v2/testhelper"
fake "github.com/nttcom/eclcloud/v2/testhelper/client"
"github.com/nttcom/eclcloud/v2/ecl/network/v2/networks"
)

func TestGet(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ fmtcheck:
(! gofmt -s -d . | grep '^')

vet:
go vet ./... && cd v2 && go vet ./... && cd ../v3 && go vet ./...
go vet ./... && cd v2 && go vet ./...

test:
go test ./... -count=1 && cd v2 && go test ./... -count=1 && cd ../v3 && go test ./... -count=1
go test ./... -count=1 && cd v2 && go test ./... -count=1

.PHONY: fmt fmtcheck vet test
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ explicitly, or tell eclcloud to use environment variables:

```go
import (
"github.com/nttcom/eclcloud/v3"
"github.com/nttcom/eclcloud/v3"
"github.com/nttcom/eclcloud/v3/utils"
"github.com/nttcom/eclcloud/v2"
"github.com/nttcom/eclcloud/v2"
"github.com/nttcom/eclcloud/v2/utils"
)

// Option 1: Pass in the values yourself
Expand Down Expand Up @@ -82,7 +82,7 @@ in the flavor ID (hardware specification) and image ID (operating system) we're
interested in:

```go
import "github.com/nttcom/eclcloud/v3/compute/v2/servers"
import "github.com/nttcom/eclcloud/v2/compute/v2/servers"

server, err := servers.Create(client, servers.CreateOpts{
Name: "My new server!",
Expand Down
10 changes: 5 additions & 5 deletions ecl/sss/v1/approval_requests/testing/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var listResponse = fmt.Sprintf(`
"descriptions": [
{
"lang": "en",
"text": "approval request test"
"text": "approval resquest test"
}
],
"request_user": false,
Expand Down Expand Up @@ -66,7 +66,7 @@ var listResponse = fmt.Sprintf(`
"descriptions": [
{
"lang": "en",
"text": "approval request test"
"text": "approval resquest test"
}
],
"request_user": false,
Expand Down Expand Up @@ -113,7 +113,7 @@ var firstApprovalRequest = ar.ApprovalRequest{
Descriptions: []ar.Description{
{
Lang: "en",
Text: "approval request test",
Text: "approval resquest test",
},
},
RequestUser: false,
Expand Down Expand Up @@ -144,7 +144,7 @@ var secondApprovalRequest = ar.ApprovalRequest{
Descriptions: []ar.Description{
{
Lang: "en",
Text: "approval request test",
Text: "approval resquest test",
},
},
RequestUser: false,
Expand Down Expand Up @@ -181,7 +181,7 @@ var getResponse = fmt.Sprintf(`
"descriptions": [
{
"lang": "en",
"text": "approval request test"
"text": "approval resquest test"
}
],
"request_user": false,
Expand Down
10 changes: 5 additions & 5 deletions v2/ecl/sss/v1/approval_requests/testing/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var listResponse = fmt.Sprintf(`
"descriptions": [
{
"lang": "en",
"text": "approval request test"
"text": "approval resquest test"
}
],
"request_user": false,
Expand Down Expand Up @@ -66,7 +66,7 @@ var listResponse = fmt.Sprintf(`
"descriptions": [
{
"lang": "en",
"text": "approval request test"
"text": "approval resquest test"
}
],
"request_user": false,
Expand Down Expand Up @@ -113,7 +113,7 @@ var firstApprovalRequest = ar.ApprovalRequest{
Descriptions: []ar.Description{
{
Lang: "en",
Text: "approval request test",
Text: "approval resquest test",
},
},
RequestUser: false,
Expand Down Expand Up @@ -144,7 +144,7 @@ var secondApprovalRequest = ar.ApprovalRequest{
Descriptions: []ar.Description{
{
Lang: "en",
Text: "approval request test",
Text: "approval resquest test",
},
},
RequestUser: false,
Expand Down Expand Up @@ -181,7 +181,7 @@ var getResponse = fmt.Sprintf(`
"descriptions": [
{
"lang": "en",
"text": "approval request test"
"text": "approval resquest test"
}
],
"request_user": false,
Expand Down
Loading

0 comments on commit 7da946b

Please sign in to comment.