Skip to content

Commit

Permalink
DT-1814 - Fix for incorrect HTTP method and added httpmethod check (#179
Browse files Browse the repository at this point in the history
)
  • Loading branch information
palatsangeetha authored Oct 3, 2024
1 parent 016bce6 commit 99a4a16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ protected Stream<? extends ConformanceCheck> createSubChecks() {
return Stream.of(
new UrlPathCheck(
EblIssuanceRole::isCarrier, getMatchedExchangeUuid(), "/ebl-issuance-requests"),
new HttpMethodCheck(EblIssuanceRole::isCarrier,getMatchedExchangeUuid(),"PUT"),
new ResponseStatusCheck(
EblIssuanceRole::isPlatform, getMatchedExchangeUuid(), expectedStatus),
new ApiHeaderCheck(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ protected Stream<? extends ConformanceCheck> createSubChecks() {
return Stream.of(
new UrlPathCheck(
EblIssuanceRole::isPlatform, getMatchedExchangeUuid(), "/ebl-issuance-responses"),
new HttpMethodCheck(EblIssuanceRole::isPlatform, getMatchedExchangeUuid(), "POST"),
new ResponseStatusCheck(
EblIssuanceRole::isCarrier, getMatchedExchangeUuid(), expectedStatus),
new ApiHeaderCheck(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private void sendIssuanceRequest(JsonNode actionPrompt) {

jsonRequestBody.put("issuanceManifestSignedContent", payloadSigner.sign(issuanceManifest.toString()));

syncCounterpartPost(
syncCounterpartPut(
"/v%s/ebl-issuance-requests".formatted(apiVersion.charAt(0)),
jsonRequestBody);

Expand Down

0 comments on commit 99a4a16

Please sign in to comment.