From fc57fbbd5daba58f96b25950e11f89134e70ace7 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 16 Nov 2023 13:26:08 +1100 Subject: [PATCH] test: update expectation from 'target' to 'applicationInstance' in deployed version --- doc/pacts/markdown/Pact Broker Client - Pact Broker.md | 8 ++++---- spec/pacts/pact_broker_client-pact_broker.json | 4 ++-- spec/service_providers/record_undeployment_spec.rb | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/pacts/markdown/Pact Broker Client - Pact Broker.md b/doc/pacts/markdown/Pact Broker Client - Pact Broker.md index 39cb014d..8fe63a35 100644 --- a/doc/pacts/markdown/Pact Broker Client - Pact Broker.md +++ b/doc/pacts/markdown/Pact Broker Client - Pact Broker.md @@ -90,7 +90,7 @@ * [A request to list the latest pacts](#a_request_to_list_the_latest_pacts_given_a_pact_between_Condor_and_the_Pricing_Service_exists) given a pact between Condor and the Pricing Service exists -* [A request to list the versions deployed to an environment for a pacticipant name and target](#a_request_to_list_the_versions_deployed_to_an_environment_for_a_pacticipant_name_and_target_given_an_version_is_deployed_to_environment_with_UUID_16926ef3-590f-4e3f-838e-719717aa88c9_with_target_customer-1) given an version is deployed to environment with UUID 16926ef3-590f-4e3f-838e-719717aa88c9 with target customer-1 +* [A request to list the versions deployed to an environment for a pacticipant name and application instance](#a_request_to_list_the_versions_deployed_to_an_environment_for_a_pacticipant_name_and_application_instance_given_an_version_is_deployed_to_environment_with_UUID_16926ef3-590f-4e3f-838e-719717aa88c9_with_target_customer-1) given an version is deployed to environment with UUID 16926ef3-590f-4e3f-838e-719717aa88c9 with target customer-1 * [A request to mark a deployed version as not currently deploye](#a_request_to_mark_a_deployed_version_as_not_currently_deploye_given_a_currently_deployed_version_exists) given a currently deployed version exists @@ -2052,8 +2052,8 @@ Pact Broker will respond with: } } ``` - -Given **an version is deployed to environment with UUID 16926ef3-590f-4e3f-838e-719717aa88c9 with target customer-1**, upon receiving **a request to list the versions deployed to an environment for a pacticipant name and target** from Pact Broker Client, with + +Given **an version is deployed to environment with UUID 16926ef3-590f-4e3f-838e-719717aa88c9 with target customer-1**, upon receiving **a request to list the versions deployed to an environment for a pacticipant name and application instance** from Pact Broker Client, with ```json { "method": "GET", @@ -2075,7 +2075,7 @@ Pact Broker will respond with: "_embedded": { "deployedVersions": [ { - "target": "customer-1", + "applicationInstance": "customer-1", "_links": { "self": { "href": "http://localhost:1234/PLACEHOLDER-DEPLOYED-VERSION-ff3adecf-cfc5-4653-a4e3-f1861092f8e0" diff --git a/spec/pacts/pact_broker_client-pact_broker.json b/spec/pacts/pact_broker_client-pact_broker.json index 768bc4fe..53b4f953 100644 --- a/spec/pacts/pact_broker_client-pact_broker.json +++ b/spec/pacts/pact_broker_client-pact_broker.json @@ -1928,7 +1928,7 @@ } }, { - "description": "a request to list the versions deployed to an environment for a pacticipant name and target", + "description": "a request to list the versions deployed to an environment for a pacticipant name and application instance", "providerState": "an version is deployed to environment with UUID 16926ef3-590f-4e3f-838e-719717aa88c9 with target customer-1", "request": { "method": "GET", @@ -1947,7 +1947,7 @@ "_embedded": { "deployedVersions": [ { - "target": "customer-1", + "applicationInstance": "customer-1", "_links": { "self": { "href": "http://localhost:1234/PLACEHOLDER-DEPLOYED-VERSION-ff3adecf-cfc5-4653-a4e3-f1861092f8e0" diff --git a/spec/service_providers/record_undeployment_spec.rb b/spec/service_providers/record_undeployment_spec.rb index c939d933..1a78b8d9 100644 --- a/spec/service_providers/record_undeployment_spec.rb +++ b/spec/service_providers/record_undeployment_spec.rb @@ -86,7 +86,7 @@ def mock_test_environment def mock_deployed_versions_search_results pact_broker .given("an version is deployed to environment with UUID 16926ef3-590f-4e3f-838e-719717aa88c9 with target customer-1") - .upon_receiving("a request to list the versions deployed to an environment for a pacticipant name and target") + .upon_receiving("a request to list the versions deployed to an environment for a pacticipant name and application instance") .with( method: "GET", path: currently_deployed_versions_placeholder_path, @@ -100,7 +100,7 @@ def mock_deployed_versions_search_results _embedded: { deployedVersions: [ { - target: application_instance, + applicationInstance: application_instance, _links: { self: { href: Pact.term(pact_broker.mock_service_base_url + deployed_version_placeholder_path, /^http/)