hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.61k stars 4.65k forks source link

`postgresql`: fix replace acctests #27981

Open wuxu92 opened 1 week ago

wuxu92 commented 1 week ago

Community Note

Description

To fix these tests:

=== CONT  TestAccPostgresqlFlexibleServer_recreateWithLowerStorageMb
    testcase.go:173: Step 4/6 error: Pre-apply plan check(s) failed:
        'azurerm_postgresql_flexible_server.test' - expected action to not be Replace, path: [[name]]
--- FAIL: TestAccPostgresqlFlexibleServer_recreateWithLowerStorageMb (401.14s)

=== CONT  TestAccPostgreSQLServer_updated
    testcase.go:173: Step 4/12 error: Pre-apply plan check(s) failed:
        'azurerm_postgresql_server.test' - expected action to not be Replace, path: [[infrastructure_encryption_enabled] [geo_redundant_backup_enabled]]
--- FAIL: TestAccPostgreSQLServer_updated (262.81s)

=== CONT  TestAccPostgreSQLServer_updateSKU
    testcase.go:173: Step 4/9 error: Pre-apply plan check(s) failed:
        'azurerm_postgresql_server.test' - expected action to not be Replace, path: [[sku_name]]
--- FAIL: TestAccPostgreSQLServer_updateSKU (321.31s)

image