export BROKER_ENDPOINT=http://127.0.0.1:9101
export BROKER_STREAM=docs-051.ops
export BROKER_GROUP=docs-051-workers
export BROKER_CONSUMER=docs-051-reader
export BROKER_DIAG_FILE="${TMPDIR:-/tmp}/message-broker-docs-051-diagnostics.json"
Expected signal
Endpoint, stream, group, consumer, and diagnostics path are set.
Capture: Endpoint value, stream name, consumer group, and diagnostics path.
curl -i -X PUT \
-H 'Content-Type: application/json' \
--data '{}' \
"$BROKER_ENDPOINT/v1/streams/$BROKER_STREAM"
Expected signal
201 Created or 200 OK with stream metadata for the scoped smoke stream.
Capture: Status, stream name, response body, and route.
curl -i -X POST \
-H 'Content-Type: application/json' \
--data '{"message_id":"docs-051-1","payload":"operator-smoke","durability_mode":"local-append"}' \
"$BROKER_ENDPOINT/v1/streams/$BROKER_STREAM/records"
Expected signal
201 Created with offset, next offset, message id, and payload byte count.
Capture: Status, offset, message id, payload byte count, and stream name.
curl -i "$BROKER_ENDPOINT/health"
Expected signal
200 OK JSON with status, service, node id, storage status, auth mode, and release metadata.
Capture: Status, selected node, auth mode, storage status, and timestamp.
curl -i "$BROKER_ENDPOINT/metrics"
Expected signal
200 OK text when HTTP metrics exposure is enabled; 404 metrics_disabled means this runtime did not expose metrics.
Capture: Status, response body header, startup metrics flag, and exporter configuration.
curl -i "$BROKER_ENDPOINT/v1/audit/events?start_offset=0&max_records=25"
Expected signal
200 OK JSON with parsed audit events and record metadata when auth permits the administrator route.
Capture: Status, page parameters, event count, and redacted route names.
curl -i "$BROKER_ENDPOINT/v1/audit/export?start_offset=0&max_records=25"
Expected signal
200 OK application/x-ndjson with one payload-free audit record per line when auth permits the route.
Capture: Status, content type, record count, and redacted line sample.
mq cli --target "$BROKER_ENDPOINT" diagnostics collect \
--bundle-id docs-051-local \
--output "$BROKER_DIAG_FILE"
Expected signal
Diagnostics bundle JSON is written without payload contents.
Capture: Bundle path, schema/version field, redaction summary, and command status.
curl -i "$BROKER_ENDPOINT/streams/$BROKER_STREAM/retention/dry-run?max_bytes=1048576"
Expected signal
200 OK with a non-mutating retention plan.
Capture: Stream, policy input, planned action summary, and timestamp.
curl -i "$BROKER_ENDPOINT/streams/$BROKER_STREAM/tiering/readiness?max_age_ms=86400000"
Expected signal
200 OK with payload-free tiering readiness.
Capture: Readiness fields, stream, policy input, and timestamp.
curl -i "$BROKER_ENDPOINT/v1/streams/$BROKER_STREAM/records?start_offset=0&max_records=10&consumer_group=$BROKER_GROUP&consumer_id=$BROKER_CONSUMER"
Expected signal
200 OK with records, diagnostics, next offset, and end-of-stream signal.
Capture: Status, returned record count, consumer group, and redacted message ids.
curl -i "$BROKER_ENDPOINT/v1/replication/status"
Expected signal
200 OK with scheduler, transport, worker, checkpoint, target, or control status fields where configured.
Capture: Status, configured binding source, route body, and reviewer note.