Skip to content

Commit

Permalink
Merge pull request #86 from telefonicaid/bug/correlator_acceptance_tests
Browse files Browse the repository at this point in the history
Fix constant for correlator in logs
  • Loading branch information
Fernando López Aguilar committed Nov 29, 2016
2 parents a528079 + 6764897 commit 8f5ebce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ def the_given_correlator_value_is_used_in_logs(step):
time.sleep(WAIT_FOR_REMOTE_LOGGING)

if world.correlator is not None and len(world.correlator) != 0:
log_value_correlator = {"CORRELATOR": "corr={correlator}".format(
log_value_correlator = {"UNICA_CORRELATOR": "corr={correlator}".format(
correlator=world.correlator)}
log_utils.search_in_log(remote_log_local_path, service_log_file_name, log_value_correlator)
else:
log_value_message = {"MESSAGE": "msg={probe}".format(probe=world.probe)}
log_line = log_utils.search_in_log(remote_log_local_path, service_log_file_name, log_value_message)

correlator = log_line[log_utils.LOG_TAG["CORRELATOR"].replace("=", "")]
correlator = log_line[log_utils.LOG_TAG["UNICA_CORRELATOR"].replace("=", "")]
assert_true(len(correlator) != 0,
"Correlator not found in logs. Expected value. Value in logs: " + correlator)

0 comments on commit 8f5ebce

Please sign in to comment.