Skip to content

Commit 9164f98

Browse files
committed
fix(sap-demo-java): correct globalNoise schema to nested sections
Keploy's GlobalNoise is typed `map[string]map[string][]string` — two levels of nesting. The committed keploy.yml instead used flat dotted keys under `globalNoise.global` (e.g. `header.X-Correlation-Id: []`, `body.correlationId: []`), which parse as a single string key with a literal dot in it. Keploy then never matched those keys against the (header, field) / (body, field) lookups during noise suppression, so the curated noise block was silently a no-op. Re-nest every entry: `header.X-Correlation-Id` becomes `header: { X-Correlation-Id: [] }`, and all the `body.*` keys move under a single `body:` parent. The actuator/health DataSource status comment is preserved above `status: []`. Signed-off-by: slayerjain <shubhamkjain@outlook.com>
1 parent ceceb83 commit 9164f98

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

sap-demo-java/keploy.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@ test:
2121
selectedTests: {}
2222
globalNoise:
2323
global:
24-
header.X-Correlation-Id: []
25-
body.correlationId: []
26-
body.timestamp: []
27-
body.installedOn: []
28-
body.id: []
29-
# /actuator/health Spring Boot DataSourceHealthIndicator can
30-
# flip between UP and DOWN depending on Hikari pool warmup
31-
# state at the instant of the probe; the actual DB
32-
# connectivity is already proven by every downstream test
33-
# that hits the persistence layer successfully.
34-
body.status: []
24+
header:
25+
X-Correlation-Id: []
26+
body:
27+
correlationId: []
28+
timestamp: []
29+
installedOn: []
30+
id: []
31+
# /actuator/health Spring Boot DataSourceHealthIndicator can
32+
# flip between UP and DOWN depending on Hikari pool warmup
33+
# state at the instant of the probe; the actual DB
34+
# connectivity is already proven by every downstream test
35+
# that hits the persistence layer successfully.
36+
status: []
3537
test-sets: {}
3638
replaceWith:
3739
global:

0 commit comments

Comments
 (0)