void startBp_dsoError()

in src/it/java/com/epam/digital/data/platform/bpwebservice/it/wsendpoint/StartBpEndpointIT.java [84:98]


  void startBp_dsoError() {
    var dsoRequest = fileContent("/startBp/dsoError/json/dsoRequest.json");
    digitalSignatureMockServer().addStubMapping(stubFor(post(urlPathEqualTo("/api/eseal/sign"))
        .withRequestBody(equalToJson(dsoRequest))
        .withHeader("X-Access-Token", equalTo("token"))
        .willReturn(aResponse().withStatus(400)
            .withHeader("Content-Type", "application/json")
            .withBody("{}"))));

    var requestEnvelope = fileSource("/startBp/dsoError/xml/startBpRequest.xml");
    var responseEnvelope = fileSource("/startBp/dsoError/xml/startBpResponse.xml");
    mockClient().sendRequest(withSoapEnvelope(requestEnvelope))
        .andExpect(serverOrReceiverFault("Digital signature runtime error"))
        .andExpect(soapEnvelope(responseEnvelope));
  }