Skip to content

test(ruler): add recording-rules ruler CRUD e2e tests#13

Open
44YHC wants to merge 1 commit into
metrico:mainfrom
44YHC:feat/ruler-api-tests
Open

test(ruler): add recording-rules ruler CRUD e2e tests#13
44YHC wants to merge 1 commit into
metrico:mainfrom
44YHC:feat/ruler-api-tests

Conversation

@44YHC

@44YHC 44YHC commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Cover the Loki (/loki/api/v1/rules) and Prometheus (/api/v1/rules) rule sets: create, read group, list namespace, list all, prometheus-format read, delete group and delete namespace. Reads that follow a write poll until the change settles, since the clustered deployment reads/writes the rules_dist Distributed table whose inserts propagate asynchronously.

Gate the suite on a rulerEnabled() helper mirroring the server's QRYN_RULER_ENABLED gate, and update the /api/v1/rules misc check to expect 404 when the ruler is disabled.

Cover the Loki (/loki/api/v1/rules) and Prometheus (/api/v1/rules) rule
sets: create, read group, list namespace, list all, prometheus-format
read, delete group and delete namespace. Reads that follow a write poll
until the change settles, since the clustered deployment reads/writes the
rules_dist Distributed table whose inserts propagate asynchronously.

Gate the suite on a rulerEnabled() helper mirroring the server's
QRYN_RULER_ENABLED gate, and update the /api/v1/rules misc check to expect
404 when the ruler is disabled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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