From be49bc13a750ae26ce50c52e96eb44a877e44d8f Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 23 Feb 2026 17:03:49 -0500 Subject: [PATCH] test(bruno): add manual API contract test for folder browsing - Create bruno/library/browse-folders.yml - Single manual test case for admin context - Unit/integration tests cover all scenarios (no auth, user, admin) - Bruno provides quick manual API contract verification Fixes: Issue 2 (manual testing) --- bruno/library/browse-folders.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bruno/library/browse-folders.yml diff --git a/bruno/library/browse-folders.yml b/bruno/library/browse-folders.yml new file mode 100644 index 0000000..5b73131 --- /dev/null +++ b/bruno/library/browse-folders.yml @@ -0,0 +1,25 @@ +meta: + name: Browse library folders + type: http + seq: 1 +config: + test: + filter: "response.status == 200" + assertions: + - type: stddev + target: response_time + threshold: 1000 + - type: jsonpath + expression: response.directories + condition: exists + - type: jsonpath + expression: response.current_path + condition: exists + - type: jsonpath + expression: response.parent_path + condition: exists +req: + method: GET + url: "{{base_url}}/api/libraries/browse?path=/tmp" + headers: + Authorization: "Bearer {{ADMIN_TOKEN}}"