Compare commits
7 commits
master
...
feature/su
Author | SHA1 | Date | |
---|---|---|---|
d03e2f5985 | |||
f0e9f59a90 | |||
afebe294cd | |||
e987b6aef9 | |||
2f00260594 | |||
c71fc8970f | |||
82a02cc8d2 |
2 changed files with 4 additions and 3 deletions
|
@ -6,9 +6,6 @@ import (
|
|||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/xk6-frostfs/internal/stats"
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/feature/s3/manager"
|
||||
|
@ -17,6 +14,8 @@ import (
|
|||
"github.com/dop251/goja"
|
||||
"go.k6.io/k6/js/modules"
|
||||
"go.k6.io/k6/metrics"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -61,6 +60,7 @@ func (c *Client) Put(bucket, key string, payload goja.ArrayBuffer) PutResponse {
|
|||
Key: aws.String(key),
|
||||
Body: rdr,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
stats.Report(c.vu, objPutFails, 1)
|
||||
return PutResponse{Success: false, Error: err.Error()}
|
||||
|
|
|
@ -91,6 +91,7 @@ func (s *S3) Connect(endpoint string, params map[string]string) (*Client, error)
|
|||
},
|
||||
Timeout: timeout,
|
||||
}
|
||||
options.ClientLogMode = aws.LogResponseWithBody
|
||||
})
|
||||
|
||||
// register metrics
|
||||
|
|
Loading…
Reference in a new issue