@@ -44,15 +44,17 @@ var (
4444 }
4545
4646 CoreIpv6Representation = map [string ]interface {}{
47- "vnic_id" : acctest.Representation {RepType : acctest .Required , Create : `${lookup(data.oci_core_vnic_attachments.t.vnic_attachments[0], "vnic_id")}` },
48- "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")}` },
49- "display_name" : acctest.Representation {RepType : acctest .Optional , Create : `displayName` , Update : `displayName2` },
50- "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"Department" : "Finance" }, Update : map [string ]string {"Department" : "Accounting" }},
51- "ip_address" : acctest.Representation {RepType : acctest .Optional , Create : `${substr(oci_core_vcn.test_vcn.ipv6cidr_blocks[0], 0, length(oci_core_vcn.test_vcn.ipv6cidr_blocks[0]) - 4)}5901:cede:a617:8bba` },
47+ "route_table_id" : acctest.Representation {RepType : acctest .Optional , Create : `${oci_core_route_table.test_route_table.id}` },
48+ "vnic_id" : acctest.Representation {RepType : acctest .Required , Create : `${lookup(data.oci_core_vnic_attachments.t.vnic_attachments[0], "vnic_id")}` },
49+ "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")}` },
50+ "display_name" : acctest.Representation {RepType : acctest .Optional , Create : `displayName` , Update : `displayName2` },
51+ "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"Department" : "Finance" }, Update : map [string ]string {"Department" : "Accounting" }},
52+ "ip_address" : acctest.Representation {RepType : acctest .Optional , Create : `${substr(oci_core_vcn.test_vcn.ipv6cidr_blocks[0], 0, length(oci_core_vcn.test_vcn.ipv6cidr_blocks[0]) - 4)}5901:cede:a617:8bba` },
5253 }
5354
5455 CoreIpv6ResourceDependencies = utils .OciImageIdsVariable +
5556 acctest .GenerateResourceFromRepresentationMap ("oci_core_instance" , "test_instance" , acctest .Required , acctest .Create , CoreInstanceRepresentation ) +
57+ acctest .GenerateResourceFromRepresentationMap ("oci_core_route_table" , "test_route_table" , acctest .Required , acctest .Create , CoreRouteTableRepresentation ) +
5658 acctest .GenerateResourceFromRepresentationMap ("oci_core_subnet" , "test_subnet" , acctest .Optional , acctest .Create , acctest .RepresentationCopyWithNewProperties (CoreSubnetRepresentation , map [string ]interface {}{
5759 "dns_label" : acctest.Representation {RepType : acctest .Required , Create : `dnslabel` },
5860 "ipv6cidr_block" : acctest.Representation {RepType : acctest .Optional , Create : `${substr(oci_core_vcn.test_vcn.ipv6cidr_blocks[0], 0, length(oci_core_vcn.test_vcn.ipv6cidr_blocks[0]) - 2)}${64}` },
@@ -119,6 +121,7 @@ func TestCoreIpv6Resource_basic(t *testing.T) {
119121 resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName" ),
120122 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
121123 resource .TestCheckResourceAttrSet (resourceName , "id" ),
124+ resource .TestCheckResourceAttrSet (resourceName , "route_table_id" ),
122125 resource .TestCheckResourceAttrSet (resourceName , "ip_address" ),
123126 resource .TestCheckResourceAttrSet (resourceName , "state" ),
124127 resource .TestCheckResourceAttrSet (resourceName , "subnet_id" ),
@@ -146,6 +149,7 @@ func TestCoreIpv6Resource_basic(t *testing.T) {
146149 resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName2" ),
147150 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
148151 resource .TestCheckResourceAttrSet (resourceName , "id" ),
152+ resource .TestCheckResourceAttrSet (resourceName , "route_table_id" ),
149153 resource .TestCheckResourceAttrSet (resourceName , "ip_address" ),
150154 resource .TestCheckResourceAttrSet (resourceName , "state" ),
151155 resource .TestCheckResourceAttrSet (resourceName , "subnet_id" ),
@@ -174,6 +178,7 @@ func TestCoreIpv6Resource_basic(t *testing.T) {
174178 resource .TestCheckResourceAttr (datasourceName , "ipv6s.0.display_name" , "displayName2" ),
175179 resource .TestCheckResourceAttr (datasourceName , "ipv6s.0.freeform_tags.%" , "1" ),
176180 resource .TestCheckResourceAttrSet (datasourceName , "ipv6s.0.id" ),
181+ resource .TestCheckResourceAttrSet (datasourceName , "ipv6s.0.route_table_id" ),
177182 resource .TestCheckResourceAttrSet (datasourceName , "ipv6s.0.ip_address" ),
178183 resource .TestCheckResourceAttrSet (datasourceName , "ipv6s.0.subnet_id" ),
179184 resource .TestCheckResourceAttrSet (datasourceName , "ipv6s.0.time_created" ),
@@ -193,6 +198,7 @@ func TestCoreIpv6Resource_basic(t *testing.T) {
193198 resource .TestCheckResourceAttrSet (singularDatasourceName , "id" ),
194199 resource .TestCheckResourceAttrSet (singularDatasourceName , "ip_address" ),
195200 resource .TestCheckResourceAttrSet (singularDatasourceName , "time_created" ),
201+ resource .TestCheckResourceAttrSet (singularDatasourceName , "route_table_id" ),
196202 ),
197203 },
198204 // verify resource import
0 commit comments