Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
testing-farm
Advanced tools
A NodeJS module to access Testing Farm instances through the REST API.
Typesafe access to Testing Farm's REST API.
import TestingFarmAPI from "testing-farm";
const api = new TestingFarmAPI("https://api.dev.testing-farm.io/v0.1", "api-key");
// Passing api key in data - not recommended
const api = new TestingFarmAPI("https://api.dev.testing-farm.io/v0.1");
await api.about();
[!WARNING]
Passing the API key in request body is deprecated and not recommended. It is better to pass it in the constructor. This way the API key will be passed in the request header as part of
Authorization
header.
documentation of - GET /requests
const queryParams = { /* https://api.dev.testing-farm.io/redoc#operation/get_test_requests_v0_1_requests_get */ }
const requests: Requests[] = await api.requests(queryParams);
const requests: unknown = await api.requests(queryParams, false);
documentation of - POST /requests
const request = { /* https://api.dev.testing-farm.io/redoc#operation/request_a_new_test_v0_1_requests_post */ }
const response: NewRequestResponse = await api.newRequest(request);
const response: unknown = await api.newRequest(request, false);
const response: unknown = await api.unsafeNewRequest(request /* unknown type */);
documentation of - GET /requests/{request_id}
const details: Request = await api.requestDetails('test-id');
const details: unknown = await api.requestDetails('test-id', false);
documentation of - DELETE /requests/{request_id}
const response: CancelRequestResponse = await cancelRequest('test-id');
const response: unknown = await cancelRequest('test-id', false);
documentation of - GET /composes
const composes: Composes = await api.composes();
const composes: unknown = await api.composes(false);
documentation of - GET /composes/{ranch}
const composes: Composes = await api.ranchComposes('public');
const composes: unknown = await api.ranchComposes('public', false);
documentation of - GET /about
const about: About = await api.about();
const about: unknown = await api.about(false);
FAQs
A NodeJS module to access Testing Farm instances through the REST API.
We found that testing-farm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.