mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 01:35:36 +00:00
test(movements): check the allowlist against the real movements path builder
The read-path test listed a hand-written movements path; it now also builds paths with movement::request_path, so the test fails offline if the allowlist and the builder drift apart (Pullfrog on #80). Claude-Session: https://claude.ai/code/session_01RqPPVeVDrnLoP7NUZmLRxY
This commit is contained in:
parent
edfcf0bef9
commit
9373be222a
1 changed files with 9 additions and 0 deletions
|
|
@ -534,6 +534,15 @@ mod tests {
|
||||||
] {
|
] {
|
||||||
assert!(is_read_path(path), "{path}");
|
assert!(is_read_path(path), "{path}");
|
||||||
}
|
}
|
||||||
|
// Paths another module builds come from its own builder, so the
|
||||||
|
// allowlist cannot drift from them.
|
||||||
|
let query = MovementQuery::default();
|
||||||
|
for path in [
|
||||||
|
movement::request_path(&query, None, 1),
|
||||||
|
movement::request_path(&query, Some("BBCA"), 3),
|
||||||
|
] {
|
||||||
|
assert!(is_read_path(&path), "{path}");
|
||||||
|
}
|
||||||
for path in [
|
for path in [
|
||||||
"/order/buy",
|
"/order/buy",
|
||||||
"/login/refresh",
|
"/login/refresh",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue