forked from TrueCloudLab/frostfs-s3-gw
[#68] *: Replace deprecated
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
abfaa0bd48
commit
b3b190adc0
7 changed files with 24 additions and 22 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/container"
|
||||
cid "github.com/nspcc-dev/neofs-api-go/pkg/container/id"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/owner"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -83,11 +83,11 @@ func testNameFromObjectName(name string) (string, string) {
|
|||
func Test_objectInfoFromMeta(t *testing.T) {
|
||||
uid := owner.NewID()
|
||||
oid := object.NewID()
|
||||
cid := container.NewID()
|
||||
containerID := cid.New()
|
||||
|
||||
bkt := &BucketInfo{
|
||||
Name: "test-container",
|
||||
CID: cid,
|
||||
CID: containerID,
|
||||
Owner: uid,
|
||||
Created: time.Now(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue