From b0a82a1a68f2f175c86eca72c5a7152c5bb239ab Mon Sep 17 00:00:00 2001
From: Alexandre Dulaunoy
Date: Mon, 17 Aug 2026 14:51:24 +0200
Subject: [PATCH 1/2] Skip rate-limited BTC scam check test
---
tests/test_expansions.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test_expansions.py b/tests/test_expansions.py
index 89041c04..745c12f8 100644
--- a/tests/test_expansions.py
+++ b/tests/test_expansions.py
@@ -166,6 +166,7 @@ def test_btc_steroids(self):
except Exception:
self.assertTrue(self.get_values(response).startswith("Not a valid BTC address"))
+ @unittest.skip("Remote service rate limits requests from CI IPs")
def test_btc_scam_check(self):
query = {"module": "btc_scam_check", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"}
response = self.misp_modules_post(query)
From 3e7611c9a393f3c6c4ed1fb9ca8c615bed261bd8 Mon Sep 17 00:00:00 2001
From: Alexandre Dulaunoy
Date: Mon, 17 Aug 2026 15:32:57 +0200
Subject: [PATCH 2/2] Keep BTC scam check available outside live CI
---
tests/test_expansions.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/test_expansions.py b/tests/test_expansions.py
index 745c12f8..b96db4c0 100644
--- a/tests/test_expansions.py
+++ b/tests/test_expansions.py
@@ -166,8 +166,10 @@ def test_btc_steroids(self):
except Exception:
self.assertTrue(self.get_values(response).startswith("Not a valid BTC address"))
- @unittest.skip("Remote service rate limits requests from CI IPs")
def test_btc_scam_check(self):
+ if LiveCI:
+ return
+
query = {"module": "btc_scam_check", "btc": "1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA"}
response = self.misp_modules_post(query)
self.assertEqual(self.get_values(response), "1es14c7qlb5cyhlmuekctxlgc1fv2ti9da fraudolent bitcoin address")