Skip to content

Commit 54a86ef

Browse files
Update tests
1 parent 53620cb commit 54a86ef

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Packs/ReversingLabs_Titanium_Cloud/Integrations/ReversingLabsTitaniumCloudv2/ReversingLabsTitaniumCloudv2_test.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@
4141
yara_retro_actions_output,
4242
yara_retro_matches_feed_output,
4343
yara_ruleset_output,
44+
ip_command,
45+
file_command,
46+
domain_command,
47+
url_command
4448
)
49+
from ReversingLabs.SDK.helper import WrongInputError
50+
4551

4652
INTEGRATION_NAME = "ReversingLabs TitaniumCloud v2"
4753
test_hash = "21841b32c6165b27dddbd4d6eb3a672defe54271"
@@ -400,3 +406,23 @@ def test_customer_data_output():
400406
result = customer_usage_data_output(data_type="MONTHLY USAGE", whole_company=False, response_json=report)
401407

402408
assert result.to_context().get("Contents").get("customer_usage_data").get("rl").get("month") == "2024-06"
409+
410+
411+
def test_ip_command():
412+
with pytest.raises(WrongInputError):
413+
ip_command()
414+
415+
416+
def test_domain_command():
417+
with pytest.raises(WrongInputError):
418+
domain_command()
419+
420+
421+
def test_url_command():
422+
with pytest.raises(WrongInputError):
423+
url_command()
424+
425+
426+
def test_file_command():
427+
with pytest.raises(WrongInputError):
428+
file_command()

0 commit comments

Comments
 (0)