Skip to content

Commit

Permalink
chore: fix output for can-i-deploy in http test data builder [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 7, 2021
1 parent d7b0757 commit 70f880a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/test/http_test_data_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def print_pacts_for_verification_response
def can_i_deploy(pacticipant:, version:, to: nil, to_environment: nil)
can_i_deploy_response = client.get("can-i-deploy", { pacticipant: pacticipant, version: version, to: to, environment: to_environment}.compact ).tap { |response| check_for_error(response) }
can = !!(can_i_deploy_response.body["summary"] || {})["deployable"]
puts "can-i-deploy #{pacticipant} version #{version} to #{to}: #{can ? 'yes' : 'no'}"
puts "can-i-deploy #{pacticipant} version #{version} to #{to || to_environment}: #{can ? 'yes' : 'no'}"
summary = can_i_deploy_response.body["summary"]
verification_result_urls = (can_i_deploy_response.body["matrix"] || []).collect do | row |
row.dig("verificationResult", "_links", "self", "href")
Expand Down

0 comments on commit 70f880a

Please sign in to comment.