Skip to content

Commit

Permalink
PYIC-7777: change successful evcs post status code to 202 (#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshuit914 authored Nov 21, 2024
2 parents 7337d3a + b0185be commit 578dd4f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void testRetrieveVcRequestReturns403(MockServer mockServer) {
}

@Pact(provider = "EvcsProvider", consumer = "IpvCoreBack")
public RequestResponsePact validCreateUserVcReturnsMessageIdWith200(
public RequestResponsePact validCreateUserVcReturnsMessageIdWith202(
PactDslWithProvider builder) {
return builder.given("test-evcs-api-key is a valid API key")
.uponReceiving("A request to create EVCS user VCs")
Expand All @@ -263,7 +263,7 @@ public RequestResponsePact validCreateUserVcReturnsMessageIdWith200(
ContentType.APPLICATION_JSON.toString()))
.body(getRequestBodyForUserVC())
.willRespondWith()
.status(200)
.status(202)
.toPact();
}

Expand Down Expand Up @@ -291,8 +291,8 @@ private DslPart getRequestBodyForUserVC() {
}

@Test
@PactTestFor(pactMethod = "validCreateUserVcReturnsMessageIdWith200")
void testCreateVcRequestReturnsUsersVcWith200(MockServer mockServer) throws Exception {
@PactTestFor(pactMethod = "validCreateUserVcReturnsMessageIdWith202")
void testCreateVcRequestReturnsUsersVcWith202(MockServer mockServer) throws Exception {
// Under Test
EvcsClient evcsClient = new EvcsClient(mockConfigService);
try {
Expand Down

0 comments on commit 578dd4f

Please sign in to comment.