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

Add tests ensuring the API conformance #3

Closed
Tracked by #16
oleiade opened this issue Nov 2, 2022 · 1 comment
Closed
Tracked by #16

Add tests ensuring the API conformance #3

oleiade opened this issue Nov 2, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@oleiade
Copy link
Member

oleiade commented Nov 2, 2022

We should have some tests in place ensuring that the API the module exposes is consistent with the one defined by the specification.

Namely, we should have automated tests verifying that, when loaded, the web crypto module exposes the following to k6:

import crypto from 'k6/x/webcrypto'

// function
crypto.getRandomValues()

// function
crypto.randomUUID()

// SubtleCrypto Object with read-only properties
crypto.subtle

// function 
crypto.subtle.encrypt()

// function
crypto.subtle.decrypt()

// function
crypto.subtle.sign()

// function
crypto.subtle.verify()

// function
crypto.subtle.digest()

// function
crypto.subtle.generateKey()

// function
crypto.subtle.deriveKey()

// function
crypto.subtle.deriveBits()

// function
crypto.subtle.importKey()

// function
crypto.subtle.exportKey()

// function
crypto.subtle.wrapKey()

// function
crypto.subtle.unwrapKey()
@oleiade oleiade added the enhancement New feature or request label Nov 2, 2022
@oleiade oleiade self-assigned this Nov 2, 2022
@oleiade
Copy link
Member Author

oleiade commented Apr 18, 2023

As we are implementing the official test suite, this can be closed.

@oleiade oleiade closed this as completed Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant