File tree Expand file tree Collapse file tree
tests/integration/nodebalancers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -672,6 +672,32 @@ def test_nb_with_frontend_ipv4_only(get_vpc_with_subnet):
672672 assert nb_attrs [0 ]["frontend_address_type" ] == "vpc"
673673 assert nb_attrs [0 ]["frontend_vpc_subnet_id" ] == vpc ["subnets" ][0 ]["id" ]
674674
675+ nb_vpcs = json .loads (
676+ exec_test_command (
677+ BASE_CMDS ["nodebalancers" ]
678+ + [
679+ "vpcs-list" ,
680+ nb_id ,
681+ "--json" ,
682+ ]
683+ ),
684+ )
685+ assert len (nb_vpcs ) == 1
686+ assert nb_vpcs [0 ]["purpose" ] == "frontend"
687+
688+ nb_vpc = json .loads (
689+ exec_test_command (
690+ BASE_CMDS ["nodebalancers" ]
691+ + [
692+ "vpc-view" ,
693+ nb_id ,
694+ str (nb_vpcs [0 ]["id" ]),
695+ "--json" ,
696+ ]
697+ ),
698+ )
699+ assert nb_vpc [0 ]["purpose" ] == "frontend"
700+
675701 # TODO: Uncomment when API implementation of /backend_vpcs and /frontend_vpcs endpoints is finished
676702 # nb_frontend_vpcs = json.loads(
677703 # exec_test_command(
You can’t perform that action at this time.
0 commit comments