Skip to content

Commit

Permalink
Rename provider
Browse files Browse the repository at this point in the history
  • Loading branch information
andreascreten committed Apr 2, 2023
1 parent 590a435 commit 19d8469
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/data-sources/forge_daemon/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
data "forge_daemon" "example" {
data "laravelforge_daemon" "example" {
id = "some-value"
server_id = "some-value"
}
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
provider "forge" {
provider "laravelforge" {
token = "API_TOKEN"
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/madewithlove/terraform-provider-forge
module github.com/madewithlove/terraform-provider-laravelforge

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions internal/provider/daemon_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func TestAccDaemonDataSource(t *testing.T) {
rnd := generateRandomResourceName()
name := "data.forge_daemon." + rnd
name := "data.laravelforge_daemon." + rnd

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -29,7 +29,7 @@ func TestAccDaemonDataSource(t *testing.T) {

func testAccDaemonDataSourceConfig(resourceName string) string {
return fmt.Sprintf(`
data "forge_daemon" "%[1]s" {
data "laravelforge_daemon" "%[1]s" {
id = "123"
server_id = "123"
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// CLI command executed to create a provider server to which the CLI can
// reattach.
var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
"forge": providerserver.NewProtocol6WithError(New("test")()),
"laravelforge": providerserver.NewProtocol6WithError(New("test")()),
}

func testAccPreCheck(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/resource_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func TestAccServerResource(t *testing.T) {
rnd := generateRandomResourceName()
name := "forge_server." + rnd
name := "laravelforge_server." + rnd

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -29,7 +29,7 @@ func TestAccServerResource(t *testing.T) {

func testServerConfig(resourceName string, platformName string) string {
return fmt.Sprintf(`
resource "forge_server" "%[1]s" {
resource "laravelforge_server" "%[1]s" {
platform = %[2]q
credential_id = 1
}
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"

"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/madewithlove/terraform-provider-forge/internal/provider"
"github.com/madewithlove/terraform-provider-laravelforge/internal/provider"
)

// Run "go generate" to format example terraform files and generate the docs for the registry/website
Expand Down Expand Up @@ -35,7 +35,7 @@ func main() {
flag.Parse()

opts := providerserver.ServeOpts{
Address: "registry.terraform.io/madewithlove/forge",
Address: "registry.terraform.io/madewithlove/laravelforge",
Debug: debug,
}

Expand Down

0 comments on commit 19d8469

Please sign in to comment.