Skip to content

docs: document per-endpoint noise in keploy.yml - #1007

Open
prabaltripathiofficial wants to merge 3 commits into
mainfrom
docs/endpoint-noise
Open

prabaltripathiofficial wants to merge 3 commits into
mainfrom
docs/endpoint-noise

Conversation

@prabaltripathiofficial

@prabaltripathiofficial prabaltripathiofficial commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What has changed?

Documents per-endpoint noise (test.globalNoise.endpoints), added in keploy/keploy#5409: ignore a response field for one endpoint (method + path) at its exact place in the body, instead of a global entry that ignores the field name in every response.

versioned_docs/version-4.0.0/running-keploy/configuration-file.md:

  • a new Endpoint noise section after Test-Set noise: a keploy.yml example (under test:), which Test-Cases a rule applies to (required, case-sensitive path; optional method; {name} segments; host, query and trailing / ignored), exact body paths (any case, optional $.), arrays (items.at == items[].at, no positions, top-level arrays), {id} keys and which keys count as IDs, exact header names, value patterns, overlaps (first rule decides for the same field; rules on different fields all apply; a Test-Case's own noise wins; global field names cannot be narrowed), that streamed and gRPC responses and mock matching are not affected, and that keploy cloud replay adds the dashboard's rules after keploy.yml's;
  • the globalNoise bullet and the closing note mention the new field.

Related: keploy/keploy#5409 (feature), keploy/enterprise#3515, keploy/k8s-proxy#1409, keploy/enterprise-ui#2169. Merge when keploy#5409 and keploy/enterprise#3515 are released and keploy/enterprise-ui#2169 is deployed (the cloud-replay sentence and the dashboard depend on them).

Type of change

  • Documentation update (if none of the other choices apply).

How Has This Been Tested?

A Markdown-only change to one existing page; no new page, sidebar entry or component. Every {name}/{id} is inside inline code or a fenced block, so MDX does not parse it. I did not run yarn build / yarn serve locally (the machine could not hold the site's dependencies); the PR's build and Vale checks cover it.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.

test.globalNoise gets an endpoints list (keploy/keploy#5409): noise for
one endpoint, at an exact field path from the top of the response body.
The configuration page now describes the rule's shape, which tests it
applies to, how body paths, arrays, id keys, patterns and overlaps are
read, and how keploy cloud replay combines keploy.yml's rules with the
ones saved in the dashboard.

Signed-off-by: Prabal Tripathi <prabaltripathiofficial@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 08:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Review fixes: a top-level array starts from its elements' keys
(`version` or `[].version`); endpoint noise does not apply to streamed
or gRPC responses; `{id}` in a body path is defined (which keys count as
IDs, and that a new ID is still a difference); body paths match without
case and may start with `$.`; `path` is required and case-sensitive;
header names match exactly; how rules on different fields and global
field names combine. The example sits under `test:` and uses a date
pattern that does not expire. Keploy terms and serial commas follow
STYLE.md.

Signed-off-by: Prabal Tripathi <prabaltripathiofficial@gmail.com>
Review round 2: say plainly that streamed and gRPC responses get no
endpoint rules, and that a global or test-set field name ignores the
field in the responses it applies to.

Signed-off-by: Prabal Tripathi <prabaltripathiofficial@gmail.com>
@prabaltripathiofficial

Copy link
Copy Markdown
Member Author

Review rounds

An independent reviewer checked every statement in the new section against keploy/keploy#5409's code (and keploy/enterprise#3515 for cloud replay), round after round until a round found nothing new.

Round Result Fixed in
1 3 🟡: the top-level array example was wrong; "applies to HTTP test responses" overclaimed (streamed and gRPC responses are not covered); {id} was not defined. Plus nits: case, required path, headers, overlaps, example under test:, style f51a94d
2 Two wording nits 933d991
3 No new findings

In brief

  • The section describes test.globalNoise.endpoints: one endpoint, an exact field path, how arrays, {id}, patterns and overlaps are read, and that cloud replay adds the dashboard's rules after keploy.yml's.
  • The YAML example was parsed to check it loads as the rules shown.

This branch has not been deployed

No deployments
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.

2 participants