From d3a14e408d389098d148f00d688fe42f7a994a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Tue, 29 Oct 2024 16:21:37 +0100 Subject: [PATCH] test(log-messages): adapt expected output logs to Snakemake v8 (#36) --- tests/log-messages.feature | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/log-messages.feature b/tests/log-messages.feature index 67e050e..3110781 100644 --- a/tests/log-messages.feature +++ b/tests/log-messages.feature @@ -8,11 +8,11 @@ Feature: Log messages Scenario: The workflow start has produced the expected messages When the workflow is finished - Then the engine logs should contain "snakemake.logging | MainThread | WARNING | Building DAG of jobs..." + Then the engine logs should contain "WARNING | Building DAG of jobs..." Scenario: The SCRAM step has produced the expected messages When the workflow is finished - Then the engine logs should contain "reana-workflow-engine-snakemake | MainThread | INFO | Job 'scram' received" + Then the engine logs should contain "INFO | Job 'scram' received" And the job logs for the "scram" step should contain """ Registered EDM Plugin: HiggsExample20112012HiggsDemoAnalyzer @@ -23,14 +23,14 @@ Feature: Log messages """ And the engine logs should contain """ - reana-workflow-engine-snakemake | MainThread | INFO | scram job is finished + INFO | scram job is finished """ Scenario: The data analysis step has produced the expected messages When the workflow is finished Then the engine logs should contain """ - reana-workflow-engine-snakemake | MainThread | INFO | Job 'analyze_data' received + INFO | Job 'analyze_data' received """ And the job logs for the "analyze_data" step should contain """ @@ -45,11 +45,11 @@ Feature: Log messages TrigReport Trig Bit# Run Passed Failed Error Name TrigReport 1 0 9058 9058 0 0 p """ - And the engine logs should contain "reana-workflow-engine-snakemake | MainThread | INFO | analyze_data job is finished" + And the engine logs should contain "INFO | analyze_data job is finished" Scenario: The montecarlo analysis step has produced the expected messages When the workflow is finished - Then the engine logs should contain "reana-workflow-engine-snakemake | MainThread | INFO | Job 'analyze_mc' received" + Then the engine logs should contain "INFO | Job 'analyze_mc' received" And the job logs for the "analyze_mc" step should contain """ Successfully opened file root://eospublic.cern.ch//eos/opendata/cms/MonteCarlo2012/Summer12_DR53X/SMHiggsToZZTo4L_M-125_8TeV-powheg15-JHUgenV3-pythia6/AODSIM/PU_S10_START53_V19-v1/10000/029D759D-6CD9-E211-B3E2-1CC1DE041FD8.root @@ -63,20 +63,20 @@ Feature: Log messages TrigReport Trig Bit# Run Passed Failed Error Name TrigReport 1 0 7499 7499 0 0 p """ - And the engine logs should contain "reana-workflow-engine-snakemake | MainThread | INFO | analyze_mc job is finished" + And the engine logs should contain "INFO | analyze_mc job is finished" Scenario: The data plotting step has produced the expected messages When the workflow is finished Then the engine logs should contain """ - reana-workflow-engine-snakemake | MainThread | INFO | Job 'make_plot' received + INFO | Job 'make_plot' received """ And the job logs for the "make_plot" step should contain """ pdf file ../../../../results/mass4l_combine_userlvl3.pdf has been created """ - And the engine logs should contain "reana-workflow-engine-snakemake | MainThread | INFO | make_plot job is finished" + And the engine logs should contain "INFO | make_plot job is finished" Scenario: The workflow completion has produced the expected messages When the workflow is finished - Then the engine logs should contain "snakemake.logging | MainThread | INFO | 5 of 5 steps (100%) done" + Then the engine logs should contain "INFO | 5 of 5 steps (100%) done"