Skip to content

Commit af5be18

Browse files
authored
fix: update api tests (#4843)
Python tests were manually updated. Cassette tests using make update-api-snapshots
1 parent e4b43a7 commit af5be18

4 files changed

Lines changed: 506 additions & 17 deletions

File tree

gcp/api/integration_tests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,6 @@ def test_query_batch(self):
732732
{},
733733
{
734734
'vulns': [{
735-
'id': 'CVE-2020-15866',
736-
}, {
737735
'id': 'CVE-2020-36401',
738736
}, {
739737
'id': 'CVE-2021-4110',

tools/apitester/__snapshots__/cassette_TestCommand.snap

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
},
114114
{
115115
"id": "GO-2025-3420",
116-
"modified": "<RFC3339 date with the year 2025>"
116+
"modified": "<RFC3339 date with the year 2026>"
117117
},
118118
{
119119
"id": "GO-2025-3447",
@@ -273,7 +273,7 @@
273273
},
274274
{
275275
"id": "GO-2025-3420",
276-
"modified": "<RFC3339 date with the year 2025>"
276+
"modified": "<RFC3339 date with the year 2026>"
277277
},
278278
{
279279
"id": "GO-2025-3447",
@@ -425,7 +425,7 @@
425425
},
426426
{
427427
"id": "GO-2025-3420",
428-
"modified": "<RFC3339 date with the year 2025>"
428+
"modified": "<RFC3339 date with the year 2026>"
429429
},
430430
{
431431
"id": "GO-2025-3447",
@@ -585,7 +585,7 @@
585585
},
586586
{
587587
"id": "GO-2025-3420",
588-
"modified": "<RFC3339 date with the year 2025>"
588+
"modified": "<RFC3339 date with the year 2026>"
589589
},
590590
{
591591
"id": "GO-2025-3447",
@@ -3270,7 +3270,14 @@
32703270
}
32713271
]
32723272
},
3273-
{},
3273+
{
3274+
"vulns": [
3275+
{
3276+
"id": "GHSA-27jp-wm6q-gp25",
3277+
"modified": "<RFC3339 date with the year 2026>"
3278+
}
3279+
]
3280+
},
32743281
{},
32753282
{},
32763283
{
@@ -3768,7 +3775,14 @@
37683775
}
37693776
]
37703777
},
3771-
{},
3778+
{
3779+
"vulns": [
3780+
{
3781+
"id": "GHSA-27jp-wm6q-gp25",
3782+
"modified": "<RFC3339 date with the year 2026>"
3783+
}
3784+
]
3785+
},
37723786
{},
37733787
{},
37743788
{

tools/apitester/__snapshots__/cassette_batch_query.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"id": "CVE-2021-22569",
99
"modified": "<RFC3339 date with the year 2026>"
1010
},
11-
{
12-
"id": "CVE-2022-1941",
13-
"modified": "<RFC3339 date with the year 2026>"
14-
},
1511
{
1612
"id": "CVE-2022-3171",
1713
"modified": "<RFC3339 date with the year 2026>"

0 commit comments

Comments
 (0)