We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c64f2a7 commit bcc045cCopy full SHA for bcc045c
tests/e2e.py
@@ -67,7 +67,17 @@ def test_search_indicators(self):
67
def test_find_indicator(self):
68
self.api.auth_api_key(os.getenv("YETI_API_KEY"))
69
70
- indicator = self.api.find_indicator(name="testSearch", type="regex")
+ 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")
81
- self.assertEqual(indicator["name"], "testSearch")
82
+ self.assertEqual(indicator["name"], "testGet")
83
self.assertEqual(indicator["pattern"], "test[0-9]")
0 commit comments