Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to get credentials with validFrom and/or validTo set by someone/something else. #107

Open
BigBlueHat opened this issue Aug 15, 2024 · 0 comments

Comments

@BigBlueHat
Copy link
Member

This test needs writing:

// 4.8.1 Representing Time https://w3c.github.io/vc-data-model/#representing-time
it('Time values that are incorrectly serialized without an offset ' +
'MUST be interpreted as UTC.', async function() {
this.test.link = `https://w3c.github.io/vc-data-model/#validity-period:~:text=Time%20values%20that%20are%20incorrectly%20serialized%20without%20an%20offset%20MUST%20be%20interpreted%20as%20UTC.`;
// TODO: add test using regular expression from spec.
// https://w3c.github.io/vc-data-model/#example-regular-expression-to-detect-a-valid-xml-schema-1-1-part-2-datetimestamp
// eslint-disable-next-line max-len, no-unused-vars
const regexp = /-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))/;
this.test.cell.skipMessage = 'TBD';
this.skip();
});

It's blocked by the fact that we send fixtures out to either (or both) issue or verify...so the test suite is only currently handling whether the receiving end can receive and process valid inputs (or chokes on invalid ones). It doesn't currently test received data it hasn't previously known about. Which makes this test particularly problematic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant