Skip to content

Commit fe83198

Browse files
committed
Added tests
1 parent 0d48590 commit fe83198

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libservice/addr.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_dns_info(hostname) -> list[str]:
5555

5656

5757
def addr_check(addr: str):
58-
if addr.lower().startswith('http://integration/'):
58+
if addr.lower().startswith('http://integrations/'):
5959
return # The only internal call which is allowed
6060

6161
try:
@@ -87,6 +87,11 @@ def addr_check(addr: str):
8787
addr_check('www.infrasonar.com')
8888
addr_check('8.8.4.4')
8989
addr_check('2345:0425:2CA1:0000:0000:0567:5673:23b5')
90+
addr_check('http://integrations/HaloPSA/scope')
91+
addr_check('https://api.infrasonar.com/alert/ks/close')
92+
addr_check('https://hooks.slack.com/services/T53FYV161/B083ZHX84D9/s')
93+
addr_check('https://nomoa.staging.beech.it/api/alert')
94+
9095
for addr in (
9196
'10.10.10.1',
9297
'192.168.1.1',

0 commit comments

Comments
 (0)