From 79bfd634a6e2322f48f5487e46689d706f99cf46 Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Sun, 4 May 2025 12:30:09 +0000 Subject: [PATCH] Makre sure we're using the right version of tags --- tests/e2e.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/e2e.py b/tests/e2e.py index 2f9a996..936ec7c 100644 --- a/tests/e2e.py +++ b/tests/e2e.py @@ -57,12 +57,14 @@ def test_search_indicators(self): "description": "test", "pattern": "test[0-9]", "diamond": "victim", - } + }, + tags=["testtag"], ) time.sleep(5) result = self.api.search_indicators(name="testSear") self.assertEqual(len(result), 1, result) self.assertEqual(result[0]["name"], "testSearch") + self.assertEqual(result[0]["tags"][0]["name"], "testtag") def test_find_indicator(self): self.api.auth_api_key(os.getenv("YETI_API_KEY")) @@ -74,10 +76,12 @@ def test_find_indicator(self): "description": "test", "pattern": "test[0-9]", "diamond": "victim", - } + }, + tags=["testtag"], ) time.sleep(5) indicator = self.api.find_indicator(name="testGet", type="regex") self.assertEqual(indicator["name"], "testGet") self.assertEqual(indicator["pattern"], "test[0-9]") + self.assertEqual(indicator["tags"][0]["name"], "testtag")