File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
test/integration/models/nodebalancer Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -508,3 +508,30 @@ def test_nb_with_frontend_and_backend_in_different_vpcs(
508508
509509 nb .delete ()
510510 vpc_frontend .delete ()
511+
512+
513+ def test_nb_with_deprecated_vpcs_attribute (
514+ test_linode_client , create_vpc_with_subnet
515+ ):
516+ # TODO: The test will be deleted when a deprecated vpcs attribute can no longer be used
517+ client = test_linode_client
518+ label = get_test_label (8 )
519+
520+ nb = client .nodebalancer_create (
521+ region = create_vpc_with_subnet [0 ].region ,
522+ label = label ,
523+ vpcs = [
524+ {
525+ "subnet_id" : create_vpc_with_subnet [1 ].id ,
526+ }
527+ ],
528+ )
529+
530+ assert isinstance (
531+ ipaddress .ip_address (nb .ipv4 .address ), ipaddress .IPv4Address
532+ )
533+ assert isinstance (ipaddress .ip_address (nb .ipv6 ), ipaddress .IPv6Address )
534+ assert nb .frontend_address_type == "public"
535+ assert nb .frontend_vpc_subnet_id is None
536+
537+ nb .delete ()
You can’t perform that action at this time.
0 commit comments