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 af016aa commit 68ebdabCopy full SHA for 68ebdab
intelmq/tests/bots/outputs/smtp_batch/test_output.py
@@ -16,15 +16,15 @@
16
17
BOT_ID = "test-bot"
18
IDENTITY1 = 'one@example.com'
19
-IDENTITY1_HASH = sha256(IDENTITY1.encode()).hexdigest()
+IDENTITY1_HASH = sha256(sha256(IDENTITY1.encode()).digest()).hexdigest()
20
KEY1 = f"{BOT_ID}:{IDENTITY1_HASH}".encode()
21
EVENT1 = {'__type': 'Event',
22
'source.ip': '127.0.0.1',
23
'source.url': 'http://example.com/',
24
'source.abuse_contact': IDENTITY1
25
}
26
IDENTITY2 = 'one@example2.com'
27
-IDENTITY2_HASH = sha256(IDENTITY2.encode()).hexdigest()
+IDENTITY2_HASH = sha256(sha256(IDENTITY2.encode()).digest()).hexdigest()
28
KEY2 = f"{BOT_ID}:{IDENTITY2_HASH}".encode()
29
EVENT2 = {'__type': 'Event',
30
'source.ip': '127.0.0.2',
0 commit comments