Skip to content

Commit 68ebdab

Browse files
committed
fixup unit tests
1 parent af016aa commit 68ebdab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intelmq/tests/bots/outputs/smtp_batch/test_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
BOT_ID = "test-bot"
1818
IDENTITY1 = 'one@example.com'
19-
IDENTITY1_HASH = sha256(IDENTITY1.encode()).hexdigest()
19+
IDENTITY1_HASH = sha256(sha256(IDENTITY1.encode()).digest()).hexdigest()
2020
KEY1 = f"{BOT_ID}:{IDENTITY1_HASH}".encode()
2121
EVENT1 = {'__type': 'Event',
2222
'source.ip': '127.0.0.1',
2323
'source.url': 'http://example.com/',
2424
'source.abuse_contact': IDENTITY1
2525
}
2626
IDENTITY2 = 'one@example2.com'
27-
IDENTITY2_HASH = sha256(IDENTITY2.encode()).hexdigest()
27+
IDENTITY2_HASH = sha256(sha256(IDENTITY2.encode()).digest()).hexdigest()
2828
KEY2 = f"{BOT_ID}:{IDENTITY2_HASH}".encode()
2929
EVENT2 = {'__type': 'Event',
3030
'source.ip': '127.0.0.2',

0 commit comments

Comments
 (0)