Skip to content

Commit df27dde

Browse files
committed
test: adapt test suite to run against new csaf changes
1 parent 090c8a3 commit df27dde

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

tests/csaf_2_1/oasis.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import * as mandatory from '../../csaf_2_1/mandatoryTests.js'
1010
Once all tests are implemented for CSAF 2.1 this should be deleted.
1111
*/
1212
const excluded = [
13+
'6.1.6',
1314
'6.1.7',
1415
'6.1.9',
1516
'6.1.10',
@@ -26,7 +27,10 @@ const excluded = [
2627
'6.1.27.15',
2728
'6.1.27.16',
2829
'6.1.27.17',
30+
'6.1.27.18',
31+
'6.1.27.19',
2932
'6.1.36',
33+
'6.1.37',
3034
'6.1.42',
3135
'6.1.43',
3236
'6.1.44',
@@ -35,8 +39,15 @@ const excluded = [
3539
'6.1.47',
3640
'6.1.48',
3741
'6.1.49',
42+
'6.1.50',
43+
'6.1.51',
44+
'6.1.52',
45+
'6.1.53',
46+
'6.1.54',
47+
'6.1.55',
3848
'6.2.11',
3949
'6.2.19',
50+
'6.2.20',
4051
'6.2.21',
4152
'6.2.23',
4253
'6.2.24',
@@ -56,12 +67,22 @@ const excluded = [
5667
'6.2.38',
5768
'6.2.39.1',
5869
'6.2.39.2',
70+
'6.2.39.3',
71+
'6.2.39.4',
5972
'6.2.40',
73+
'6.2.41',
74+
'6.2.42',
75+
'6.2.43',
76+
'6.2.44',
77+
'6.2.45',
78+
'6.2.46',
6079
'6.3.2',
6180
'6.3.14',
6281
'6.3.15',
6382
'6.3.12',
6483
'6.3.13',
84+
'6.3.16',
85+
'6.3.17',
6586
]
6687

6788
/** @typedef {import('../../lib/shared/types.js').DocumentTest} DocumentTest */
@@ -109,7 +130,12 @@ const testCases = /** @type {TestCases} */ (
109130

110131
const testMap = parseTestCases()
111132

112-
for (const [group, t] of testMap) {
133+
for (const [groupRaw, t] of testMap) {
134+
/*
135+
This is temporary fix until we rename the tests from optional to recommended.
136+
*/
137+
const group = groupRaw === 'recommended' ? 'optional' : groupRaw
138+
113139
describe(group, function () {
114140
for (const [testId, u] of t) {
115141
describe(testId, function () {

0 commit comments

Comments
 (0)