@@ -704,19 +704,19 @@ def test_dns_sync_both(self, confirm_mock):
704704 'getResourceRecords' )
705705 getResourceRecords .return_value = []
706706 createAargs = ({
707- 'type' : 'a' ,
708- 'host' : 'hardware-test1' ,
709- 'domainId' : 12345 , # from SoftLayer_Account::getDomains
710- 'data' : '172.16.1.100' ,
711- 'ttl' : 7200
712- },)
707+ 'type' : 'a' ,
708+ 'host' : 'hardware-test1' ,
709+ 'domainId' : 12345 , # from SoftLayer_Account::getDomains
710+ 'data' : '172.16.1.100' ,
711+ 'ttl' : 7200
712+ },)
713713 createPTRargs = ({
714- 'type' : 'ptr' ,
715- 'host' : '100' ,
716- 'domainId' : 123456 ,
717- 'data' : 'hardware-test1.test.sftlyr.ws' ,
718- 'ttl' : 7200
719- },)
714+ 'type' : 'ptr' ,
715+ 'host' : '100' ,
716+ 'domainId' : 123456 ,
717+ 'data' : 'hardware-test1.test.sftlyr.ws' ,
718+ 'ttl' : 7200
719+ },)
720720
721721 result = self .run_command (['hw' , 'dns-sync' , '1000' ])
722722
@@ -759,12 +759,12 @@ def test_dns_sync_v6(self, confirm_mock):
759759 }
760760 }
761761 createV6args = ({
762- 'type' : 'aaaa' ,
763- 'host' : 'hardware-test1' ,
764- 'domainId' : 12345 , # from SoftLayer_Account::getDomains
765- 'data' : '2607:f0d0:1b01:0023:0000:0000:0000:0004' ,
766- 'ttl' : 7200
767- },)
762+ 'type' : 'aaaa' ,
763+ 'host' : 'hardware-test1' ,
764+ 'domainId' : 12345 , # from SoftLayer_Account::getDomains
765+ 'data' : '2607:f0d0:1b01:0023:0000:0000:0000:0004' ,
766+ 'ttl' : 7200
767+ },)
768768 server .return_value = test_server
769769 result = self .run_command (['hw' , 'dns-sync' , '--aaaa-record' , '1000' ])
770770 self .assert_no_fail (result )
@@ -1026,3 +1026,11 @@ def test_check_for_closing(self, confirm_mock):
10261026 '--flavor' , 'B1_2X8X25' , '--datacenter' , 'mex01' , '--os' , 'UBUNTU_LATEST' ])
10271027 self .assert_no_fail (result )
10281028 self .assertNotIn ('Warning: Closed soon: mex01' , result .output )
1029+
1030+ def test_notifications (self ):
1031+ result = self .run_command (['hardware' , 'notifications' , '100' ])
1032+ self .assert_no_fail (result )
1033+
1034+ def test_add_notification (self ):
1035+ result = self .run_command (['hardware' , 'add-notification' , '100' , '--users' , '123456' ])
1036+ self .assert_no_fail (result )
0 commit comments