Skip to content

Commit fa8434f

Browse files
jufabianganbaras
authored andcommitted
Bug Fix - TERSI-7599: 08/11-NewDev - UDX fixes only to allow ENTERPRISE_EDITION_EXTREME_PERFORMANCE
1 parent 5608ee2 commit fa8434f

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

examples/database/db_systems/db_vm/storage_performance/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ variable "shape_type" {
3535
}
3636

3737
variable "database_edition" {
38-
default = "ENTERPRISE_EDITION_DEVELOPER"
38+
default = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"
3939
}

internal/integrationtest/database_db_system_storage_performance_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ var (
2626
"shape_type": acctest.Representation{RepType: acctest.Required, Create: `AMPERE_FLEX_A1`},
2727
"database_edition": acctest.Representation{RepType: acctest.Required, Create: `ENTERPRISE_EDITION_DEVELOPER`},
2828
}
29+
30+
dbSystemStoragePerformanceDataSourceRepresentationWithEEEP = map[string]interface{}{
31+
"storage_management": acctest.Representation{RepType: acctest.Required, Create: `LVM`},
32+
"shape_type": acctest.Representation{RepType: acctest.Required, Create: `AMPERE_FLEX_A1`},
33+
"database_edition": acctest.Representation{RepType: acctest.Required, Create: `ENTERPRISE_EDITION_EXTREME_PERFORMANCE`},
34+
}
2935
)
3036

3137
// issue-routing-tag: database/default
@@ -70,5 +76,20 @@ func TestDatabaseDbSystemStoragePerformanceResource_basic(t *testing.T) {
7076
resource.TestCheckResourceAttr(datasourceName, "database_edition", "ENTERPRISE_EDITION_DEVELOPER"),
7177
),
7278
},
79+
80+
// verify datasource with ENTERPRISE_EDITION_EXTREME_PERFORMANCE
81+
{
82+
Config: config +
83+
acctest.GenerateDataSourceFromRepresentationMap("oci_database_db_system_storage_performances", "test_db_system_storage_performances", acctest.Required, acctest.Create, dbSystemStoragePerformanceDataSourceRepresentationWithEEEP),
84+
Check: acctest.ComposeAggregateTestCheckFuncWrapper(
85+
resource.TestCheckResourceAttrSet(datasourceName, "db_system_storage_performances.#"),
86+
resource.TestCheckResourceAttr(datasourceName, "db_system_storage_performances.#", "1"),
87+
resource.TestCheckResourceAttrSet(datasourceName, "db_system_storage_performances.0.data_storage_performance_list.#"),
88+
resource.TestCheckResourceAttrSet(datasourceName, "db_system_storage_performances.0.reco_storage_performance_list.#"),
89+
resource.TestCheckResourceAttr(datasourceName, "db_system_storage_performances.0.shape_type", "AMPERE_FLEX_A1"),
90+
resource.TestCheckResourceAttrSet(datasourceName, "database_edition"),
91+
resource.TestCheckResourceAttr(datasourceName, "database_edition", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"),
92+
),
93+
},
7394
})
7495
}

website/docs/d/database_db_system_storage_performances.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ data "oci_database_db_system_storage_performances" "test_db_system_storage_perfo
2424
shape_type = var.db_system_storage_performance_shape_type
2525
2626
#Optional
27-
daatabase_edition = var.db_system_storage_performance_database_edition
27+
database_edition = var.db_system_storage_performance_database_edition
2828
2929
#Optional
3030
compartment_id = var.compartment_id
@@ -43,7 +43,7 @@ The following arguments are supported:
4343
* STANDARD_EDITION
4444
* ENTERPRISE_EDITION
4545
* ENTERPRISE_EDITION_HIGH_PERFORMANCE
46-
* ENTERPRISE_EDITION_EXTREME
46+
* ENTERPRISE_EDITION_EXTREME_PERFORMANCE
4747
* ENTERPRISE_EDITION_DEVELOPER
4848
* `compartment_id` - (Optional) Optional. The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
4949

0 commit comments

Comments
 (0)