Signature
Generate test signatures.
Test signatures are unique identifiers for tests based on project, spec file path, and test title. They are used to track tests across multiple runs.
Generate a unique test signature based on project, spec file path, and test title
An organization API key, sent as Authorization: Bearer <key>. A key carries one scope for the whole API: a read key reaches the GET endpoints, a write key reaches all of them.
The project ID
Full path to the spec file
Test title or array of titles (for nested describe blocks)
Successful response
Invalid request parameters
Authentication failed
The credential authenticated but is not permitted to use this endpoint. Four refusals share the status: a read API key on an endpoint that writes, an OAuth token that was not granted the scope the endpoint needs (insufficient_scope), an OAuth token that was granted it but whose holder no longer has a role permitting it (insufficient_role), and an OAuth token on an endpoint that accepts an API key and nothing else (api_key_required). Discriminate on code rather than on the message, which is free-form. The first refusal predates the codes and sets none. Only insufficient_scope carries the challenge header, because it is the only one a client can act on by re-authorizing.
Resource not found
POST /v1/signature/test HTTP/1.1
Host: api.currents.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"projectId": "text",
"specFilePath": "text",
"testTitle": "text"
}{
"status": "OK",
"data": {
"signature": "text"
}
}Last updated
Was this helpful?