Skip to content

Commit

Permalink
chore: changed the resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
feliperezende-barbosa committed Dec 11, 2024
1 parent e8b7e71 commit 010ba49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,5 @@ func (c CognitiveRaiBlocklistResource) Read() sdk.ResourceFunc {
}

func (c CognitiveRaiBlocklistResource) ResourceType() string {
return "azurerm_cognitive_rai_blocklist"
return "azurerm_cognitive_account_rai_blocklist"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAccCognitiveRaiBlocklistSequential(t *testing.T) {
}

func TestAccCognitiveRaiBlocklist_basic(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_cognitive_rai_blocklist", "test")
data := acceptance.BuildTestData(t, "azurerm_cognitive_account_rai_blocklist", "test")
tRaiBlocklist := CognitiveRaiBlocklistTestResource{}

data.ResourceSequentialTest(t, tRaiBlocklist, []acceptance.TestStep{
Expand All @@ -43,7 +43,7 @@ func TestAccCognitiveRaiBlocklist_basic(t *testing.T) {
}

func TestAccCognitiveRaiBlocklist_requiresImport(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_cognitive_rai_blocklist", "test")
data := acceptance.BuildTestData(t, "azurerm_cognitive_account_rai_blocklist", "test")
tRaiBlocklist := CognitiveRaiBlocklistTestResource{}

data.ResourceSequentialTest(t, tRaiBlocklist, []acceptance.TestStep{
Expand All @@ -58,7 +58,7 @@ func TestAccCognitiveRaiBlocklist_requiresImport(t *testing.T) {
}

func TestAccCognitiveRaiBlocklist_complete(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_cognitive_rai_blocklist", "test")
data := acceptance.BuildTestData(t, "azurerm_cognitive_account_rai_blocklist", "test")
tRaiBlocklist := CognitiveRaiBlocklistTestResource{}

data.ResourceSequentialTest(t, tRaiBlocklist, []acceptance.TestStep{
Expand All @@ -73,7 +73,7 @@ func TestAccCognitiveRaiBlocklist_complete(t *testing.T) {
}

func TestAccCognitiveRaiBlocklist_update(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_cognitive_rai_blocklist", "test")
data := acceptance.BuildTestData(t, "azurerm_cognitive_account_rai_blocklist", "test")
tRaiBlocklist := CognitiveRaiBlocklistTestResource{}

data.ResourceSequentialTest(t, tRaiBlocklist, []acceptance.TestStep{
Expand Down Expand Up @@ -136,7 +136,7 @@ func (c CognitiveRaiBlocklistTestResource) basicConfig(data acceptance.TestData)
template := c.template(data)
return fmt.Sprintf(`
%s
resource "azurerm_cognitive_rai_blocklist" "test" {
resource "azurerm_cognitive_account_rai_blocklist" "test" {
name = "acctest-crb-%d"
cognitive_account_id = azurerm_cognitive_account.test.id
description = "Acceptance test data new azurerm resource"
Expand All @@ -148,8 +148,8 @@ func (c CognitiveRaiBlocklistTestResource) requiresImportConfig(data acceptance.
config := c.basicConfig(data)
return fmt.Sprintf(`
%s
resource "azurerm_cognitive_rai_blocklist" "import" {
name = azurerm_cognitive_rai_blocklist.test.name
resource "azurerm_cognitive_account_rai_blocklist" "import" {
name = azurerm_cognitive_account_rai_blocklist.test.name
cognitive_account_id = azurerm_cognitive_account.test.id
description = "Acceptance test data new azurerm resource"
}
Expand All @@ -160,7 +160,7 @@ func (c CognitiveRaiBlocklistTestResource) completeConfig(data acceptance.TestDa
template := c.template(data)
return fmt.Sprintf(`
%s
resource "azurerm_cognitive_rai_blocklist" "test" {
resource "azurerm_cognitive_account_rai_blocklist" "test" {
name = "acctest-crb-%d"
cognitive_account_id = azurerm_cognitive_account.test.id
description = "Acceptance test data new azurerm resource"
Expand Down

0 comments on commit 010ba49

Please sign in to comment.