mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-12 16:02:56 +00:00
style: rustfmt scopes tests
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FHGE3ynoAu6yrgeg4kLwL
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
42851397fe
commit
3636374f46
@@ -936,10 +936,31 @@ mod tests {
|
||||
assert!(!ok(&format!("/api/w/ws/jobs/run/p/{own}"), "POST"));
|
||||
assert!(!ok("/api/w/ws/variables/get_value/u/admin/secret", "GET"));
|
||||
let run = |path: &str, method: &str| flow_run_read_route_job(path, method);
|
||||
assert_eq!(run(&format!("/api/w/ws/jobs/result_by_id/{other}/b"), "GET"), Some(other));
|
||||
assert_eq!(run(&format!("/api/w/ws/jobs_u/completed/get_result/{other}"), "GET"), Some(other));
|
||||
assert_eq!(run(&format!("/api/w/ws/jobs/flow/user_states/{other}/k"), "POST"), Some(other));
|
||||
assert_eq!(run(&format!("/api/w/ws/jobs_u/completed/delete/{other}"), "POST"), None);
|
||||
assert_eq!(
|
||||
run(&format!("/api/w/ws/jobs/result_by_id/{other}/b"), "GET"),
|
||||
Some(other)
|
||||
);
|
||||
assert_eq!(
|
||||
run(
|
||||
&format!("/api/w/ws/jobs_u/completed/get_result/{other}"),
|
||||
"GET"
|
||||
),
|
||||
Some(other)
|
||||
);
|
||||
assert_eq!(
|
||||
run(
|
||||
&format!("/api/w/ws/jobs/flow/user_states/{other}/k"),
|
||||
"POST"
|
||||
),
|
||||
Some(other)
|
||||
);
|
||||
assert_eq!(
|
||||
run(
|
||||
&format!("/api/w/ws/jobs_u/completed/delete/{other}"),
|
||||
"POST"
|
||||
),
|
||||
None
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user