File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717from requests .exceptions import ConnectionError , RequestException
1818
1919from linode_api4 import (
20- Capability ,
2120 Instance ,
2221 InterfaceGeneration ,
2322 IPAddress ,
4241RUN_LONG_TESTS = "RUN_LONG_TESTS"
4342SKIP_E2E_FIREWALL = "SKIP_E2E_FIREWALL"
4443
45- TEST_VPC_REGION = None
46-
4744ALL_ACCOUNT_AVAILABILITIES = {
4845 "Linodes" ,
4946 "NodeBalancers" ,
@@ -473,11 +470,6 @@ def create_vpc(test_linode_client):
473470 client = test_linode_client
474471 label = get_test_label (length = 10 )
475472
476- global TEST_VPC_REGION
477- TEST_VPC_REGION = get_region (
478- test_linode_client , {"VPCs" , "VPC IPv6 Stack" , "Linode Interfaces" }
479- )
480-
481473 vpc = client .vpcs .create (
482474 label = label ,
483475 region = get_region (
@@ -502,15 +494,10 @@ def create_vpc_with_rdma_type(test_linode_client):
502494 client = test_linode_client
503495 label = get_test_label (length = 10 )
504496
505- if TEST_VPC_REGION :
506- region = TEST_VPC_REGION
507- else :
508- region = get_region (
509- # GPUDirect RDMA capability not available for now
510- # test_linode_client, {Capability.vpcs, Capability.gpudirect_rdma}
511- test_linode_client ,
512- {Capability .vpcs },
513- )
497+ # GPUDirect RDMA capability not available for now
498+ region = get_region (
499+ test_linode_client , {"VPCs" , "VPC IPv6 Stack" , "Linode Interfaces" }
500+ )
514501
515502 vpc = client .vpcs .create (
516503 label = label ,
You can’t perform that action at this time.
0 commit comments