mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
|
import http from 'k6/http';
|
||
|
import { check } from 'k6';
|
||
|
|
||
|
const apiBaseUrl = __ENV.API_BASE_URL;
|
||
|
|
||
|
export default function () {
|
||
|
const res = http.post(`${apiBaseUrl}/webhook/code-node-benchmark`, {});
|
||
|
check(res, {
|
||
|
'is status 200': (r) => r.status === 200,
|
||
|
'has items in response': (r) => JSON.parse(r.body).length === 5,
|
||
|
});
|
||
|
}
|