mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 20:55:41 +00:00
* refactor: comment out unused API hints in autocomplete.js * refactor: comment out unused API translations in postman and bruno translators Temporarily disable certain API translations due to UI update issues affecting their functionality. A note has been added to restore these translations once the UI fixes are implemented. * refactor: temporarily skip tests for collection variable translations due to UI update issues Commented out tests related to `setCollectionVar`, `deleteCollectionVar`, and related functionalities until the necessary UI updates are implemented. A note has been added to restore these tests once the fixes are live. * refactor: comment out variable deletion and retrieval methods due to UI sync issues * revert: ping.bru * refactor: update postman translation tests to enable previously skipped cases
37 lines
890 B
Plaintext
37 lines
890 B
Plaintext
meta {
|
|
name: deleteAllCollectionVars
|
|
type: http
|
|
seq: 28
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
script:pre-request {
|
|
// TODO: skipped because deleteAllCollectionVars does not update the UI
|
|
bru.runner.skipRequest();
|
|
return;
|
|
bru.setCollectionVar("testDelAllCollectionA", "a");
|
|
bru.setCollectionVar("testDelAllCollectionB", "b");
|
|
}
|
|
|
|
tests {
|
|
const savedCollectionVars = bru.getAllCollectionVars();
|
|
bru.deleteAllCollectionVars();
|
|
|
|
test("should delete all collection vars", function() {
|
|
const valA = bru.getCollectionVar("testDelAllCollectionA");
|
|
const valB = bru.getCollectionVar("testDelAllCollectionB");
|
|
expect(valA).to.be.undefined;
|
|
expect(valB).to.be.undefined;
|
|
});
|
|
|
|
// Restore collection vars for subsequent requests
|
|
for (const [key, value] of Object.entries(savedCollectionVars)) {
|
|
bru.setCollectionVar(key, value);
|
|
}
|
|
}
|