From 883f2f1ac69226d4e32a5572c89b53737a4cfb66 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 25 May 2022 14:21:30 +0300 Subject: [PATCH] [#1423] local storage: Activate skipped unit tests after fix Signed-off-by: Leonard Lyubich --- pkg/local_object_storage/engine/head_test.go | 1 - pkg/local_object_storage/engine/inhume_test.go | 1 - pkg/local_object_storage/metabase/delete_test.go | 2 -- pkg/local_object_storage/metabase/exists_test.go | 3 --- pkg/local_object_storage/metabase/get_test.go | 1 - pkg/local_object_storage/metabase/select_test.go | 2 -- pkg/local_object_storage/shard/get_test.go | 1 - pkg/local_object_storage/shard/head_test.go | 1 - 8 files changed, 12 deletions(-) diff --git a/pkg/local_object_storage/engine/head_test.go b/pkg/local_object_storage/engine/head_test.go index b9f2d3a3..6218e77f 100644 --- a/pkg/local_object_storage/engine/head_test.go +++ b/pkg/local_object_storage/engine/head_test.go @@ -40,7 +40,6 @@ func TestHeadRaw(t *testing.T) { link.SetSplitID(splitID) t.Run("virtual object split in different shards", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") s1 := testNewShard(t, 1) s2 := testNewShard(t, 2) diff --git a/pkg/local_object_storage/engine/inhume_test.go b/pkg/local_object_storage/engine/inhume_test.go index d90cd825..955df1bb 100644 --- a/pkg/local_object_storage/engine/inhume_test.go +++ b/pkg/local_object_storage/engine/inhume_test.go @@ -53,7 +53,6 @@ func TestStorageEngine_Inhume(t *testing.T) { }) t.Run("delete big object", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") s1 := testNewShard(t, 1) s2 := testNewShard(t, 2) diff --git a/pkg/local_object_storage/metabase/delete_test.go b/pkg/local_object_storage/metabase/delete_test.go index b3b21360..faa93cf2 100644 --- a/pkg/local_object_storage/metabase/delete_test.go +++ b/pkg/local_object_storage/metabase/delete_test.go @@ -14,7 +14,6 @@ import ( ) func TestDB_Delete(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") db := newDB(t) cid := cidtest.ID() @@ -70,7 +69,6 @@ func TestDB_Delete(t *testing.T) { } func TestDeleteAllChildren(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") db := newDB(t) cid := cidtest.ID() diff --git a/pkg/local_object_storage/metabase/exists_test.go b/pkg/local_object_storage/metabase/exists_test.go index 54114647..1c49dfa6 100644 --- a/pkg/local_object_storage/metabase/exists_test.go +++ b/pkg/local_object_storage/metabase/exists_test.go @@ -68,7 +68,6 @@ func TestDB_Exists(t *testing.T) { }) t.Run("virtual object", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") cid := cidtest.ID() parent := generateObjectWithCID(t, cid) @@ -107,7 +106,6 @@ func TestDB_Exists(t *testing.T) { link.SetSplitID(splitID) t.Run("direct order", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") err := putBig(db, child) require.NoError(t, err) @@ -132,7 +130,6 @@ func TestDB_Exists(t *testing.T) { }) t.Run("reverse order", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") err := meta.Put(db, link, nil) require.NoError(t, err) diff --git a/pkg/local_object_storage/metabase/get_test.go b/pkg/local_object_storage/metabase/get_test.go index 5724ce03..058984d9 100644 --- a/pkg/local_object_storage/metabase/get_test.go +++ b/pkg/local_object_storage/metabase/get_test.go @@ -90,7 +90,6 @@ func TestDB_Get(t *testing.T) { require.NoError(t, err) t.Run("raw is true", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") _, err = meta.GetRaw(db, object.AddressOf(parent), true) require.Error(t, err) diff --git a/pkg/local_object_storage/metabase/select_test.go b/pkg/local_object_storage/metabase/select_test.go index 525c8a4d..7ff6783c 100644 --- a/pkg/local_object_storage/metabase/select_test.go +++ b/pkg/local_object_storage/metabase/select_test.go @@ -138,7 +138,6 @@ func TestDB_SelectUserAttributes(t *testing.T) { } func TestDB_SelectRootPhyParent(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") db := newDB(t) cid := cidtest.ID() @@ -490,7 +489,6 @@ func TestDB_SelectWithSlowFilters(t *testing.T) { } func TestDB_SelectObjectID(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") db := newDB(t) cid := cidtest.ID() diff --git a/pkg/local_object_storage/shard/get_test.go b/pkg/local_object_storage/shard/get_test.go index 1eafe201..edc3956c 100644 --- a/pkg/local_object_storage/shard/get_test.go +++ b/pkg/local_object_storage/shard/get_test.go @@ -67,7 +67,6 @@ func testShardGet(t *testing.T, hasWriteCache bool) { }) t.Run("parent object", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") obj := generateObject(t) addAttribute(obj, "foo", "bar") cnr := cidtest.ID() diff --git a/pkg/local_object_storage/shard/head_test.go b/pkg/local_object_storage/shard/head_test.go index 618334df..4edbb96b 100644 --- a/pkg/local_object_storage/shard/head_test.go +++ b/pkg/local_object_storage/shard/head_test.go @@ -46,7 +46,6 @@ func testShardHead(t *testing.T, hasWriteCache bool) { }) t.Run("virtual object", func(t *testing.T) { - t.Skip("not working, see neofs-sdk-go#242") cid := cidtest.ID() splitID := objectSDK.NewSplitID()