Skip to content

Commit 0f74857

Browse files
feat: add batch query cassette for commit 17b30e96 (#4772)
This PR adds a new batch query cassette to the `apitester` tool to test the commit `17b30e96476be70b8773b2b807bab857fd3ceb39` and captures the current API behavior in a snapshot. This allows us make commit queries be cassetted in osv-scanner. --- *PR created automatically by Jules for task [1576992968096852083](https://jules.google.com/task/1576992968096852083) started by @another-rex* Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 7433b05 commit 0f74857

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
[Test/cassette_batch_query/TestBatchQueryEndpoint/CommitQuery_protobuf - 1]
3+
{
4+
"results": [
5+
{
6+
"vulns": [
7+
{
8+
"id": "CVE-2021-22569",
9+
"modified": "<RFC3339 date with the year 2026>"
10+
},
11+
{
12+
"id": "CVE-2022-3171",
13+
"modified": "<RFC3339 date with the year 2026>"
14+
},
15+
{
16+
"id": "CVE-2022-3509",
17+
"modified": "<RFC3339 date with the year 2026>"
18+
},
19+
{
20+
"id": "CVE-2022-3510",
21+
"modified": "<RFC3339 date with the year 2026>"
22+
},
23+
{
24+
"id": "CVE-2024-2410",
25+
"modified": "<RFC3339 date with the year 2025>"
26+
},
27+
{
28+
"id": "CVE-2024-7254",
29+
"modified": "<RFC3339 date with the year 2026>"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
36+
---
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
version: 2
3+
interactions:
4+
- request:
5+
host: api.osv.dev
6+
body: |
7+
{ "queries": [ { "commit": "17b30e96476be70b8773b2b807bab857fd3ceb39" } ] }
8+
headers:
9+
X-Test-Name:
10+
- TestBatchQueryEndpoint/CommitQuery_protobuf
11+
url: https://api.osv.dev/v1/querybatch
12+
method: POST

0 commit comments

Comments
 (0)