Skip to content

Commit

Permalink
Fix/materia kv
Browse files Browse the repository at this point in the history
Update Materia KV branding
  • Loading branch information
davlgd authored and miton18 committed Jun 10, 2024
1 parent bde99bb commit 00264a7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "clevercloud_materiadb_kv Resource - terraform-provider-clevercloud"
page_title: "clevercloud_materia_kv Resource - terraform-provider-clevercloud"
subcategory: ""
description: |-
Manage MateriaDB KV databases
Manage Materia KV databases
---

# clevercloud_materiadb_kv (Resource)
# clevercloud_materia_kv (Resource)

Manage MateriaDB KV databases
Manage Materia KV databases



Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/materiakv/resource_materiakv.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ func NewResourceMateriaKV() resource.Resource {
}

func (r *ResourceMateriaKV) Metadata(ctx context.Context, req resource.MetadataRequest, res *resource.MetadataResponse) {
res.TypeName = req.ProviderTypeName + "_materiadb_kv"
res.TypeName = req.ProviderTypeName + "_materia_kv"
}
2 changes: 1 addition & 1 deletion pkg/resources/materiakv/resource_materiakv.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Manage MateriaDB KV databases
Manage Materia KV databases
2 changes: 1 addition & 1 deletion pkg/resources/materiakv/resource_materiakv_crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *ResourceMateriaKV) Create(ctx context.Context, req resource.CreateReque

kvInfoRes := tmp.GetMateriaKV(ctx, r.cc, r.org, kv.ID.ValueString())
if kvInfoRes.HasError() {
resp.Diagnostics.AddError("failed to get materiadb connection infos", kvInfoRes.Error().Error())
resp.Diagnostics.AddError("failed to get materia kv connection infos", kvInfoRes.Error().Error())
return
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/resources/materiakv/resource_materiakv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ var protoV6Provider = map[string]func() (tfprotov6.ProviderServer, error){
func TestAccMateriaKV_basic(t *testing.T) {
ctx := context.Background()
rName := fmt.Sprintf("tf-test-kv-%d", time.Now().UnixMilli())
fullName := fmt.Sprintf("clevercloud_materiadb_kv.%s", rName)
fullName := fmt.Sprintf("clevercloud_materia_kv.%s", rName)
cc := client.New(client.WithAutoOauthConfig())
org := os.Getenv("ORGANISATION")
providerBlock := helper.NewProvider("clevercloud").SetOrganisation(org).String()
materiakvBlock := helper.NewRessource("clevercloud_materiadb_kv", rName).SetOneValue("name", rName).String()
materiakvBlock := helper.NewRessource("clevercloud_materia_kv", rName).SetOneValue("name", rName).String()

resource.Test(t, resource.TestCase{
PreCheck: func() {
Expand Down

0 comments on commit 00264a7

Please sign in to comment.