Skip to content

Commit

Permalink
Merge pull request #644 from authorjapps/id_url_shortened
Browse files Browse the repository at this point in the history
PR - Shorten Mock URL(Tech Debt)
  • Loading branch information
authorjapps authored Mar 13, 2024
2 parents 9606611 + 5a78a42 commit fcbe47b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public void bioViaJson() throws Exception{
" ]\n" +
"}";

givenThat(WireMock.get(urlEqualTo("/identitymanagement-services/identitymanagement-services/person/internalHandle/person_id_009/biographics/default"))
givenThat(WireMock.get(urlEqualTo("/id-services/id-services/person/id/p_id_009/bio/default"))
.willReturn(aResponse()
.withStatus(200)
.withHeader("Content-Type", APPLICATION_JSON)
.withBody(jsonBodyRequest)));

ApacheHttpClientExecutor httpClientExecutor = new ApacheHttpClientExecutor();
ClientRequest clientExecutor = httpClientExecutor.createRequest("http://localhost:9073/identitymanagement-services/identitymanagement-services/person/internalHandle/person_id_009/biographics/default");
ClientRequest clientExecutor = httpClientExecutor.createRequest("http://localhost:9073/id-services/id-services/person/id/p_id_009/bio/default");
clientExecutor.setHttpMethod("GET");
ClientResponse serverResponse = clientExecutor.execute();

Expand Down

0 comments on commit fcbe47b

Please sign in to comment.