mock/wait/dataplane
| Step | Summary |
|---|---|
mock/wait/dataplane/http_request |
Wait for an inbound HTTP request that arrives through the engine connector's data plane. |
mock/wait/dataplane/http_request
Wait for an inbound HTTP request that arrives through the engine connector's data plane.
The same wait as mock/wait/http_request, for a mock the system under test must not call directly: a test offers an asset on the engine connector whose data address is the mock, and the SUT negotiates that asset and calls through its data plane. What differs is what the run announces — not the mock URL, which is only the data plane's target, but the offer to negotiate: the asset, and the engine connector's DSP URL and identity from the run's infrastructure binding.
Inputs
| Parameter | Type | Required | Default | Also accepts | Description |
|---|---|---|---|---|---|
mock |
MockInstance | yes | — | — | The mock to wait on, as returned by the step that registered it. |
timeout_s |
number | no | 30.0 |
— | Seconds to wait before failing. |
asset_id |
string | yes | — | — | The asset on the engine connector whose data address is the mock — the offer the system under test negotiates to reach it. |
Output — the value assertions and returns: read
The inbound request a mock endpoint received.
| Field | Type | Description |
|---|---|---|
request_method |
string | HTTP method of the inbound request. |
request_path |
string | Path the request arrived on. |
request_headers |
object | Headers of the inbound request. |
request_query_params |
object | Query string parameters of the inbound request. |
request_body |
any | Body of the inbound request. |
elapsed_ms |
integer | Milliseconds spent waiting before the request arrived. |
Nested objects
MockInstance
A registered mock, as the steps that use it later need to see it.
| Field | Type | Required | Default | Also accepts | Description |
|---|---|---|---|---|---|
endpoint_id |
string | no | '' |
— | Identifier the mock was registered under, when it was given one. |
path |
string | yes | — | — | Path the mock listens on. |
method |
string | yes | — | — | HTTP method the mock answers. |
base_mock_url |
string | yes | — | — | Root URL of the testlab mock server. |
full_mock_url |
string | yes | — | — | Address the system under test calls — root plus path. |