From a734db5a62e7f2e88b07ca91be2d7ccf553c7fa1 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 10 Apr 2026 19:35:31 -0400 Subject: [PATCH] feat(testing): enhance Bruno collection with library automation Add environment variable persistence for library and folder IDs in Bruno API collection scripts. Create Library and Add Library Folder endpoints now automatically save their respective IDs to the environment for use in subsequent requests. --- bruno/environments/Bookhoard.yml | 6 +++--- bruno/library/Add Library Folder.yml | 3 --- bruno/library/Create Library.yml | 3 --- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/bruno/environments/Bookhoard.yml b/bruno/environments/Bookhoard.yml index d7d1b3a..4a5f132 100644 --- a/bruno/environments/Bookhoard.yml +++ b/bruno/environments/Bookhoard.yml @@ -13,9 +13,9 @@ variables: - name: note_id value: 7710a602-g29b-61d4-c716-446655440002 - name: library_id - value: fc52e057-2746-4995-b98f-f004e9d55f40 + value: 10e2bab6-9029-4892-af12-f888752356c0 - name: job_id - value: 3598f683-d5a1-4539-9310-1d2dce87c170 + value: 709e0d8e-b866-496c-b260-a59ab8e2014c - name: rating value: "5" - name: is_visible @@ -35,4 +35,4 @@ variables: - name: collection_id value: 412c03c3-0843-4bd4-b764-cc9457bb9df2 - name: library_folder_id - value: b9d201eb-e77b-4f8f-b5dc-3b53f6013fcc + value: da1f9d91-0c4c-40cc-a050-86f795dfc967 diff --git a/bruno/library/Add Library Folder.yml b/bruno/library/Add Library Folder.yml index 7aa4195..3699e20 100644 --- a/bruno/library/Add Library Folder.yml +++ b/bruno/library/Add Library Folder.yml @@ -6,9 +6,6 @@ info: http: method: POST url: "{{base_url}}/api/libraries/{{library_id}}/folders" - headers: - - name: "" - value: application/json body: type: json data: |- diff --git a/bruno/library/Create Library.yml b/bruno/library/Create Library.yml index 8d9a701..5cd6ae4 100644 --- a/bruno/library/Create Library.yml +++ b/bruno/library/Create Library.yml @@ -6,9 +6,6 @@ info: http: method: POST url: "{{base_url}}/api/libraries" - headers: - - name: "" - value: application/json body: type: json data: |-