2023-03-14 12:45:25 +00:00
|
|
|
import local from 'k6/x/frostfs/local';
|
2024-11-06 13:32:50 +00:00
|
|
|
|
|
|
|
import {uuidv4} from '../scenarios/libs/k6-utils-1.4.0.js';
|
2023-03-14 12:45:25 +00:00
|
|
|
|
|
|
|
const payload = open('../go.sum', 'b');
|
2024-11-06 13:32:50 +00:00
|
|
|
const local_cli =
|
|
|
|
local.connect("/path/to/config.yaml", "/path/to/config/dir", "", false)
|
2023-03-14 12:45:25 +00:00
|
|
|
|
|
|
|
export const options = {
|
2024-11-06 13:32:50 +00:00
|
|
|
stages : [
|
|
|
|
{duration : '30s', target : 10},
|
|
|
|
],
|
2023-03-14 12:45:25 +00:00
|
|
|
};
|
|
|
|
|
2024-11-06 13:32:50 +00:00
|
|
|
export default function() {
|
|
|
|
let headers = {
|
|
|
|
'unique_header' : uuidv4()
|
|
|
|
} const container_id = '6BVPPXQewRJ6J5EYmAPLczXxNocS7ikyF7amS2esWQnb';
|
|
|
|
let resp = local_cli.put(container_id, headers, payload)
|
|
|
|
if (resp.success) {
|
|
|
|
local_cli.get(container_id, resp.object_id)
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
console.log(resp.error)
|
|
|
|
}
|
2023-03-14 12:45:25 +00:00
|
|
|
}
|