|
26 | 26 | "shape_type": acctest.Representation{RepType: acctest.Required, Create: `AMPERE_FLEX_A1`}, |
27 | 27 | "database_edition": acctest.Representation{RepType: acctest.Required, Create: `ENTERPRISE_EDITION_DEVELOPER`}, |
28 | 28 | } |
| 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 | + } |
29 | 35 | ) |
30 | 36 |
|
31 | 37 | // issue-routing-tag: database/default |
@@ -70,5 +76,20 @@ func TestDatabaseDbSystemStoragePerformanceResource_basic(t *testing.T) { |
70 | 76 | resource.TestCheckResourceAttr(datasourceName, "database_edition", "ENTERPRISE_EDITION_DEVELOPER"), |
71 | 77 | ), |
72 | 78 | }, |
| 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 | + }, |
73 | 94 | }) |
74 | 95 | } |
0 commit comments