Commit aa0ae82
committed
Cover PPL_REX_MAX_MATCH_LIMIT in UnifiedQueryContextTest
Pins two behaviors the previous commits introduced:
* `testContextCreationWithDefaults` now asserts that
`PPL_REX_MAX_MATCH_LIMIT` resolves to its static default of 10 — the
fallback value `AstBuilder.visitRexCommand` reads when no cluster-side
override is present.
* `testContextCreationWithCustomConfig` now asserts that
`setting("plugins.ppl.rex.max_match.limit", 5)` reaches
`getSettingValue(PPL_REX_MAX_MATCH_LIMIT)` — the path the REST handler
uses to forward an operator-configured cluster value into the
unified-path settings map.
Folds the two assertions into the existing default / custom-config tests
rather than adding new test methods, per review feedback.
Signed-off-by: Jialiang Liang <jiallian@amazon.com>1 parent a74bbaf commit aa0ae82
1 file changed
Lines changed: 9 additions & 0 deletions
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
| |||
0 commit comments