Skip to content

Commit

Permalink
feat: update relations used for currently deploy/currently supported …
Browse files Browse the repository at this point in the history
…versions
  • Loading branch information
bethesque committed Jul 1, 2021
1 parent 7a96d83 commit 6f6ca2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/pact_broker/client/deployments/record_support_ended.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def do_call
attr_reader :pacticipant_name, :environment_name, :version_number

def currently_supported_versions_link
environment_resource._link("pb:currently-supported-versions") or raise PactBroker::Client::Error.new(not_supported_message)
environment_resource._link("pb:currently-supported-released-versions", "pb:currently-supported-versions") or raise PactBroker::Client::Error.new(not_supported_message)
end

def currently_supported_version_entities_for_pacticipant_version
Expand Down
2 changes: 1 addition & 1 deletion lib/pact_broker/client/deployments/record_undeployment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def do_call
attr_reader :pacticipant_name, :environment_name, :target

def currently_deployed_versions_link
environment_resource._link("pb:currently-deployed-versions") or raise PactBroker::Client::Error.new(not_supported_message)
environment_resource._link("pb:currently-deployed-deployed-versions", "pb:currently-deployed-versions") or raise PactBroker::Client::Error.new(not_supported_message)
end

def currently_deployed_version_entities_for_pacticipant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Deployments
let(:environment_hash) do
{
_links: {
:'pb:currently-supported-versions' => {
:'pb:currently-supported-released-versions' => {
href: currently_supported_versions_url
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Deployments
let(:environment_hash) do
{
_links: {
:'pb:currently-deployed-versions' => {
:'pb:currently-deployed-deployed-versions' => {
href: currently_deployed_versions_url
}
}
Expand Down
2 changes: 1 addition & 1 deletion spec/service_providers/record_undeployment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def mock_test_environment
headers: pact_broker_response_headers,
body: {
_links: {
:'pb:currently-deployed-versions' => {
:'pb:currently-deployed-deployed-versions' => {
href: Pact.term( pact_broker.mock_service_base_url + currently_deployed_versions_placeholder_path, /^http.*/)
}
}
Expand Down

0 comments on commit 6f6ca2f

Please sign in to comment.