Skip to content

Commit

Permalink
fix: Add consumer name to inclusion reason log (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguysimon authored Nov 3, 2020
1 parent 7889b05 commit 8290189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/pacts/verifiable_pact_messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def inclusion_reason
version_text = head_consumer_tags.size == 1 ? "version" : "versions"
if wip?
# WIP pacts will always have tags, because it is part of the definition of being a WIP pact
"The pact at #{pact_version_url} is being verified because it is a 'work in progress' pact (ie. it is the pact for the latest #{version_text} of Foo tagged with #{joined_head_consumer_tags} and is still in pending state). #{READ_MORE_WIP}"
"The pact at #{pact_version_url} is being verified because it is a 'work in progress' pact (ie. it is the pact for the latest #{version_text} of #{consumer_name} tagged with #{joined_head_consumer_tags} and is still in pending state). #{READ_MORE_WIP}"
else
criteria_or_criterion = selectors.size > 1 ? "criteria" : "criterion"
"The pact at #{pact_version_url} is being verified because it matches the following configured selection #{criteria_or_criterion}: #{selector_descriptions}#{same_content_note}"
Expand Down

0 comments on commit 8290189

Please sign in to comment.