Alexander Chuprov
6adc201c2c
All checks were successful
DCO action / DCO (pull_request) Successful in 1m15s
Tests and linters / Check clang-format (pull_request) Successful in 1m25s
Tests and linters / Tests (pull_request) Successful in 1m46s
Tests and linters / Tests with -race (pull_request) Successful in 2m22s
Tests and linters / Lint (pull_request) Successful in 3m9s
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
25 lines
664 B
JavaScript
25 lines
664 B
JavaScript
import native from 'k6/x/frostfs/native';
|
|
|
|
import {uuidv4} from '../scenarios/libs/k6-utils-1.4.0.js';
|
|
|
|
const payload = open('../go.sum', 'b');
|
|
const container = "AjSxSNNXbJUDPqqKYm1VbFVDGCakbpUNH8aGjPmGAH3B"
|
|
const frostfs_cli =
|
|
native.connect("s01.frostfs.devenv:8080", "", 0, 0, false, 0)
|
|
const frostfs_obj = frostfs_cli.onsite(container, payload)
|
|
|
|
export const options = {
|
|
stages : [
|
|
{duration : '30s', target : 10},
|
|
],
|
|
};
|
|
|
|
export default function() {
|
|
let headers = {'unique_header' : uuidv4()} let resp = frostfs_obj.put(headers)
|
|
if (resp.success) {
|
|
frostfs_cli.get(container, resp.object_id)
|
|
}
|
|
else {
|
|
console.log(resp.error)
|
|
}
|
|
}
|