6161 "worker_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodesOdhWorkerRepresentation },
6262 "bootstrap_script_url" : acctest.Representation {RepType : acctest .Optional , Create : `${var.bootstrap_script_url}` },
6363 "compute_only_worker_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodeFlexShapeRepresentation },
64+ "edge_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodeFlexShapeRepresentation },
6465
6566 "is_cloud_sql_configured" : acctest.Representation {RepType : acctest .Optional , Create : `false` },
6667 "kms_key_id" : acctest.Representation {RepType : acctest .Optional , Create : `${var.kms_key_id}` , Update : `${var.kms_key_id_for_update}` },
@@ -78,15 +79,17 @@ var (
7879 "master_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodesOdhMasterRepresentation },
7980 "util_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodesOdhUtilRepresentation },
8081 "compute_only_worker_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodeFlexShapeRepresentation },
82+ "edge_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodeFlexShapeRepresentation },
8183 })
8284
8385 bdsInstanceOdhWithRegularComputeAndFlexMasterUtilRepresentation = acctest .RepresentationCopyWithNewProperties (bdsInstanceOdhRepresentation ,
8486 map [string ]interface {}{
8587 "compute_only_worker_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodesOdhUtilRepresentation }, // Regular util shape representation usable for compute worker
88+ "edge_node" : acctest.RepresentationGroup {RepType : acctest .Required , Group : bdsInstanceNodesOdhUtilRepresentation },
8689 })
8790
8891 bdsInstanceNodesOdhCloudSqlRepresentation = map [string ]interface {}{
89- "shape" : acctest.Representation {RepType : acctest .Required , Create : `BM.Standard.E4.128 ` },
92+ "shape" : acctest.Representation {RepType : acctest .Required , Create : `VM.Standard2.4 ` },
9093 "block_volume_size_in_gbs" : acctest.Representation {RepType : acctest .Required , Create : `1000` },
9194 // "nvmes": acctest.Representation{RepType: acctest.Optional, Create: `10`}, // Only for VM_DenseIO_E4_Flex. The shape is disabled for now
9295 }
@@ -104,7 +107,7 @@ var (
104107 "number_of_nodes" : acctest.Representation {RepType : acctest .Required , Create : `2` },
105108 }
106109 bdsInstanceNodesOdhWorkerRepresentation = map [string ]interface {}{
107- "shape" : acctest.Representation {RepType : acctest .Required , Create : `BM.Standard.E4.128 ` },
110+ "shape" : acctest.Representation {RepType : acctest .Required , Create : `VM.Standard2.4 ` },
108111 "subnet_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.subnet_id}` },
109112 "block_volume_size_in_gbs" : acctest.Representation {RepType : acctest .Required , Create : `150` },
110113 "number_of_nodes" : acctest.Representation {RepType : acctest .Required , Create : `3` , Update : `4` },
@@ -188,7 +191,7 @@ func TestResourceBdsOdhInstance(t *testing.T) {
188191 resource .TestCheckResourceAttr (resourceName , "compartment_id" , compartmentId ),
189192 resource .TestCheckResourceAttr (resourceName , "is_high_availability" , "true" ),
190193 resource .TestCheckResourceAttr (resourceName , "is_secure" , "true" ),
191- resource .TestCheckResourceAttr (resourceName , "nodes.#" , "9 " ),
194+ resource .TestCheckResourceAttr (resourceName , "nodes.#" , "11 " ),
192195 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.node_type" ),
193196 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.shape" ),
194197 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.subnet_id" ),
@@ -216,7 +219,7 @@ func TestResourceBdsOdhInstance(t *testing.T) {
216219 resource .TestCheckResourceAttr (resourceName , "compartment_id" , compartmentId ),
217220 resource .TestCheckResourceAttr (resourceName , "is_high_availability" , "true" ),
218221 resource .TestCheckResourceAttr (resourceName , "is_secure" , "true" ),
219- resource .TestCheckResourceAttr (resourceName , "nodes.#" , "9 " ),
222+ resource .TestCheckResourceAttr (resourceName , "nodes.#" , "11 " ),
220223 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.node_type" ),
221224 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.shape" ),
222225 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.subnet_id" ),
@@ -258,11 +261,12 @@ func TestResourceBdsOdhInstance(t *testing.T) {
258261 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.state" ),
259262 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.subnet_id" ),
260263 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.time_created" ),
261- resource .TestCheckResourceAttr (resourceName , "number_of_nodes" , "9 " ),
264+ resource .TestCheckResourceAttr (resourceName , "number_of_nodes" , "11 " ),
262265 resource .TestCheckResourceAttrSet (resourceName , "state" ),
263266 resource .TestCheckResourceAttr (resourceName , "util_node.0.shape" , "VM.Standard.E4.Flex" ),
264267 resource .TestCheckResourceAttr (resourceName , "master_node.0.shape" , "VM.Standard.E4.Flex" ),
265268 resource .TestCheckResourceAttr (resourceName , "compute_only_worker_node.0.shape" , "VM.Standard.E4.Flex" ),
269+ resource .TestCheckResourceAttr (resourceName , "edge_node.0.shape" , "VM.Standard.E4.Flex" ),
266270
267271 func (s * terraform.State ) (err error ) {
268272 resId , err = acctest .FromInstanceState (s , resourceName , "id" )
@@ -299,7 +303,7 @@ func TestResourceBdsOdhInstance(t *testing.T) {
299303 resource .TestCheckResourceAttr (resourceName , "network_config.#" , "1" ),
300304 resource .TestCheckResourceAttr (resourceName , "network_config.0.cidr_block" , "111.112.0.0/16" ),
301305 resource .TestCheckResourceAttr (resourceName , "network_config.0.is_nat_gateway_required" , "true" ),
302- resource .TestCheckResourceAttr (resourceName , "nodes.#" , "9 " ),
306+ resource .TestCheckResourceAttr (resourceName , "nodes.#" , "11 " ),
303307 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.availability_domain" ),
304308 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.display_name" ),
305309 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.fault_domain" ),
@@ -309,11 +313,12 @@ func TestResourceBdsOdhInstance(t *testing.T) {
309313 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.state" ),
310314 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.subnet_id" ),
311315 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.time_created" ),
312- resource .TestCheckResourceAttr (resourceName , "number_of_nodes" , "9 " ),
316+ resource .TestCheckResourceAttr (resourceName , "number_of_nodes" , "11 " ),
313317 resource .TestCheckResourceAttrSet (resourceName , "state" ),
314318 resource .TestCheckResourceAttr (resourceName , "util_node.0.shape" , "VM.Standard2.4" ),
315319 resource .TestCheckResourceAttr (resourceName , "master_node.0.shape" , "VM.Standard2.4" ),
316320 resource .TestCheckResourceAttr (resourceName , "compute_only_worker_node.0.shape" , "VM.Standard.E4.Flex" ),
321+ resource .TestCheckResourceAttr (resourceName , "edge_node.0.shape" , "VM.Standard.E4.Flex" ),
317322
318323 func (s * terraform.State ) (err error ) {
319324 resId2 , err = acctest .FromInstanceState (s , resourceName , "id" )
@@ -345,7 +350,7 @@ func TestResourceBdsOdhInstance(t *testing.T) {
345350 resource .TestCheckResourceAttr (resourceName , "network_config.#" , "1" ),
346351 resource .TestCheckResourceAttr (resourceName , "network_config.0.cidr_block" , "111.112.0.0/16" ),
347352 resource .TestCheckResourceAttr (resourceName , "network_config.0.is_nat_gateway_required" , "true" ),
348- resource .TestCheckResourceAttr (resourceName , "nodes.#" , "10 " ),
353+ resource .TestCheckResourceAttr (resourceName , "nodes.#" , "12 " ),
349354 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.availability_domain" ),
350355 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.display_name" ),
351356 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.fault_domain" ),
@@ -355,11 +360,12 @@ func TestResourceBdsOdhInstance(t *testing.T) {
355360 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.state" ),
356361 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.subnet_id" ),
357362 resource .TestCheckResourceAttrSet (resourceName , "nodes.0.time_created" ),
358- resource .TestCheckResourceAttr (resourceName , "number_of_nodes" , "10 " ),
363+ resource .TestCheckResourceAttr (resourceName , "number_of_nodes" , "12 " ),
359364 resource .TestCheckResourceAttrSet (resourceName , "state" ),
360365 resource .TestCheckResourceAttr (resourceName , "util_node.0.shape" , "VM.Standard.E4.Flex" ),
361366 resource .TestCheckResourceAttr (resourceName , "master_node.0.shape" , "VM.Standard.E4.Flex" ),
362367 resource .TestCheckResourceAttr (resourceName , "compute_only_worker_node.0.shape" , "VM.Standard2.4" ),
368+ resource .TestCheckResourceAttr (resourceName , "edge_node.0.shape" , "VM.Standard2.4" ),
363369
364370 func (s * terraform.State ) (err error ) {
365371 resId2 , err = acctest .FromInstanceState (s , resourceName , "id" )
@@ -422,7 +428,7 @@ func TestResourceBdsOdhInstance(t *testing.T) {
422428 resource .TestCheckResourceAttr (singularDatasourceName , "network_config.#" , "1" ),
423429 resource .TestCheckResourceAttr (singularDatasourceName , "network_config.0.cidr_block" , "111.112.0.0/16" ),
424430 resource .TestCheckResourceAttr (singularDatasourceName , "network_config.0.is_nat_gateway_required" , "true" ),
425- resource .TestCheckResourceAttr (singularDatasourceName , "nodes.#" , "10 " ),
431+ resource .TestCheckResourceAttr (singularDatasourceName , "nodes.#" , "12 " ),
426432 resource .TestCheckResourceAttrSet (singularDatasourceName , "nodes.0.availability_domain" ),
427433 resource .TestCheckResourceAttrSet (singularDatasourceName , "nodes.0.display_name" ),
428434 resource .TestCheckResourceAttrSet (singularDatasourceName , "nodes.0.fault_domain" ),
@@ -454,6 +460,7 @@ func TestResourceBdsOdhInstance(t *testing.T) {
454460 "util_node.0.shape_config" ,
455461 "worker_node.0.shape_config" ,
456462 "compute_only_worker_node.0.shape_config" ,
463+ "edge_node.0.shape_config" ,
457464 },
458465 ResourceName : resourceName ,
459466 },
0 commit comments