Skip to content

Commit 513ba41

Browse files
authored
Update tests (#781)
1 parent f150667 commit 513ba41

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Only major, breaking changes will merit a bump to the major version, but this is
2222

2323
#### Creating Genesis Dump
2424

25-
The purpose of the gensis dump is to embed the new release of Scanner with the most up-to-date vulnerability data, and reduce its startup time since only diffs will be fetched from the network, rather than the whole vulnerability content.
25+
The purpose of the genesis dump is to embed the new release of Scanner with the most up-to-date vulnerability data, and reduce its startup time since only diffs will be fetched from the network, rather than the whole vulnerability content.
2626

2727
To run this:
2828

e2etests/testcase_test.go

+3-19
Original file line numberDiff line numberDiff line change
@@ -2465,9 +2465,6 @@ var testCases = []testCase{
24652465
},
24662466
},
24672467
},
2468-
// The next two images have the same layer and thus verify lineage checks between different images
2469-
// The first is a centos:7 image that has the package p11-kit. The second image is from fedora, and we
2470-
// can't identify the OS, so it should not have p11-kit.
24712468
{
24722469
image: "quay.io/dougtidwell/open-adventure@sha256:564c8dde1931f337a7bc8925f94cb594d9c81a5ee9eacc5ec5590f1e60e94b6a",
24732470
registry: "https://quay.io",
@@ -2484,19 +2481,6 @@ var testCases = []testCase{
24842481
},
24852482
},
24862483
},
2487-
{
2488-
image: "quay.io/cgwalters/coreos-assembler@sha256:6ed6cd0006b6331d8cfd4a794afe7d2a87dc9019b80658a21b28d9941a97356d",
2489-
registry: "https://quay.io",
2490-
source: "NVD",
2491-
namespace: "", // Fedora 28
2492-
unexpectedFeatures: []apiV1.Feature{
2493-
{
2494-
Name: "p11-kit",
2495-
VersionFormat: "rpm",
2496-
Version: "0.23.5-3.el7",
2497-
},
2498-
},
2499-
},
25002484
{
25012485
image: "alpine:3.13.0",
25022486
registry: "https://registry-1.docker.io",
@@ -3259,7 +3243,7 @@ var testCases = []testCase{
32593243
},
32603244
},
32613245
{
3262-
image: "ubuntu:22.04",
3246+
image: "ubuntu:22.04@sha256:cd3d86f1fb368c6a53659d467560010ab9e0695528127ea336fe32f68f7ba09f",
32633247
registry: "https://registry-1.docker.io",
32643248
source: "NVD",
32653249
onlyCheckSpecifiedVulns: true,
@@ -3270,14 +3254,14 @@ var testCases = []testCase{
32703254
NamespaceName: "ubuntu:22.04",
32713255
VersionFormat: "dpkg",
32723256
Version: "3.118ubuntu5",
3273-
AddedBy: "sha256:125a6e411906fe6b0aaa50fc9d600bf6ff9bb11a8651727ce1ed482dc271c24c",
3257+
AddedBy: "sha256:6fa1296f44090f6150dfb96d6ae217a58b9d66c56d7a986c35657df6bd1a89f0",
32743258
},
32753259
{
32763260
Name: "apt",
32773261
NamespaceName: "ubuntu:22.04",
32783262
VersionFormat: "dpkg",
32793263
Version: "2.4.5",
3280-
AddedBy: "sha256:125a6e411906fe6b0aaa50fc9d600bf6ff9bb11a8651727ce1ed482dc271c24c",
3264+
AddedBy: "sha256:6fa1296f44090f6150dfb96d6ae217a58b9d66c56d7a986c35657df6bd1a89f0",
32813265
},
32823266
},
32833267
},

0 commit comments

Comments
 (0)