Skip to content

Commit b58911f

Browse files
committed
Skip tests no intended for this PR.
1 parent 852e0da commit b58911f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

tests/suites/algorithms-sd.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,34 +162,46 @@ export function sd2023Algorithms({
162162
'MUST be raised and SHOULD convey an error type of ' +
163163
'PROOF_VERIFICATION_ERROR.', async function() {
164164
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=produced%20as%20output.-,If%20the%20proofValue%20string%20does%20not%20start%20with%20u%2C%20indicating%20that%20it%20is%20a%20multibase%2Dbase64url%2Dno%2Dpad%2Dencoded%20value%2C%20an%20error%20MUST%20be%20raised%20and%20SHOULD%20convey%20an%20error%20type%20of%20PROOF_VERIFICATION_ERROR.,-Initialize%20decodedProofValue%20to';
165+
this.cell.skipMessage = 'Not Implemented';
166+
this.skip();
167+
/*
165168
await assertions.verificationFail({
166169
verifier,
167170
credential: fixtures.get('invalidProofValuePrefix'),
168171
reason: 'Should not verify VC with invalid proofValue prefix'
169172
});
173+
*/
170174
});
171175
it('If the decodedProofValue does not start with the ECDSA-SD ' +
172176
'base proof header bytes 0xd9, 0x5d, and 0x00, an error MUST be ' +
173177
'raised and SHOULD convey an error type of PROOF_VERIFICATION_ERROR.',
174178
async function() {
175179
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=If%20the%20decodedProofValue%20does%20not%20start%20with%20the%20ECDSA%2DSD%20base%20proof%20header%20bytes%200xd9%2C%200x5d%2C%20and%200x00%2C%20an%20error%20MUST%20be%20raised%20and%20SHOULD%20convey%20an%20error%20type%20of%20PROOF_VERIFICATION_ERROR.';
180+
this.cell.skipMessage = 'Not Implemented';
181+
this.skip();
182+
/*
176183
await assertions.verificationFail({
177184
verifier,
178185
credential: fixtures.get('invalidBaseProofHeader'),
179186
reason: 'Should not verify VC with invalid base proof header'
180187
});
188+
*/
181189
});
182190
it('If the decodedProofValue does not start with the ECDSA-SD ' +
183191
'disclosure proof header bytes 0xd9, 0x5d, and 0x01, an error ' +
184192
'MUST be raised and SHOULD convey an error type of ' +
185193
'PROOF_VERIFICATION_ERROR.', async function() {
186194
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=If%20the%20decodedProofValue%20does%20not%20start%20with%20the%20ECDSA%2DSD%20disclosure%20proof%20header%20bytes%200xd9%2C%200x5d%2C%20and%200x01%2C%20an%20error%20MUST%20be%20raised%20and%20SHOULD%20convey%20an%20error%20type%20of%20PROOF_VERIFICATION_ERROR.';
195+
this.cell.skipMessage = 'Not Implemented';
196+
this.skip();
197+
/*
187198
await assertions.verificationFail({
188199
verifier,
189200
credential: fixtures.get('invalidDisclosureProofHeader'),
190201
reason: 'Should not verify VC with invalid disclosure proof ' +
191202
'header'
192203
});
204+
*/
193205
});
194206
it('If the result is not an array of the following five elements ' +
195207
'— a byte array of length 64; a byte array of length 36; an array ' +
@@ -208,16 +220,27 @@ export function sd2023Algorithms({
208220
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=The%20transformation%20options%20MUST%20contain%20a%20type%20identifier%20for%20the%20cryptographic%20suite%20(type)%2C%20a%20cryptosuite%20identifier%20(cryptosuite)%2C%20and%20a%20verification%20method%20(verificationMethod).';
209221
this.cell.skipMessage = 'Not Implemented';
210222
this.skip();
223+
/*
224+
await assertions.verificationFail({
225+
verifier,
226+
credential: fixtures.get('noTypeCryptosuiteOrVm'),
227+
reason: 'Should not verify VC with no type or cryptosuite'
228+
});
229+
*/
211230
});
212231
it('The transformation options MUST contain an array of mandatory ' +
213232
'JSON pointers (mandatoryPointers) and MAY contain additional ' +
214233
'options, such as a JSON-LD document loader.', async function() {
215234
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=The%20transformation%20options%20MUST%20contain%20an%20array%20of%20mandatory%20JSON%20pointers%20(mandatoryPointers)%20and%20MAY%20contain%20additional%20options%2C%20such%20as%20a%20JSON%2DLD%20document%20loader.';
235+
this.cell.skipMessage = 'Not Implemented';
236+
this.skip();
237+
/*
216238
await assertions.verificationFail({
217239
credential: fixtures.get('noMandatoryPointers'),
218240
verifier,
219241
reason: 'Should not verify VC with no mandatoryPointers'
220242
});
243+
*/
221244
});
222245
it('Whenever this algorithm encodes strings, it MUST use UTF-8 ' +
223246
'encoding.', async function() {
@@ -236,22 +259,30 @@ export function sd2023Algorithms({
236259
'cryptographic suite (type) and MUST contain a cryptosuite ' +
237260
'identifier (cryptosuite).', async function() {
238261
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#base-proof-configuration-ecdsa-sd-2023';
262+
this.cell.skipMessage = 'Not Implemented';
263+
this.skip();
264+
/*
239265
await assertions.verificationFail({
240266
verifier,
241267
credential: fixtures.get('noTypeCryptosuite'),
242268
reason: 'Should not verify VC with no type or cryptosuite'
243269
});
270+
*/
244271
});
245272
it('If proofConfig.type is not set to DataIntegrityProof and/or ' +
246273
'proofConfig.cryptosuite is not set to ecdsa-sd-2023, an error ' +
247274
'MUST be raised and SHOULD convey an error type of ' +
248275
'PROOF_GENERATION_ERROR.', async function() {
249276
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#base-proof-configuration-ecdsa-sd-2023:~:text=If%20proofConfig.type%20is%20not%20set%20to%20DataIntegrityProof%20and/or%20proofConfig.cryptosuite%20is%20not%20set%20to%20ecdsa%2Dsd%2D2023%2C%20an%20error%20MUST%20be%20raised%20and%20SHOULD%20convey%20an%20error%20type%20of%20PROOF_GENERATION_ERROR.';
277+
this.cell.skipMessage = 'Not Implemented';
278+
this.skip();
279+
/*
250280
await assertions.verificationFail({
251281
verifier,
252282
credential: fixtures.get('noTypeCryptosuite'),
253283
reason: 'Should not verify VC with no type or cryptosuite'
254284
});
285+
*/
255286
});
256287
it('If proofConfig.created is set and if the value is not a valid ' +
257288
'[XMLSCHEMA11-2] datetime, an error MUST be raised and SHOULD ' +
@@ -267,11 +298,15 @@ export function sd2023Algorithms({
267298
'cryptographic suite (type) and MAY contain a cryptosuite ' +
268299
'identifier (cryptosuite).', async function() {
269300
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#base-proof-serialization-ecdsa-sd-2023';
301+
this.cell.skipMessage = 'Not Implemented';
302+
this.skip();
303+
/*
270304
await assertions.verificationFail({
271305
verifier,
272306
credential: fixtures.get('noTypeCryptosuite'),
273307
reason: 'Should not verify VC with no type or cryptosuite'
274308
});
309+
*/
275310
});
276311
it('If the length of signatures does not match the length of ' +
277312
'nonMandatory, an error MUST be raised and SHOULD convey an ' +

0 commit comments

Comments
 (0)