-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
…ng & user_profile) Bumped API version from 2022-08-01 to 2023-04-01
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ import ( | |
"fmt" | ||
"testing" | ||
|
||
"github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxdeployment" | ||
"github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2023-04-01/nginxdeployment" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/clients" | ||
|
@@ -39,6 +39,8 @@ func TestAccNginxDeployment_basic(t *testing.T) { | |
Config: r.basic(data), | ||
Check: acceptance.ComposeTestCheckFunc( | ||
check.That(data.ResourceName).ExistsInAzure(r), | ||
check.That(data.ResourceName).Key("scaling").HasValue("10"), | ||
check.That(data.ResourceName).Key("user_profile").Exists(), | ||
), | ||
}, | ||
data.ImportStep(), | ||
|
@@ -84,6 +86,8 @@ func (a DeploymentResource) basic(data acceptance.TestData) string { | |
return fmt.Sprintf(` | ||
%s | ||
resource "azurerm_nginx_deployment" "test" { | ||
|
@@ -100,6 +104,15 @@ resource "azurerm_nginx_deployment" "test" { | |
network_interface { | ||
subnet_id = azurerm_subnet.test.id | ||
} | ||
scaling { | ||
capacity = 10 | ||
} | ||
user_profile { | ||
preferred_email = "[email protected]" | ||
} | ||
tags = { | ||
foo = "bar" | ||
} | ||
|
@@ -111,6 +124,8 @@ func (a DeploymentResource) update(data acceptance.TestData) string { | |
return fmt.Sprintf(` | ||
%s | ||
resource "azurerm_nginx_deployment" "test" { | ||
|
@@ -128,6 +143,14 @@ resource "azurerm_nginx_deployment" "test" { | |
subnet_id = azurerm_subnet.test.id | ||
} | ||
scaling { | ||
capacity = 20 | ||
} | ||
user_profile { | ||
preferred_email = "[email protected]" | ||
} | ||
tags = { | ||
foo = "bar2" | ||
} | ||
|
@@ -139,6 +162,8 @@ func (a DeploymentResource) identityUser(data acceptance.TestData) string { | |
return fmt.Sprintf(` | ||
%s | ||
resource "azurerm_user_assigned_identity" "test" { | ||
|
@@ -165,6 +190,10 @@ resource "azurerm_nginx_deployment" "test" { | |
network_interface { | ||
subnet_id = azurerm_subnet.test.id | ||
} | ||
scaling { | ||
capacity = 10 | ||
} | ||
} | ||
`, a.template(data), data.RandomInteger) | ||
} | ||
|
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.