@@ -62,6 +62,7 @@ var testConfigRoutingTableMax = config.Variables{
6262 "description" : config .StringVariable ("This is the description of the routing table." ),
6363 "label" : config .StringVariable ("routing-table-label-01" ),
6464 "system_routes" : config .BoolVariable (false ),
65+ "dynamic_routes" : config .BoolVariable (false ),
6566 "region" : config .StringVariable (testutil .Region ),
6667}
6768
@@ -133,6 +134,7 @@ func TestAccRoutingTable(t *testing.T) {
133134 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "region" , testutil .Region ),
134135 resource .TestCheckNoResourceAttr ("stackit_routing_table.routing_table" , "description" ),
135136 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "system_routes" , "true" ),
137+ resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "dynamic_routes" , "true" ),
136138 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "created_at" ),
137139 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "updated_at" ),
138140 ),
@@ -172,6 +174,7 @@ func TestAccRoutingTable(t *testing.T) {
172174 resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "region" , testutil .Region ),
173175 resource .TestCheckNoResourceAttr ("data.stackit_routing_table.routing_table" , "description" ),
174176 resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "system_routes" , "true" ),
177+ resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "dynamic_routes" , "true" ),
175178 resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "default" , "false" ),
176179 resource .TestCheckResourceAttrSet ("data.stackit_routing_table.routing_table" , "created_at" ),
177180 resource .TestCheckResourceAttrSet ("data.stackit_routing_table.routing_table" , "updated_at" ),
@@ -197,6 +200,7 @@ func TestAccRoutingTable(t *testing.T) {
197200 resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.labels.%" , "0" ),
198201 resource .TestCheckNoResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.description" ),
199202 resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.system_routes" , "true" ),
203+ resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.dynamic_routes" , "true" ),
200204 resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.default" , "false" ),
201205 resource .TestCheckResourceAttrSet ("data.stackit_routing_tables.routing_tables" , "items.1.created_at" ),
202206 resource .TestCheckResourceAttrSet ("data.stackit_routing_tables.routing_tables" , "items.1.updated_at" ),
@@ -242,6 +246,7 @@ func TestAccRoutingTable(t *testing.T) {
242246 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "region" , testutil .Region ),
243247 resource .TestCheckNoResourceAttr ("stackit_routing_table.routing_table" , "description" ),
244248 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "system_routes" , "true" ),
249+ resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "dynamic_routes" , "true" ),
245250 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "created_at" ),
246251 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "updated_at" ),
247252 ),
@@ -272,6 +277,7 @@ func TestAccRoutingTable(t *testing.T) {
272277 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "region" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["region" ])),
273278 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "description" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["description" ])),
274279 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "system_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["system_routes" ])),
280+ resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "dynamic_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["dynamic_routes" ])),
275281 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "created_at" ),
276282 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "updated_at" ),
277283 ),
@@ -312,6 +318,7 @@ func TestAccRoutingTable(t *testing.T) {
312318 resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "region" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["region" ])),
313319 resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "description" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["description" ])),
314320 resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "system_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["system_routes" ])),
321+ resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "dynamic_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["dynamic_routes" ])),
315322 resource .TestCheckResourceAttr ("data.stackit_routing_table.routing_table" , "default" , "false" ),
316323 resource .TestCheckResourceAttrSet ("data.stackit_routing_table.routing_table" , "created_at" ),
317324 resource .TestCheckResourceAttrSet ("data.stackit_routing_table.routing_table" , "updated_at" ),
@@ -338,6 +345,7 @@ func TestAccRoutingTable(t *testing.T) {
338345 resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.labels.acc-test" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["label" ])),
339346 resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.description" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["description" ])),
340347 resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.system_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["system_routes" ])),
348+ resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.dynamic_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMax ["dynamic_routes" ])),
341349 resource .TestCheckResourceAttr ("data.stackit_routing_tables.routing_tables" , "items.1.default" , "false" ),
342350 resource .TestCheckResourceAttrSet ("data.stackit_routing_tables.routing_tables" , "items.1.created_at" ),
343351 resource .TestCheckResourceAttrSet ("data.stackit_routing_tables.routing_tables" , "items.1.updated_at" ),
@@ -384,6 +392,7 @@ func TestAccRoutingTable(t *testing.T) {
384392 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "region" , testutil .ConvertConfigVariable (testConfigRoutingTableMaxUpdated ["region" ])),
385393 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "description" , testutil .ConvertConfigVariable (testConfigRoutingTableMaxUpdated ["description" ])),
386394 resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "system_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMaxUpdated ["system_routes" ])),
395+ resource .TestCheckResourceAttr ("stackit_routing_table.routing_table" , "dynamic_routes" , testutil .ConvertConfigVariable (testConfigRoutingTableMaxUpdated ["dynamic_routes" ])),
387396 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "created_at" ),
388397 resource .TestCheckResourceAttrSet ("stackit_routing_table.routing_table" , "updated_at" ),
389398 ),
0 commit comments