Skip to content

Commit

Permalink
Updates to get test-harness working with updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwartz-Matthew-bah committed Apr 2, 2019
1 parent 78f3058 commit 619fceb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions qa/test-harness/full-test.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/sh
echo "[FULL TEST] Starting all tests..."
echo "====="
python test-harness.py --config-file config/bsmLogDuringEvent.ini --data-file ../data/bsmLogDuringEvent.gz --kafka-topic topic.OdeBsmJson --output-file results_bsmLogDuringEvent.log
python test-harness.py --config-file config/bsmLogDuringEvent.ini --data-file ../../data/bsmLogDuringEvent.gz --kafka-topic topic.OdeBsmJson --output-file results_bsmLogDuringEvent.log
echo "====="
python test-harness.py --config-file config/bsmTx.ini --data-file ../data/bsmTx.gz --kafka-topic topic.OdeBsmJson --output-file results_bsmTx.log
python test-harness.py --config-file config/bsmTx.ini --data-file ../../data/bsmTx.gz --kafka-topic topic.OdeBsmJson --output-file results_bsmTx.log
echo "====="
python test-harness.py --config-file config/driverAlert.ini --data-file ../data/driverAlert.gz --kafka-topic topic.OdeDriverAlertJson --output-file results_driverAlert.log
python test-harness.py --config-file config/driverAlert.ini --data-file ../../data/driverAlert.gz --kafka-topic topic.OdeDriverAlertJson --output-file results_driverAlert.log
echo "====="
python test-harness.py --config-file config/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP-bsmcheck.ini --data-file ../data/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP.gz --kafka-topic topic.OdeBsmJson --output-file results_rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP_bsmcheck.log
python test-harness.py --config-file config/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP-bsmcheck.ini --data-file ../../data/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP.gz --kafka-topic topic.OdeBsmJson --output-file results_rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP_bsmcheck.log
echo "====="
python test-harness.py --config-file config/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP-timcheck.ini --data-file ../data/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP.gz --kafka-topic topic.OdeTimRxJson --output-file results_rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP_timcheck.log
python test-harness.py --config-file config/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP-timcheck.ini --data-file ../../data/rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP.gz --kafka-topic topic.OdeTimRxJson --output-file results_rxMsg_TIM_GeneratedBy_TMC_VIA_SNMP_timcheck.log
echo "====="
python test-harness.py --config-file config/rxMsg_TIM_and_BSM-bsmcheck.ini --data-file ../data/rxMsg_BSM_and_TIM.gz --kafka-topic topic.OdeBsmJson --output-file results_rxMsg_TIM_and_BSM_bsmcheck.log
python test-harness.py --config-file config/rxMsg_TIM_and_BSM-bsmcheck.ini --data-file ../../data/rxMsg_BSM_and_TIM.gz --kafka-topic topic.OdeBsmJson --output-file results_rxMsg_TIM_and_BSM_bsmcheck.log
echo "====="
python test-harness.py --config-file config/rxMsg_TIM_and_BSM-timcheck.ini --data-file ../data/rxMsg_BSM_and_TIM.gz --kafka-topic topic.OdeTimRxJson --output-file results_rxMsg_TIM_and_BSM_timcheck.log
python test-harness.py --config-file config/rxMsg_TIM_and_BSM-timcheck.ini --data-file ../../data/rxMsg_BSM_and_TIM.gz --kafka-topic topic.OdeTimRxJson --output-file results_rxMsg_TIM_and_BSM_timcheck.log
echo "====="
echo "[FULL TEST] Testing complete."
4 changes: 4 additions & 0 deletions qa/test-harness/test-harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def main():
kafkaListenerThread.join()
print("[INFO] Received %d messages from Kafka consumer." % msg_queue.qsize())

if msg_queue.qsize() == 0:
print("[ERROR] Aborting test routine! Received no messages from the Kafka consumer.")
return

# After all messages were received, log them to a file
validation_results = validator.validate_queue(msg_queue)

Expand Down

0 comments on commit 619fceb

Please sign in to comment.