Skip to content

Commit

Permalink
release: v1.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed May 7, 2024
1 parent 411289d commit e149c8d
Show file tree
Hide file tree
Showing 6 changed files with 327 additions and 36 deletions.
36 changes: 4 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/bruno-app/src/components/Sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const Sidebar = () => {
Star
</GitHubButton> */}
</div>
<div className="flex flex-grow items-center justify-end text-xs mr-2">v1.16.1</div>
<div className="flex flex-grow items-center justify-end text-xs mr-2">v1.17.0</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/bruno-app/src/providers/App/useTelemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const trackStart = () => {
event: 'start',
properties: {
os: platformLib.os.family,
version: '1.16.1'
version: '1.17.0'
}
});
};
Expand Down
4 changes: 2 additions & 2 deletions packages/bruno-electron/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v1.16.1",
"version": "v1.17.0",
"name": "bruno",
"description": "Opensource API Client for Exploring and Testing APIs",
"homepage": "https://www.usebruno.com",
Expand All @@ -21,7 +21,7 @@
"dependencies": {
"@aws-sdk/credential-providers": "3.525.0",
"@usebruno/common": "0.1.0",
"@usebruno/js": "0.11.0",
"@usebruno/js": "0.12.0",
"@usebruno/lang": "0.12.0",
"@usebruno/schema": "0.7.0",
"about-window": "^1.15.2",
Expand Down
139 changes: 139 additions & 0 deletions packages/bruno-tests/collection/echo/supermetrics.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
meta {
name: supermetrics json visualize
type: http
seq: 5
}

post {
url: https://testbench-sanity.usebruno.com/api/echo/json
body: json
auth: none
}

headers {
foo: bar
}

auth:basic {
username: asd
password: j
}

auth:bearer {
token:
}

body:json {
{
"notes": {
"runtime_sec": 5,
"result_rows": 4,
"query_count": 6
},
"fields": [
{
"name": "Count",
"type": "number",
"data_type": "number"
},
{
"name": "Name",
"type": "string",
"data_type": "string"
},
{
"name": "Age",
"type": "number",
"data_type": "number"
},
{
"name": "Email",
"type": "email",
"data_type": "string"
},
{
"name": "Place",
"type": "string",
"data_type": "string"
}
],
"data": [
{
"id": null,
"name": "Name",
"age": "Age",
"email": "Email",
"city": "City"
},
{
"id": 1,
"name": "John Doe",
"age": 30,
"email": "[email protected]",
"city": "New York"
},
{
"id": 2,
"name": "Jane Smith",
"age": 25,
"email": "[email protected]",
"city": "Los Angeles"
},
{
"id": 3,
"name": "Bob Johnson",
"age": 35,
"email": "[email protected]",
"city": "Chicago"
},
{
"id": 4,
"name": "Alice Williams",
"age": 28,
"email": "[email protected]",
"city": "San Francisco"
}
]
}

}

assert {
res.status: eq 200
}

script:pre-request {
const { URL } = require('url');

const reqUrl = new URL(req.url);

reqUrl.searchParams.delete('returnQueryIDafterSeconds');
reqUrl.searchParams.delete('separateFetchQuery');
reqUrl.searchParams.delete('pretty');
reqUrl.searchParams.delete('displayLog');
reqUrl.searchParams.delete('triggerID');
reqUrl.searchParams.delete('hashForQIDFDB');
reqUrl.searchParams.delete('queryType');
reqUrl.searchParams.delete('queryCount');

reqUrl.searchParams.append("cacheBuster", new Date().toISOString());

req.setUrl(reqUrl.href);

}

script:post-response {
const visualizeNotes = require("./lib/notes");

bru.visualize(visualizeNotes(res));
}

tests {
test("should return json", function() {
const data = res.getBody();
expect(res.getBody()).to.eql({
"hello": "bruno"
});
});

}
Loading

0 comments on commit e149c8d

Please sign in to comment.