Skip to content

Commit

Permalink
Change domain from .so -> .io. (#12)
Browse files Browse the repository at this point in the history
This PR migrates the Abbey TF Provider from .so to .io.

- Change module path
- Update tests
  • Loading branch information
jeffchao authored May 30, 2023
2 parents 12641f4 + 489f6cf commit e7cb8f7
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module abbey.so/terraform-provider-abbey
module abbey.io/terraform-provider-abbey

go 1.20

Expand Down
8 changes: 4 additions & 4 deletions internal/abbey/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/types"

abbeyprovider "abbey.so/terraform-provider-abbey/internal/abbey/provider"
grantkitresource "abbey.so/terraform-provider-abbey/internal/abbey/resources/grantkit"
identityresource "abbey.so/terraform-provider-abbey/internal/abbey/resources/identity"
abbeyprovider "abbey.io/terraform-provider-abbey/internal/abbey/provider"
grantkitresource "abbey.io/terraform-provider-abbey/internal/abbey/resources/grantkit"
identityresource "abbey.io/terraform-provider-abbey/internal/abbey/resources/identity"
)

const (
Expand Down Expand Up @@ -61,7 +61,7 @@ func (p *provider_) Schema(
Optional: true,
Sensitive: false,
Description: "",
MarkdownDescription: "The Abbey API host. Defaults to `https://api.abbey.so`.",
MarkdownDescription: "The Abbey API host. Defaults to `https://api.abbey.io`.",
DeprecationMessage: "",
Validators: nil,
},
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

const (
DefaultHost = "https://api.abbey.so"
DefaultHost = "https://api.abbey.io"
TypePrefix = "abbey"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/abbey/resources/grantkit/grant_kit.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
. "github.com/moznion/go-optional"

"abbey.so/terraform-provider-abbey/internal/abbey/entity"
"abbey.so/terraform-provider-abbey/internal/abbey/resources/requestable"
"abbey.io/terraform-provider-abbey/internal/abbey/entity"
"abbey.io/terraform-provider-abbey/internal/abbey/resources/requestable"
)

type Model struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/grantkit/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"

"abbey.so/terraform-provider-abbey/internal/abbey/resources/requestable"
"abbey.io/terraform-provider-abbey/internal/abbey/resources/requestable"
)

type Output struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/grantkit/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
. "github.com/moznion/go-optional"

"abbey.so/terraform-provider-abbey/internal/abbey/entity"
"abbey.io/terraform-provider-abbey/internal/abbey/entity"
)

type (
Expand Down
6 changes: 3 additions & 3 deletions internal/abbey/resources/grantkit/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"

"abbey.so/terraform-provider-abbey/internal/abbey/provider"
"abbey.so/terraform-provider-abbey/internal/abbey/resources/requestable"
abbeyvalidator "abbey.so/terraform-provider-abbey/validator"
"abbey.io/terraform-provider-abbey/internal/abbey/provider"
"abbey.io/terraform-provider-abbey/internal/abbey/resources/requestable"
abbeyvalidator "abbey.io/terraform-provider-abbey/validator"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions internal/abbey/resources/grantkit/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import (
"os"
"testing"

"abbey.io/terraform-provider-abbey/internal/abbey"
abbeyprovider "abbey.io/terraform-provider-abbey/internal/abbey/provider"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"

"github.com/hashicorp/terraform-plugin-testing/terraform"
. "github.com/onsi/gomega"

"abbey.so/terraform-provider-abbey/internal/abbey"
abbeyprovider "abbey.so/terraform-provider-abbey/internal/abbey/provider"
)

// var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
Expand Down
4 changes: 2 additions & 2 deletions internal/abbey/resources/grantkit/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"

"abbey.so/terraform-provider-abbey/internal/abbey/entity"
"abbey.so/terraform-provider-abbey/internal/abbey/resources/requestable"
"abbey.io/terraform-provider-abbey/internal/abbey/entity"
"abbey.io/terraform-provider-abbey/internal/abbey/resources/requestable"
)

type Step struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/grantkit/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"

"abbey.so/terraform-provider-abbey/internal/abbey/resources/requestable"
"abbey.io/terraform-provider-abbey/internal/abbey/resources/requestable"
)

type Workflow struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/identity/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"

"abbey.so/terraform-provider-abbey/internal/abbey/provider"
"abbey.io/terraform-provider-abbey/internal/abbey/provider"
)

func New() Resource {
Expand Down
4 changes: 2 additions & 2 deletions internal/abbey/resources/identity/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"

"abbey.so/terraform-provider-abbey/internal/abbey"
"abbey.so/terraform-provider-abbey/internal/abbey/provider"
"abbey.io/terraform-provider-abbey/internal/abbey"
"abbey.io/terraform-provider-abbey/internal/abbey/provider"
)

var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/requestable/grant_tf.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
"github.com/hashicorp/terraform-plugin-go/tftypes"

"abbey.so/terraform-provider-abbey/internal/abbey/value"
"abbey.io/terraform-provider-abbey/internal/abbey/value"
)

type GrantTf struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/requestable/requestable.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
. "github.com/moznion/go-optional"

. "abbey.so/terraform-provider-abbey/internal/abbey/entity"
. "abbey.io/terraform-provider-abbey/internal/abbey/entity"
)

type Model struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/requestable/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"

"abbey.so/terraform-provider-abbey/internal/abbey/entity"
"abbey.io/terraform-provider-abbey/internal/abbey/entity"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/abbey/resources/requestable/workflow_tf.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
"github.com/hashicorp/terraform-plugin-go/tftypes"

"abbey.so/terraform-provider-abbey/internal/abbey/value"
"abbey.io/terraform-provider-abbey/internal/abbey/value"
)

var invalidWorkflow Workflow
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/hashicorp/terraform-plugin-framework/providerserver"

"abbey.so/terraform-provider-abbey/internal/abbey"
"abbey.so/terraform-provider-abbey/internal/abbey/provider"
"abbey.io/terraform-provider-abbey/internal/abbey"
"abbey.io/terraform-provider-abbey/internal/abbey/provider"
)

// GoReleaser sets the version in compiled binaries.
Expand Down

0 comments on commit e7cb8f7

Please sign in to comment.