|
48 | 48 | CoreVcnRepresentation = map[string]interface{}{ |
49 | 49 | "cidr_block": acctest.Representation{RepType: acctest.Required, Create: `10.0.0.0/16`}, |
50 | 50 | "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, |
51 | | - "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")}`}, |
| 51 | + "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"})}`}, |
52 | 52 | "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, |
53 | 53 | "dns_label": acctest.Representation{RepType: acctest.Optional, Create: `dnslabel`}, |
54 | 54 | "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, |
|
61 | 61 | "is_ipv6enabled": acctest.Representation{RepType: acctest.Required, Create: `true`}, |
62 | 62 | "ipv6private_cidr_blocks": acctest.Representation{RepType: acctest.Required, Create: []string{`fc00:1000::/56`}}, |
63 | 63 | "compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`}, |
64 | | - "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")}`}, |
| 64 | + "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"})}`}, |
65 | 65 | "display_name": acctest.Representation{RepType: acctest.Optional, Create: `displayName`, Update: `displayName2`}, |
66 | 66 | "dns_label": acctest.Representation{RepType: acctest.Optional, Create: `dnslabel`}, |
67 | 67 | "freeform_tags": acctest.Representation{RepType: acctest.Optional, Create: map[string]string{"Department": "Finance"}, Update: map[string]string{"Department": "Accounting"}}, |
@@ -103,7 +103,7 @@ func TestCoreVcnResource_basic(t *testing.T) { |
103 | 103 | Check: acctest.ComposeAggregateTestCheckFuncWrapper( |
104 | 104 | resource.TestCheckResourceAttr(resourceName, "cidr_block", "10.0.0.0/16"), |
105 | 105 | resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), |
106 | | - |
| 106 | + resource.TestCheckResourceAttr(resourceName, "is_ipv6enabled", "false"), |
107 | 107 | func(s *terraform.State) (err error) { |
108 | 108 | resId, err = acctest.FromInstanceState(s, resourceName, "id") |
109 | 109 | return err |
|
0 commit comments