mirror of
https://github.com/Telecominfraproject/wlan-cloud-rrm.git
synced 2025-10-31 18:47:55 +00:00
25 lines
414 B
JavaScript
25 lines
414 B
JavaScript
import http from 'k6/http';
|
|
import { sleep } from 'k6';
|
|
|
|
|
|
const BASE_URL = 'http://localhost:16789/api/v1';
|
|
|
|
export default function () {
|
|
const endpoints = [
|
|
'algorithms',
|
|
'provider',
|
|
'system',
|
|
'getToplogy',
|
|
'currentModel',
|
|
];
|
|
const requests = endpoints.map(endpoint => {
|
|
return {
|
|
method: 'GET',
|
|
url: `${BASE_URL}/${endpoint}`,
|
|
};
|
|
});
|
|
|
|
let responses = http.batch(requests);
|
|
sleep(0.1);
|
|
}
|