2022-05-12 19:37:38 +00:00
|
|
|
import { uuidv4 } from 'https://jslib.k6.io/k6-utils/1.2.0/index.js';
|
|
|
|
import native from 'k6/x/neofs/native';
|
|
|
|
|
2022-05-20 11:14:50 +00:00
|
|
|
const payload = open('../go.sum', 'b');
|
2022-05-12 19:37:38 +00:00
|
|
|
const container = "AjSxSNNXbJUDPqqKYm1VbFVDGCakbpUNH8aGjPmGAH3B"
|
|
|
|
const neofs_cli = native.connect("s01.neofs.devenv:8080", "")
|
|
|
|
|
|
|
|
export const options = {
|
|
|
|
stages: [
|
|
|
|
{ duration: '30s', target: 10 },
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function () {
|
|
|
|
let headers = {
|
|
|
|
'unique_header': uuidv4()
|
|
|
|
}
|
|
|
|
let resp = neofs_cli.put(container, headers, payload)
|
|
|
|
if (resp.success) {
|
|
|
|
neofs_cli.get(container, resp.object_id)
|
2022-05-20 09:22:11 +00:00
|
|
|
} else {
|
|
|
|
console.log(resp.error)
|
2022-05-12 19:37:38 +00:00
|
|
|
}
|
2022-05-20 11:10:11 +00:00
|
|
|
}
|