Skip to content

Commit

Permalink
test(log-messages): adapt expected output logs to Snakemake v8 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimko committed Oct 29, 2024
1 parent 1e0e610 commit d3a14e4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/log-messages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
"""
Expand All @@ -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
Expand All @@ -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"

0 comments on commit d3a14e4

Please sign in to comment.