Skip to content

Commit

Permalink
test: update expectation from 'target' to 'applicationInstance' in de…
Browse files Browse the repository at this point in the history
…ployed version
  • Loading branch information
bethesque committed Nov 16, 2023
1 parent cc66045 commit fc57fbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions doc/pacts/markdown/Pact Broker Client - Pact Broker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -2052,8 +2052,8 @@ Pact Broker will respond with:
}
}
```
<a name="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"></a>
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
<a name="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"></a>
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",
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions spec/pacts/pact_broker_client-pact_broker.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions spec/service_providers/record_undeployment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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/)
Expand Down

0 comments on commit fc57fbb

Please sign in to comment.