Skip to content

Commit

Permalink
tst: fix threshold expert redis host
Browse files Browse the repository at this point in the history
Use environment variable `INTELMQ_PIPELINE_HOST` as redis host, analogous to other tests
fixes #2207
  • Loading branch information
wagner-intevation committed Jul 5, 2022
1 parent 79cae29 commit 0e6e023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ CHANGELOG
- Also test on Python 3.10 (PR#2140 by Sebastian Wagner).
- Switch from nosetests to pytest, as the former does not support Python 3.10 (PR#2140 by Sebastian Wagner).
- CodeQL Github Actions `exponential backtracking on strings` fixed. (PR#2148 by Sebastian Waldbauer, fixes #2138)
- 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

0 comments on commit 0e6e023

Please sign in to comment.