@@ -15,11 +15,11 @@ import (
1515 "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
1616)
1717
18- type CosmosDbFleetsResource struct {}
18+ type CosmosDbFleetResource struct {}
1919
20- func TestAccCosmosDbFleets_basic (t * testing.T ) {
21- data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleets " , "test" )
22- r := CosmosDbFleetsResource {}
20+ func TestAccCosmosDbFleet_basic (t * testing.T ) {
21+ data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleet " , "test" )
22+ r := CosmosDbFleetResource {}
2323
2424 data .ResourceTest (t , r , []acceptance.TestStep {
2525 {
@@ -32,9 +32,9 @@ func TestAccCosmosDbFleets_basic(t *testing.T) {
3232 })
3333}
3434
35- func TestAccCosmosDbFleets_requiresImport (t * testing.T ) {
36- data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleets " , "test" )
37- r := CosmosDbFleetsResource {}
35+ func TestAccCosmosDbFleet_requiresImport (t * testing.T ) {
36+ data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleet " , "test" )
37+ r := CosmosDbFleetResource {}
3838
3939 data .ResourceTest (t , r , []acceptance.TestStep {
4040 {
@@ -47,9 +47,9 @@ func TestAccCosmosDbFleets_requiresImport(t *testing.T) {
4747 })
4848}
4949
50- func TestAccCosmosDbFleets_complete (t * testing.T ) {
51- data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleets " , "test" )
52- r := CosmosDbFleetsResource {}
50+ func TestAccCosmosDbFleet_complete (t * testing.T ) {
51+ data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleet " , "test" )
52+ r := CosmosDbFleetResource {}
5353
5454 data .ResourceTest (t , r , []acceptance.TestStep {
5555 {
@@ -62,9 +62,9 @@ func TestAccCosmosDbFleets_complete(t *testing.T) {
6262 })
6363}
6464
65- func TestAccCosmosDbFleets_update (t * testing.T ) {
66- data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleets " , "test" )
67- r := CosmosDbFleetsResource {}
65+ func TestAccCosmosDbFleet_update (t * testing.T ) {
66+ data := acceptance .BuildTestData (t , "azurerm_cosmosdb_fleet " , "test" )
67+ r := CosmosDbFleetResource {}
6868
6969 data .ResourceTestIgnoreRecreate (t , r , []acceptance.TestStep {
7070 {
@@ -89,7 +89,7 @@ func TestAccCosmosDbFleets_update(t *testing.T) {
8989 })
9090}
9191
92- func (CosmosDbFleetsResource ) Exists (ctx context.Context , client * clients.Client , state * pluginsdk.InstanceState ) (* bool , error ) {
92+ func (CosmosDbFleetResource ) Exists (ctx context.Context , client * clients.Client , state * pluginsdk.InstanceState ) (* bool , error ) {
9393 id , err := fleets .ParseFleetID (state .ID )
9494 if err != nil {
9595 return nil , err
@@ -103,7 +103,7 @@ func (CosmosDbFleetsResource) Exists(ctx context.Context, client *clients.Client
103103 return pointer .To (resp .Model != nil ), nil
104104}
105105
106- func (CosmosDbFleetsResource ) template (data acceptance.TestData ) string {
106+ func (CosmosDbFleetResource ) template (data acceptance.TestData ) string {
107107 return fmt .Sprintf (`
108108provider "azurerm" {
109109 features {}
@@ -116,35 +116,35 @@ resource "azurerm_resource_group" "test" {
116116` , data .RandomInteger , data .Locations .Primary )
117117}
118118
119- func (r CosmosDbFleetsResource ) basic (data acceptance.TestData ) string {
119+ func (r CosmosDbFleetResource ) basic (data acceptance.TestData ) string {
120120 return fmt .Sprintf (`
121121%s
122122
123- resource "azurerm_cosmosdb_fleets " "test" {
123+ resource "azurerm_cosmosdb_fleet " "test" {
124124 name = "acctest-cosfleets-%d"
125125 resource_group_name = azurerm_resource_group.test.name
126126 location = azurerm_resource_group.test.location
127127}
128128` , r .template (data ), data .RandomInteger )
129129}
130130
131- func (r CosmosDbFleetsResource ) requiresImport (data acceptance.TestData ) string {
131+ func (r CosmosDbFleetResource ) requiresImport (data acceptance.TestData ) string {
132132 return fmt .Sprintf (`
133133%s
134134
135- resource "azurerm_cosmosdb_fleets " "import" {
136- name = azurerm_cosmosdb_fleets .test.name
137- resource_group_name = azurerm_cosmosdb_fleets .test.resource_group_name
138- location = azurerm_cosmosdb_fleets .test.location
135+ resource "azurerm_cosmosdb_fleet " "import" {
136+ name = azurerm_cosmosdb_fleet .test.name
137+ resource_group_name = azurerm_cosmosdb_fleet .test.resource_group_name
138+ location = azurerm_cosmosdb_fleet .test.location
139139}
140140` , r .basic (data ))
141141}
142142
143- func (r CosmosDbFleetsResource ) complete (data acceptance.TestData ) string {
143+ func (r CosmosDbFleetResource ) complete (data acceptance.TestData ) string {
144144 return fmt .Sprintf (`
145145%s
146146
147- resource "azurerm_cosmosdb_fleets " "test" {
147+ resource "azurerm_cosmosdb_fleet " "test" {
148148 name = "acctest-cosfleets-%d"
149149 resource_group_name = azurerm_resource_group.test.name
150150 location = azurerm_resource_group.test.location
0 commit comments