mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-03 16:10:37 +00:00
test: tidy runnable app paths scope test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ee9d0d2473
commit
99f95b5307
+2
-3
@@ -25,9 +25,8 @@ async fn test_runnable_app_paths_filtered_by_token_scope(db: Pool<Postgres>) ->
|
||||
|
||||
for (id, path) in [(999801i64, "u/test-user/a"), (999802, "u/test-user-2/b")] {
|
||||
sqlx::query(
|
||||
"INSERT INTO app (id, workspace_id, path, summary, policy, versions, extra_perms)
|
||||
VALUES ($1, 'test-workspace', $2, '', '{}'::jsonb, '{}',
|
||||
'{\"u/test-user\": true}'::jsonb)",
|
||||
"INSERT INTO app (id, workspace_id, path, summary, policy, versions)
|
||||
VALUES ($1, 'test-workspace', $2, '', '{}'::jsonb, '{}')",
|
||||
)
|
||||
.bind(id)
|
||||
.bind(path)
|
||||
@@ -2898,7 +2898,7 @@ async fn list_paths_from_workspace_runnable(
|
||||
let mut tx = user_db.begin(&authed).await?;
|
||||
let mut runnables = sqlx::query_scalar!(
|
||||
r#"SELECT a.path
|
||||
FROM workspace_runnable_dependencies wru
|
||||
FROM workspace_runnable_dependencies wru
|
||||
JOIN app a
|
||||
ON wru.app_path = a.path AND wru.workspace_id = a.workspace_id
|
||||
WHERE wru.runnable_path = $1 AND wru.runnable_is_flow = $2 AND wru.workspace_id = $3"#,
|
||||
|
||||
Reference in New Issue
Block a user