Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/development' into fix_pca_dete…
Browse files Browse the repository at this point in the history
…ctor
  • Loading branch information
landauermax committed Mar 26, 2024
2 parents 4cbbeea + 75ea44b commit f9c055e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aecid-testsuite/integration/declarations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ function checkAllSyslogs(){

# This function checks if the output of the Kafka Topic is as expected.
function checkKafkaTopic(){
out=$($KAFKA_VERSIONSTRING/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test_topic --from-beginning --timeout-ms 30000)
out=$($KAFKA_VERSIONSTRING/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test_topic --from-beginning --timeout-ms 60000)
for t in "${JSON_OUTPUT[@]}"
do
if [[ $out != *"$t"* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion aecid-testsuite/unit/events/KafkaEventHandlerTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class KafkaEventHandlerTest(TestBase):
def setUpClass(cls):
"""Start a KafkaConsumer."""
cls.consumer = KafkaConsumer(
cls.kafka_topic, bootstrap_servers=['localhost:9092'], enable_auto_commit=True, consumer_timeout_ms=30000,
cls.kafka_topic, bootstrap_servers=['localhost:9092'], enable_auto_commit=True, consumer_timeout_ms=60000,
group_id=cls.kafka_group, value_deserializer=lambda x: x.decode(), api_version=(2, 0, 1), auto_offset_reset='earliest')

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def receive_atom(self, log_atom):
matches.append(match)
for match in matches:
value = match.match_object
if not isinstance(match.match_object, bytes):
value = str(match.match_object).encode(AminerConfig.ENCODING)
if value is not None:
all_values_none = False
values.append(value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def receive_atom(self, log_atom):
matches.append(match)
for match in matches:
value = match.match_object
if not isinstance(match.match_object, bytes):
value = str(match.match_object).encode(AminerConfig.ENCODING)
if value is not None:
all_values_none = False
values.append(value)
Expand Down

0 comments on commit f9c055e

Please sign in to comment.