diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2019-17185.json new file mode 100644 index 00000000..62eaff0f --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:14.04/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:14.04","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2021-4204.json new file mode 100644 index 00000000..c27f671a --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:14.04/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:14.04","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-20566.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-20566.json new file mode 100644 index 00000000..fd72ba16 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-20566.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:14.04/cve-2022-20566","item":{"Vulnerability":{"Name":"CVE-2022-20566","NamespaceName":"ubuntu:14.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-20566","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41859.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41859.json new file mode 100644 index 00000000..2aecc1ae --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41859.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:14.04/cve-2022-41859","item":{"Vulnerability":{"Name":"CVE-2022-41859","NamespaceName":"ubuntu:14.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41859","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41860.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41860.json new file mode 100644 index 00000000..705e6e96 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41860.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:14.04/cve-2022-41860","item":{"Vulnerability":{"Name":"CVE-2022-41860","NamespaceName":"ubuntu:14.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41860","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41861.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41861.json new file mode 100644 index 00000000..3b75af95 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:14.04/cve-2022-41861.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:14.04/cve-2022-41861","item":{"Vulnerability":{"Name":"CVE-2022-41861","NamespaceName":"ubuntu:14.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41861","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2019-17185.json new file mode 100644 index 00000000..287f4d12 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:16.04/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:16.04","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2021-4204.json new file mode 100644 index 00000000..ce889f55 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:16.04/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:16.04","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-20566.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-20566.json new file mode 100644 index 00000000..dd2ba5f7 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-20566.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:16.04/cve-2022-20566","item":{"Vulnerability":{"Name":"CVE-2022-20566","NamespaceName":"ubuntu:16.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-20566","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41859.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41859.json new file mode 100644 index 00000000..604884de --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41859.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:16.04/cve-2022-41859","item":{"Vulnerability":{"Name":"CVE-2022-41859","NamespaceName":"ubuntu:16.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41859","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41860.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41860.json new file mode 100644 index 00000000..65fcff41 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41860.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:16.04/cve-2022-41860","item":{"Vulnerability":{"Name":"CVE-2022-41860","NamespaceName":"ubuntu:16.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41860","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41861.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41861.json new file mode 100644 index 00000000..e2eead07 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:16.04/cve-2022-41861.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:16.04/cve-2022-41861","item":{"Vulnerability":{"Name":"CVE-2022-41861","NamespaceName":"ubuntu:16.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41861","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2019-17185.json new file mode 100644 index 00000000..12fde280 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:18.04/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:18.04","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2021-4204.json new file mode 100644 index 00000000..5d6932c1 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:18.04/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:18.04","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-20566.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-20566.json new file mode 100644 index 00000000..517737cd --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-20566.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:18.04/cve-2022-20566","item":{"Vulnerability":{"Name":"CVE-2022-20566","NamespaceName":"ubuntu:18.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-20566","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41859.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41859.json new file mode 100644 index 00000000..3d0e13bf --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41859.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:18.04/cve-2022-41859","item":{"Vulnerability":{"Name":"CVE-2022-41859","NamespaceName":"ubuntu:18.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41859","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41860.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41860.json new file mode 100644 index 00000000..2259588a --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41860.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:18.04/cve-2022-41860","item":{"Vulnerability":{"Name":"CVE-2022-41860","NamespaceName":"ubuntu:18.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41860","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41861.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41861.json new file mode 100644 index 00000000..3aa015f3 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:18.04/cve-2022-41861.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:18.04/cve-2022-41861","item":{"Vulnerability":{"Name":"CVE-2022-41861","NamespaceName":"ubuntu:18.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41861","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:19.10/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:19.10/cve-2019-17185.json new file mode 100644 index 00000000..0684f1c4 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:19.10/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:19.10/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:19.10","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2019-17185.json new file mode 100644 index 00000000..41d1ad91 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:20.04/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:20.04","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2021-4204.json new file mode 100644 index 00000000..617123d4 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:20.04/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:20.04","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[{"Name":"linux-hwe-5.11","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.11.0-46.51~20.04.1"},{"Name":"linux-aws-5.11","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.11.0-1025.27~20.04.1"},{"Name":"linux-azure-5.11","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.11.0-1025.27~20.04.1"},{"Name":"linux-gcp-5.11","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.11.0-1026.29~20.04.1"},{"Name":"linux-oracle-5.11","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.11.0-1025.27~20.04.1"},{"Name":"linux-oem-5.10","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.10.0-1055.58"},{"Name":"linux-oem-5.13","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.13.0-1026.32"},{"Name":"linux-oem-5.14","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.14.0-1018.19"},{"Name":"linux-riscv-5.11","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.11.0-1026.28~20.04.1"},{"Name":"linux-hwe-5.13","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.13.0-25.26~20.04.1"},{"Name":"linux-aws-5.13","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.13.0-1011.12~20.04.1"},{"Name":"linux-oracle-5.13","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.13.0-1015.19~20.04.1"},{"Name":"linux-gcp-5.13","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.13.0-1012.15~20.04.1"},{"Name":"linux-azure-5.13","NamespaceName":"ubuntu:20.04","VersionFormat":"dpkg","Version":"5.13.0-1012.14~20.04.1"}]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-20566.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-20566.json new file mode 100644 index 00000000..e1a0ee95 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-20566.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:20.04/cve-2022-20566","item":{"Vulnerability":{"Name":"CVE-2022-20566","NamespaceName":"ubuntu:20.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-20566","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41859.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41859.json new file mode 100644 index 00000000..5b9c028d --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41859.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:20.04/cve-2022-41859","item":{"Vulnerability":{"Name":"CVE-2022-41859","NamespaceName":"ubuntu:20.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41859","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41860.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41860.json new file mode 100644 index 00000000..96a7d1cf --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41860.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:20.04/cve-2022-41860","item":{"Vulnerability":{"Name":"CVE-2022-41860","NamespaceName":"ubuntu:20.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41860","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41861.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41861.json new file mode 100644 index 00000000..09e1430c --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.04/cve-2022-41861.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:20.04/cve-2022-41861","item":{"Vulnerability":{"Name":"CVE-2022-41861","NamespaceName":"ubuntu:20.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41861","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.10/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.10/cve-2019-17185.json new file mode 100644 index 00000000..a8536118 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:20.10/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:20.10/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:20.10","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.04/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.04/cve-2019-17185.json new file mode 100644 index 00000000..b0c4c9c5 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.04/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:21.04/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:21.04","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.04/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.04/cve-2021-4204.json new file mode 100644 index 00000000..a30da1b3 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.04/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:21.04/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:21.04","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[{"Name":"linux","NamespaceName":"ubuntu:21.04","VersionFormat":"dpkg","Version":"5.11.0-46.51"},{"Name":"linux-kvm","NamespaceName":"ubuntu:21.04","VersionFormat":"dpkg","Version":"5.11.0-1022.24"},{"Name":"linux-aws","NamespaceName":"ubuntu:21.04","VersionFormat":"dpkg","Version":"5.11.0-1025.27"},{"Name":"linux-azure","NamespaceName":"ubuntu:21.04","VersionFormat":"dpkg","Version":"5.11.0-1025.27"},{"Name":"linux-gcp","NamespaceName":"ubuntu:21.04","VersionFormat":"dpkg","Version":"5.11.0-1026.29"},{"Name":"linux-oracle","NamespaceName":"ubuntu:21.04","VersionFormat":"dpkg","Version":"5.11.0-1025.27"},{"Name":"linux-raspi","NamespaceName":"ubuntu:21.04","VersionFormat":"dpkg","Version":"5.11.0-1025.27"}]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.10/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.10/cve-2019-17185.json new file mode 100644 index 00000000..d6f40aba --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.10/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:21.10/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:21.10","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.10/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.10/cve-2021-4204.json new file mode 100644 index 00000000..b9db6317 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:21.10/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:21.10/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:21.10","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[{"Name":"linux","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-25.26"},{"Name":"linux-kvm","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-1008.8"},{"Name":"linux-aws","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-1009.10"},{"Name":"linux-azure","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-1010.11"},{"Name":"linux-gcp","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-1010.12"},{"Name":"linux-oracle","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-1013.16"},{"Name":"linux-raspi","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-1013.15"},{"Name":"linux-riscv","NamespaceName":"ubuntu:21.10","VersionFormat":"dpkg","Version":"5.13.0-1008.8"}]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2019-17185.json new file mode 100644 index 00000000..d669cb4c --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.04/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:22.04","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2021-4204.json new file mode 100644 index 00000000..da8eac66 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.04/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:22.04","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-20566.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-20566.json new file mode 100644 index 00000000..b97df640 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-20566.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.04/cve-2022-20566","item":{"Vulnerability":{"Name":"CVE-2022-20566","NamespaceName":"ubuntu:22.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-20566","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41859.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41859.json new file mode 100644 index 00000000..bc12ded3 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41859.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.04/cve-2022-41859","item":{"Vulnerability":{"Name":"CVE-2022-41859","NamespaceName":"ubuntu:22.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41859","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41860.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41860.json new file mode 100644 index 00000000..636cfbe3 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41860.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.04/cve-2022-41860","item":{"Vulnerability":{"Name":"CVE-2022-41860","NamespaceName":"ubuntu:22.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41860","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41861.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41861.json new file mode 100644 index 00000000..67157990 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.04/cve-2022-41861.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.04/cve-2022-41861","item":{"Vulnerability":{"Name":"CVE-2022-41861","NamespaceName":"ubuntu:22.04","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41861","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2019-17185.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2019-17185.json new file mode 100644 index 00000000..0219f6c4 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2019-17185.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.10/cve-2019-17185","item":{"Vulnerability":{"Name":"CVE-2019-17185","NamespaceName":"ubuntu:22.10","Description":"","Severity":"Low","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2019-17185","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2021-4204.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2021-4204.json new file mode 100644 index 00000000..c89feca5 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2021-4204.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.10/cve-2021-4204","item":{"Vulnerability":{"Name":"CVE-2021-4204","NamespaceName":"ubuntu:22.10","Description":"","Severity":"High","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-4204","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-20566.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-20566.json new file mode 100644 index 00000000..9e17219f --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-20566.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.10/cve-2022-20566","item":{"Vulnerability":{"Name":"CVE-2022-20566","NamespaceName":"ubuntu:22.10","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-20566","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41859.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41859.json new file mode 100644 index 00000000..4220b177 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41859.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.10/cve-2022-41859","item":{"Vulnerability":{"Name":"CVE-2022-41859","NamespaceName":"ubuntu:22.10","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41859","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41860.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41860.json new file mode 100644 index 00000000..279c88be --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41860.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.10/cve-2022-41860","item":{"Vulnerability":{"Name":"CVE-2022-41860","NamespaceName":"ubuntu:22.10","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41860","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41861.json b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41861.json new file mode 100644 index 00000000..5e4ef6b3 --- /dev/null +++ b/tests/unit/providers/ubuntu/test-fixtures/snapshots/ubuntu:22.10/cve-2022-41861.json @@ -0,0 +1 @@ +{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"ubuntu:22.10/cve-2022-41861","item":{"Vulnerability":{"Name":"CVE-2022-41861","NamespaceName":"ubuntu:22.10","Description":"","Severity":"Medium","Metadata":{},"Link":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2022-41861","FixedIn":[]}}} diff --git a/tests/unit/providers/ubuntu/test_ubuntu.py b/tests/unit/providers/ubuntu/test_ubuntu.py index 4ad47f2c..6fe23dd2 100644 --- a/tests/unit/providers/ubuntu/test_ubuntu.py +++ b/tests/unit/providers/ubuntu/test_ubuntu.py @@ -489,3 +489,17 @@ def test_provider_schema(helpers, mock_data_path, hydrate_git_repo, expected_wri assert expected_written_entries == ws.num_result_entries() assert ws.result_schemas_valid(require_entries=expected_written_entries > 0) + + +def test_provider_via_snapshot(helpers, hydrate_git_repo, mocker): + path = hydrate_git_repo("test-fixtures/repo-fast-export") + + c = ubuntu.Config() + c.runtime.result_store = result.StoreStrategy.FLAT_FILE + p = ubuntu.Provider(root=path, config=c) + p.parser.git_wrapper.init_repo = mocker.Mock() + p.update(None) + + ws = helpers.provider_workspace_helper("ubuntu", create=False) + + ws.assert_result_snapshots()