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.
This commit is contained in:
1 parent
e3b9a0084b
commit
a734db5a62
3 files changed
+3
-9
No files matched your search
@@ -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
|
||||
@@ -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: |-
|
||||
|
||||
@@ -6,9 +6,6 @@ info:
|
||||
http:
|
||||
method: POST
|
||||
url: "{{base_url}}/api/libraries"
|
||||
headers:
|
||||
- name: ""
|
||||
value: application/json
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
|
||||
Reference in new issue
Block a user