File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,17 @@ import assert from 'node:assert/strict'
2
2
import { mandatoryTest_6_1_46 } from '../../csaf_2_1/mandatoryTests/mandatoryTest_6_1_46.js'
3
3
import { expect } from 'chai'
4
4
5
- const validInputSchemaTestWithEmptyVulnerability6_1_46 = {
5
+ const failingInputSchemaTestWithEmptyVulnerability6_1_46 = {
6
6
vulnerabilities : [
7
7
{ } , // even this vulnerability is empty, the test should not fail due to the inputSchema
8
8
{
9
+ cve : 'CVE-1900-0001' ,
9
10
metrics : [
10
11
{
11
12
content : {
12
13
ssvc_v1 : {
13
14
id : 'CVE-1900-0001' ,
14
15
schemaVersion : '1-0-1' ,
15
- selections : [
16
- {
17
- name : 'Mission Impact' ,
18
- namespace : 'ssvc' ,
19
- values : [ 'None' ] ,
20
- version : '1.0.0' ,
21
- } ,
22
- ] ,
23
16
timestamp : '2024-01-24T10:00:00.000Z' ,
24
17
} ,
25
18
} ,
@@ -36,8 +29,8 @@ describe('mandatoryTest_6_1_46', function () {
36
29
} )
37
30
it ( 'test input schema with empty json object in vulnerabilities' , async function ( ) {
38
31
const result = mandatoryTest_6_1_46 (
39
- validInputSchemaTestWithEmptyVulnerability6_1_46
32
+ failingInputSchemaTestWithEmptyVulnerability6_1_46
40
33
)
41
- expect ( result . errors . length ) . to . eq ( 0 )
34
+ expect ( result . errors . length ) . to . eq ( 1 )
42
35
} )
43
36
} )
You can’t perform that action at this time.
0 commit comments