Files
bruno/packages/bruno-tests/collection/scripting/api/bru/getAllCollectionVars.bru
sanish chirayath 17c3dc0e2b refactor: comment out unused APIs (#7323)
* 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
2026-03-04 18:00:10 +05:30

35 lines
823 B
Plaintext

meta {
name: getAllCollectionVars
type: http
seq: 29
}
get {
url: {{host}}/ping
body: none
auth: none
}
script:pre-request {
// TODO: skipped because getAllCollectionVars does not update the UI
bru.runner.skipRequest();
return;
bru.setCollectionVar("testCollectionA", "valueA");
bru.setCollectionVar("testCollectionB", "valueB");
}
tests {
test("should return all collection vars", function() {
const vars = bru.getAllCollectionVars();
expect(vars.testCollectionA).to.equal("valueA");
expect(vars.testCollectionB).to.equal("valueB");
});
test("should return a shallow copy", function() {
const vars = bru.getAllCollectionVars();
vars.testCollectionA = "mutated";
const vars2 = bru.getAllCollectionVars();
expect(vars2.testCollectionA).to.equal("valueA");
});
}