You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pacts for verification): add pre and post verification messages that can be displayed to the user based on whether or not the verification has passed or failed
property:noteToDevelopers,getter: ->(_){"Please print out the text from the 'notices' rather than using the inclusionReason and the pendingReason fields. These will be removed when this API moves out of beta."}
Copy file name to clipboardexpand all lines: lib/pact_broker/pacts/verifiable_pact_messages.rb
+30
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,28 @@ def pending_reason
35
35
end
36
36
end
37
37
38
+
defverification_success_true_published_false
39
+
ifpending?
40
+
"This pact is still in pending state for #{pending_provider_tags_description} as the successful verification results #{with_these_tags}have not yet been published."
41
+
end
42
+
end
43
+
44
+
defverification_success_true_published_true
45
+
ifpending?
46
+
"This pact is no longer in pending state for #{pending_provider_tags_description}, as a successful verification result #{with_these_tags}has been published. If a verification for a version with fails in the future, it will fail the build. #{READ_MORE_PENDING}"
47
+
end
48
+
end
49
+
50
+
defverification_success_false_published_false
51
+
ifpending?
52
+
"This pact is still in pending state for #{pending_provider_tags_description} as a successful verification result #{with_these_tags}has not yet been published"
0 commit comments