File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,6 @@ def test_get_interfaces(self):
487
487
488
488
def test_get_interfaces_settings (self ):
489
489
instance = Instance (self .client , 124 )
490
-
491
490
iface_settings = instance .interfaces_settings
492
491
493
492
assert iface_settings .network_helper
@@ -505,6 +504,25 @@ def test_get_interfaces_settings(self):
505
504
456 ,
506
505
]
507
506
507
+ def test_update_interfaces_settings (self ):
508
+ instance = Instance (self .client , 124 )
509
+ iface_settings = instance .interfaces_settings
510
+
511
+ iface_settings .network_helper = False
512
+ iface_settings .default_route .ipv4_interface_id = 456
513
+ iface_settings .default_route .ipv6_interface_id = 123
514
+
515
+ with self .mock_put ("/linode/instances/124/interfaces/settings" ) as m :
516
+ iface_settings .save ()
517
+
518
+ assert m .call_data == {
519
+ "network_helper" : False ,
520
+ "default_route" : {
521
+ "ipv4_interface_id" : 456 ,
522
+ "ipv6_interface_id" : 123 ,
523
+ }
524
+ }
525
+
508
526
509
527
class DiskTest (ClientBaseCase ):
510
528
"""
You can’t perform that action at this time.
0 commit comments