|
44 | 44 |
|
45 | 45 | ACDatabaseRepresentation = map[string]interface{}{ |
46 | 46 | "db_split_threshold": acctest.Representation{RepType: acctest.Optional, Create: `8`}, |
| 47 | + "okv_end_point_group_name": acctest.Representation{RepType: acctest.Optional, Create: `DUMMY_OKV_EPG_GROUP`, Update: `DUMMY_OKV_EPG_GROUP_2`}, |
47 | 48 | "distribution_affinity": acctest.Representation{RepType: acctest.Optional, Create: `MINIMUM_DISTRIBUTION`}, |
48 | 49 | "net_services_architecture": acctest.Representation{RepType: acctest.Optional, Create: `DEDICATED`}, |
49 | 50 | "vm_failover_reservation": acctest.Representation{RepType: acctest.Optional, Create: `25`}, |
|
55 | 56 | "key_store_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_database_key_store.test_key_store.id}`}, |
56 | 57 | "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, |
57 | 58 | "db_unique_name": acctest.Representation{RepType: acctest.Optional, Create: acbDBName}, |
58 | | - "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, |
| 59 | + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "value"})}`, Update: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "updatedValue"})}`}, |
59 | 60 | "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, |
60 | 61 | "maintenance_window_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatabaseAutonomousContainerDatabaseMaintenanceWindowDetailsRepresentation}, |
61 | 62 | "service_level_agreement_type": acctest.Representation{RepType: acctest.Optional, Create: `STANDARD`}, |
|
76 | 77 | "key_store_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_database_key_store.test_key_store.id}`}, |
77 | 78 | "compartment_id": acctest.Representation{RepType: acctest.Optional, Create: `${var.compartment_id}`}, |
78 | 79 | "db_unique_name": acctest.Representation{RepType: acctest.Optional, Create: acbDBName}, |
79 | | - "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, |
| 80 | + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "value"})}`, Update: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "updatedValue"})}`}, |
80 | 81 | "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, |
81 | 82 | "maintenance_window_details": acctest.RepresentationGroup{RepType: acctest.Optional, Group: DatabaseAutonomousContainerDatabaseMaintenanceWindowDetailsRepresentation}, |
82 | 83 | "service_level_agreement_type": acctest.Representation{RepType: acctest.Optional, Create: `STANDARD`}, |
@@ -192,7 +193,7 @@ var ( |
192 | 193 | "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, |
193 | 194 | "display_name": acctest.Representation{RepType: acctest.Required, Create: `Key Store1`}, |
194 | 195 | "type_details": acctest.RepresentationGroup{RepType: acctest.Required, Group: DatabaseKeyStoreTypeDetailsRepresentation}, |
195 | | - "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}`, Update: `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}`}, |
| 196 | + "defined_tags": acctest.Representation{RepType: acctest.Optional, Create: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "value"})}`, Update: `${tomap({"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "updatedValue"})}`}, |
196 | 197 | "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, |
197 | 198 | "lifecycle": acctest.RepresentationGroup{RepType: acctest.Optional, Group: lifecycleGroupWithTagsIgnoreChanges}, |
198 | 199 | } |
@@ -380,7 +381,7 @@ func TestDatabaseExaccAutonomousContainerDatabaseFromAdsi_basic(t *testing.T) { |
380 | 381 |
|
381 | 382 | // verify resource import |
382 | 383 | { |
383 | | - Config: config + ExaccACDRequiredOnlyResource, |
| 384 | + Config: config + compartmentIdVariableStr + ExaccACDRequiredOnlyResource, |
384 | 385 | ImportState: true, |
385 | 386 | ImportStateVerify: true, |
386 | 387 | ImportStateVerifyIgnore: []string{ |
@@ -495,7 +496,7 @@ func TestDatabaseAutonomousContainerDatabaseFromAdsi_basic(t *testing.T) { |
495 | 496 |
|
496 | 497 | // verify resource import |
497 | 498 | { |
498 | | - Config: config + ACDRequiredOnlyResource, |
| 499 | + Config: config + compartmentIdVariableStr + ACDRequiredOnlyResource, |
499 | 500 | ImportState: true, |
500 | 501 | ImportStateVerify: true, |
501 | 502 | ImportStateVerifyIgnore: []string{ |
@@ -763,6 +764,7 @@ func TestDatabaseExaccAutonomousContainerDatabase_basic(t *testing.T) { |
763 | 764 | resource.TestCheckResourceAttr(resourceName, "distribution_affinity", "MINIMUM_DISTRIBUTION"), |
764 | 765 | resource.TestCheckResourceAttr(resourceName, "display_name", "containerdatabases2"), |
765 | 766 | resource.TestCheckResourceAttrSet(resourceName, "memory_per_oracle_compute_unit_in_gbs"), |
| 767 | + resource.TestCheckResourceAttr(resourceName, "okv_end_point_group_name", "DUMMY_OKV_EPG_GROUP"), |
766 | 768 | resource.TestCheckResourceAttr(resourceName, "freeform_tags.%", "1"), |
767 | 769 | resource.TestCheckResourceAttrSet(resourceName, "id"), |
768 | 770 | resource.TestCheckResourceAttrSet(resourceName, "key_store_id"), |
@@ -811,6 +813,7 @@ func TestDatabaseExaccAutonomousContainerDatabase_basic(t *testing.T) { |
811 | 813 | resource.TestCheckResourceAttr(resourceName, "backup_config.0.backup_destination_details.0.type", "NFS"), |
812 | 814 | resource.TestCheckResourceAttr(resourceName, "backup_config.0.backup_destination_details.0.vpc_user", "bkupUser1"), |
813 | 815 | resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), |
| 816 | + resource.TestCheckResourceAttr(resourceName, "okv_end_point_group_name", "DUMMY_OKV_EPG_GROUP_2"), |
814 | 817 | resource.TestCheckResourceAttr(resourceName, "db_split_threshold", "8"), |
815 | 818 | resource.TestCheckResourceAttr(resourceName, "db_unique_name", acbDBName), |
816 | 819 | resource.TestCheckResourceAttr(resourceName, "distribution_affinity", "MINIMUM_DISTRIBUTION"), |
@@ -941,7 +944,7 @@ func TestDatabaseExaccAutonomousContainerDatabase_basic(t *testing.T) { |
941 | 944 | }, |
942 | 945 | // verify resource import |
943 | 946 | { |
944 | | - Config: config + DatabaseAutonomousContainerDatabaseRequiredOnlyResource, |
| 947 | + Config: config + compartmentIdVariableStr + DatabaseAutonomousContainerDatabaseRequiredOnlyResource, |
945 | 948 | ImportState: true, |
946 | 949 | ImportStateVerify: true, |
947 | 950 | ImportStateVerifyIgnore: []string{ |
|
0 commit comments