Skip to content

Commit

Permalink
Rename resource to exoscale_dbaas_DBTYPE_user
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrondier committed Dec 18, 2024
1 parent b525f8f commit 61fd030
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func testResourceKafka(t *testing.T) {
Version: "3.7",
}

userFullResourceName := "exoscale_database_kafka_user.test_user"
userFullResourceName := "exoscale_dbaas_kafka_user.test_user"
userDataBase := TemplateModelKafkaUser{
ResourceName: "test_user",
Username: "foo",
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func testResourceMysql(t *testing.T) {
Version: "8",
}

userFullResourceName := "exoscale_database_mysql_user.test_user"
userFullResourceName := "exoscale_dbaas_mysql_user.test_user"
userDataBase := TemplateModelMysqlUser{
ResourceName: "test_user",
Username: "foo",
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_opensearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func testResourceOpensearch(t *testing.T) {
Version: "1",
}

userFullResourceName := "exoscale_database_opensearch_user.test_user"
userFullResourceName := "exoscale_dbaas_opensearch_user.test_user"
userDataBase := TemplateModelOpensearchUser{
ResourceName: "test_user",
Username: "foo",
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_pg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func testResourcePg(t *testing.T) {
Version: "13",
}

userFullResourceName := "exoscale_database_pg_user.test_user"
userFullResourceName := "exoscale_dbaas_pg_user.test_user"
userDataBase := TemplateModelPgUser{
ResourceName: "test_user",
Username: "foo",
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_user_kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (r *KafkaUserResource) Configure(ctx context.Context, req resource.Configur
}

func (r *KafkaUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_database_kafka_user"
resp.TypeName = req.ProviderTypeName + "_dbaas_kafka_user"
}

func (r *KafkaUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_user_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (r *MysqlUserResource) Configure(ctx context.Context, req resource.Configur
}

func (r *MysqlUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_database_mysql_user"
resp.TypeName = req.ProviderTypeName + "_dbaas_mysql_user"
}

func (r *MysqlUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_user_opensearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *OpensearchUserResource) Configure(ctx context.Context, req resource.Con
}

func (r *OpensearchUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_database_opensearch_user"
resp.TypeName = req.ProviderTypeName + "_dbaas_opensearch_user"
}

func (r *OpensearchUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/resource_user_pg.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (r *PGUserResource) Configure(ctx context.Context, req resource.ConfigureRe
}

func (r *PGUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_database_pg_user"
resp.TypeName = req.ProviderTypeName + "_dbaas_pg_user"
}

func (r *PGUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/testdata/resource_user_kafka.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "exoscale_database_kafka_user" {{ .ResourceName }} {
resource "exoscale_dbaas_kafka_user" {{ .ResourceName }} {
username = "{{ .Username }}"
service = {{ .Service }}
zone = "{{ .Zone }}"
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/testdata/resource_user_mysql.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "exoscale_database_mysql_user" {{ .ResourceName }} {
resource "exoscale_dbaas_mysql_user" {{ .ResourceName }} {
username = "{{ .Username }}"
service = {{ .Service }}
zone = "{{ .Zone }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "exoscale_database_opensearch_user" {{ .ResourceName }} {
resource "exoscale_dbaas_opensearch_user" {{ .ResourceName }} {
username = "{{ .Username }}"
service = {{ .Service }}
zone = "{{ .Zone }}"
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/database/testdata/resource_user_pg.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "exoscale_database_pg_user" {{ .ResourceName }} {
resource "exoscale_dbaas_pg_user" {{ .ResourceName }} {
username = "{{ .Username }}"
service = {{ .Service }}
zone = "{{ .Zone }}"
Expand Down

0 comments on commit 61fd030

Please sign in to comment.