Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tst: fix threshold expert redis host #2209

Merged
merged 1 commit into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ CHANGELOG
- CodeQL Github Actions `exponential backtracking on strings` fixed. (PR#2148 by Sebastian Waldbauer, fixes #2138)
- Reverse DNS expert tests: remove outdated failing test `test_invalid_ptr` (PR#2208 by Sebastian Wagner, fixes #2206).
- Add test dependency `requests_mock` to the `development` extra requirements in `setup.py` (PR#2210 by Sebastian Wagner).
- Threshold Expert tests: Use environment variable `INTELMQ_PIPELINE_HOST` as redis host, analogous to other tests (PR#2209 by Sebastian Wagner, fixes #2207).

### Tools
- `intelmqctl`: fix process manager initialization if run non-interactively, as intelmqdump does it (PR#2189 by Sebastian Wagner, fixes 2188).
Expand Down
4 changes: 2 additions & 2 deletions intelmq/tests/bots/experts/threshold/test_expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

# -*- coding: utf-8 -*-

import os
import unittest
import time

import intelmq.lib.test as test
from intelmq.lib import utils
Expand Down Expand Up @@ -35,7 +35,7 @@
'filter_keys': ['source.ip'],
'filter_type': 'whitelist',
'redis_cache_db': 4,
'redis_cache_host': '127.0.0.1',
'redis_cache_host': os.getenv('INTELMQ_PIPELINE_HOST', 'localhost'),
'redis_cache_password': None,
'redis_cache_port': 6379,
'timeout': 1,
Expand Down