Skip to content

Commit bcc045c

Browse files
committed
Update e2e
1 parent c64f2a7 commit bcc045c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/e2e.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,17 @@ def test_search_indicators(self):
6767
def test_find_indicator(self):
6868
self.api.auth_api_key(os.getenv("YETI_API_KEY"))
6969
self.api.auth_api_key(os.getenv("YETI_API_KEY"))
70-
indicator = self.api.find_indicator(name="testSearch", type="regex")
70+
self.api.new_indicator(
71+
{
72+
"name": "testGet",
73+
"type": "regex",
74+
"description": "test",
75+
"pattern": "test[0-9]",
76+
"diamond": "victim",
77+
}
78+
)
79+
time.sleep(5)
80+
indicator = self.api.find_indicator(name="testGet", type="regex")
7181

72-
self.assertEqual(indicator["name"], "testSearch")
82+
self.assertEqual(indicator["name"], "testGet")
7383
self.assertEqual(indicator["pattern"], "test[0-9]")

0 commit comments

Comments
 (0)