Skip to content

feat(cli): allow overriding the events endpoint via CHECKLY_MQTT_URL [RED-876] [ship] - #1441

Merged
sorccu merged 1 commit into
mainfrom
simo/red-876-checkly-mqtt-url-override
Aug 18, 2026
Merged

feat(cli): allow overriding the events endpoint via CHECKLY_MQTT_URL [RED-876] [ship]#1441
sorccu merged 1 commit into
mainfrom
simo/red-876-checkly-mqtt-url-override

Conversation

@sorccu

@sorccu sorccu commented Aug 18, 2026

Copy link
Copy Markdown
Member

What

Adds a CHECKLY_MQTT_URL environment variable that overrides the MQTT/events endpoint in the local environment, mirroring the existing CHECKLY_API_URL override for the API URL.

Why

The events endpoint was hardcoded per environment. A local development setup whose event stream is served from a different broker had no way to point the CLI at it, so checkly test would run the session but wait for run events forever. With the override, e.g. CHECKLY_MQTT_URL=ws://localhost:8085/mqtt, the CLI receives events from the local broker and exits normally (verified end to end).

Testing

Unit test in config.spec.ts covers the default and the override. Also verified manually against a local backend.

🤖 Generated with Claude Code

…[RED-876]

In the local environment the MQTT/events endpoint was hardcoded, so setups
that serve the event stream from a different broker had no way to point the
CLI at it and 'checkly test' would wait for run events forever. The new
CHECKLY_MQTT_URL variable overrides the local endpoint, mirroring how
CHECKLY_API_URL overrides the API URL.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sorccu sorccu changed the title feat(cli): allow overriding the events endpoint via CHECKLY_MQTT_URL [RED-876] feat(cli): allow overriding the events endpoint via CHECKLY_MQTT_URL [RED-876] [ship] Aug 18, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: ship/show PR from a same-repo branch.

@sorccu
sorccu enabled auto-merge (squash) August 18, 2026 18:00
@sorccu
sorccu merged commit 330ac52 into main Aug 18, 2026
26 of 30 checks passed
@sorccu
sorccu deleted the simo/red-876-checkly-mqtt-url-override branch August 18, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant