p:http-request 132 (NW)

Test timeout on p:http-request when fail-on-timeout is true.

Test nw-http-request-132.xml is expected to fail with error code err:XC0078.

It requires the following features: p:http-request.

The pipeline


<p:declare-step xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="c xs" version="3.0">
   <p:output port="result"/>
   <p:http-request method="get" href="http://localhost:8246/service/slow" parameters="map{'timeout': 2, 'fail-on-timeout': true()}">
      <p:with-input>
         <p:empty/>
      </p:with-input>
   </p:http-request>
   <p:identity>
      <p:with-input pipe="report"/>
   </p:identity>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

26 Dec 2024, Norman Walsh

Initial commit.