diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 19:31:41 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 19:31:41 -0500 |
commit | a739c2c0116e3bbe3122ec08b13a38440a3f9b62 (patch) | |
tree | fcee4f3474f92e8452b74bed3fb472536c71ac48 /internal | |
parent | 6693edeedb28389692c84e1aff1fc4a568963ba2 (diff) | |
download | cvez-a739c2c0116e3bbe3122ec08b13a38440a3f9b62.tar.bz2 cvez-a739c2c0116e3bbe3122ec08b13a38440a3f9b62.zip |
internal/cvss/cvss_test.go: add 3.0 tests
Diffstat (limited to 'internal')
-rw-r--r-- | internal/cvss/cvss_test.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/internal/cvss/cvss_test.go b/internal/cvss/cvss_test.go index 0bd2eab..4faa30c 100644 --- a/internal/cvss/cvss_test.go +++ b/internal/cvss/cvss_test.go @@ -154,11 +154,13 @@ func TestNewVector(t *testing.T) { "AV:N/AC:M/Au:S/C:P/I:P/A:C", "AV:N/AC:M/Au:S/C:P/I:P/A:N", "AV:N/AC:M/Au:S/C:P/I:P/A:P", - "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H", - "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L", - "CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", - "CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H", - "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H", + + "CVSS:3.0/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H", + "CVSS:3.0/AV:A/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L", + "CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", + "CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H", + "CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H", + "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N", "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H", |