@@ -38,7 +38,7 @@ def linode_with_volume_firewall(test_linode_client):
3838 linode_instance , password = client .linode .instance_create (
3939 "g6-nanode-1" ,
4040 region ,
41- image = "linode/debian10 " ,
41+ image = "linode/debian12 " ,
4242 label = label + "_modlinode" ,
4343 )
4444
@@ -76,7 +76,27 @@ def linode_for_network_interface_tests(test_linode_client, e2e_test_firewall):
7676 linode_instance , password = client .linode .instance_create (
7777 "g6-nanode-1" ,
7878 region ,
79- image = "linode/debian10" ,
79+ image = "linode/debian12" ,
80+ label = label ,
81+ firewall = e2e_test_firewall ,
82+ )
83+
84+ yield linode_instance
85+
86+ linode_instance .delete ()
87+
88+
89+ @pytest .fixture (scope = "session" )
90+ def linode_for_vpu_tests (test_linode_client , e2e_test_firewall ):
91+ client = test_linode_client
92+ region = "us-lax"
93+
94+ label = get_test_label (length = 8 )
95+
96+ linode_instance , password = client .linode .instance_create (
97+ "g1-accelerated-netint-vpu-t1u1-s" ,
98+ region ,
99+ image = "linode/debian12" ,
80100 label = label ,
81101 firewall = e2e_test_firewall ,
82102 )
@@ -147,7 +167,7 @@ def create_linode_for_long_running_tests(test_linode_client, e2e_test_firewall):
147167 linode_instance , password = client .linode .instance_create (
148168 "g6-nanode-1" ,
149169 region ,
150- image = "linode/debian10 " ,
170+ image = "linode/debian12 " ,
151171 label = label + "_long_tests" ,
152172 firewall = e2e_test_firewall ,
153173 )
@@ -196,6 +216,13 @@ def test_get_linode(test_linode_client, linode_with_volume_firewall):
196216 assert linode .id == linode_with_volume_firewall .id
197217
198218
219+ def test_get_vpu (test_linode_client , linode_for_vpu_tests ):
220+ linode = test_linode_client .load (Instance , linode_for_vpu_tests .id )
221+
222+ assert linode .label == linode_for_vpu_tests .label
223+ assert hasattr (linode .specs , "accelerated_devices" )
224+
225+
199226def test_linode_transfer (test_linode_client , linode_with_volume_firewall ):
200227 linode = test_linode_client .load (Instance , linode_with_volume_firewall .id )
201228
@@ -214,22 +241,22 @@ def test_linode_rebuild(test_linode_client):
214241 label = get_test_label () + "_rebuild"
215242
216243 linode , password = client .linode .instance_create (
217- "g6-nanode-1" , region , image = "linode/debian10 " , label = label
244+ "g6-nanode-1" , region , image = "linode/debian12 " , label = label
218245 )
219246
220247 wait_for_condition (10 , 100 , get_status , linode , "running" )
221248
222249 retry_sending_request (
223250 3 ,
224251 linode .rebuild ,
225- "linode/debian10 " ,
252+ "linode/debian12 " ,
226253 disk_encryption = InstanceDiskEncryptionType .disabled ,
227254 )
228255
229256 wait_for_condition (10 , 100 , get_status , linode , "rebuilding" )
230257
231258 assert linode .status == "rebuilding"
232- assert linode .image .id == "linode/debian10 "
259+ assert linode .image .id == "linode/debian12 "
233260
234261 assert linode .disk_encryption == InstanceDiskEncryptionType .disabled
235262
@@ -272,7 +299,7 @@ def test_delete_linode(test_linode_client):
272299 linode_instance , password = client .linode .instance_create (
273300 "g6-nanode-1" ,
274301 region ,
275- image = "linode/debian10 " ,
302+ image = "linode/debian12 " ,
276303 label = label + "_linode" ,
277304 )
278305
@@ -591,6 +618,9 @@ def test_get_linode_types(test_linode_client):
591618 assert len (types ) > 0
592619 assert "g6-nanode-1" in ids
593620
621+ for linode_type in types :
622+ assert hasattr (linode_type , "accelerated_devices" )
623+
594624
595625def test_get_linode_types_overrides (test_linode_client ):
596626 types = test_linode_client .linode .types ()
@@ -691,6 +721,9 @@ def test_create_vlan(self, linode_for_network_interface_tests):
691721 assert interface .label == "testvlan"
692722 assert interface .ipam_address == "10.0.0.2/32"
693723
724+ def test_create_vpu (self , test_linode_client , linode_for_vpu_tests ):
725+ assert hasattr (linode_for_vpu_tests .specs , "accelerated_devices" )
726+
694727 def test_create_vpc (
695728 self ,
696729 test_linode_client ,
0 commit comments