Skip to content

Commit

Permalink
GO-4823 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillSto committed Jan 16, 2025
1 parent d06b02b commit 874e86d
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions core/block/export/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1476,43 +1476,43 @@ func Test_docsForExport(t *testing.T) {
assert.Nil(t, err)

defaultObjectTypeId := "defaultObjectTypeId"
defaultObjectTypeUniqueKey, err := domain.NewUniqueKey(smartblock.SmartBlockTypeObjectType, objectTypeId)
defaultObjectTypeUniqueKey, err := domain.NewUniqueKey(smartblock.SmartBlockTypeObjectType, defaultObjectTypeId)
assert.Nil(t, err)

defaultTemplateId := "defaultTemplateId"
defaultObjectTypeTemplateId := "defaultObjectTypeTemplateId"

storeFixture.AddObjects(t, spaceId, []objectstore.TestObject{
{
bundle.RelationKeyId: domain.String(id),
bundle.RelationKeyName: domain.String("name"),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyLayout: domain.Int64(int64(model.ObjectType_collection)),
bundle.RelationKeyId: domain.String(id),
bundle.RelationKeyName: domain.String("name"),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyResolvedLayout: domain.Int64(int64(model.ObjectType_collection)),
},
{
bundle.RelationKeyId: domain.String(objectTypeId),
bundle.RelationKeyUniqueKey: domain.String(objectTypeUniqueKey.Marshal()),
bundle.RelationKeyLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyId: domain.String(objectTypeId),
bundle.RelationKeyUniqueKey: domain.String(objectTypeUniqueKey.Marshal()),
bundle.RelationKeyResolvedLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(bundle.TypeKeyObjectType),
},
{
bundle.RelationKeyId: domain.String(defaultObjectTypeId),
bundle.RelationKeyUniqueKey: domain.String(defaultObjectTypeUniqueKey.Marshal()),
bundle.RelationKeyLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyId: domain.String(defaultObjectTypeId),
bundle.RelationKeyUniqueKey: domain.String(defaultObjectTypeUniqueKey.Marshal()),
bundle.RelationKeyResolvedLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(bundle.TypeKeyObjectType),
},
{
bundle.RelationKeyId: domain.String(defaultTemplateId),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyType: domain.String(bundle.TypeKeyTemplate),
},
{
bundle.RelationKeyId: domain.String(defaultObjectTypeTemplateId),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyType: domain.String(bundle.TypeKeyTemplate),
bundle.RelationKeyTargetObjectType: domain.String(defaultObjectTypeId),
},
})
Expand Down Expand Up @@ -1650,25 +1650,25 @@ func Test_docsForExport(t *testing.T) {

storeFixture.AddObjects(t, spaceId, []objectstore.TestObject{
{
bundle.RelationKeyId: domain.String(id),
bundle.RelationKeyName: domain.String("name"),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyLayout: domain.Int64(int64(model.ObjectType_set)),
bundle.RelationKeyId: domain.String(id),
bundle.RelationKeyName: domain.String("name"),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyResolvedLayout: domain.Int64(int64(model.ObjectType_set)),
},
{
bundle.RelationKeyId: domain.String(objectTypeId),
bundle.RelationKeyUniqueKey: domain.String(objectTypeUniqueKey.Marshal()),
bundle.RelationKeyLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyId: domain.String(objectTypeId),
bundle.RelationKeyUniqueKey: domain.String(objectTypeUniqueKey.Marshal()),
bundle.RelationKeyResolvedLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
},
{
bundle.RelationKeyId: domain.String(defaultObjectTypeId),
bundle.RelationKeyUniqueKey: domain.String(defaultObjectTypeUniqueKey.Marshal()),
bundle.RelationKeyLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
bundle.RelationKeyId: domain.String(defaultObjectTypeId),
bundle.RelationKeyUniqueKey: domain.String(defaultObjectTypeUniqueKey.Marshal()),
bundle.RelationKeyResolvedLayout: domain.Int64(int64(model.ObjectType_objectType)),
bundle.RelationKeySpaceId: domain.String(spaceId),
bundle.RelationKeyType: domain.String(objectTypeId),
},
{
bundle.RelationKeyId: domain.String(defaultTemplateId),
Expand Down

0 comments on commit 874e86d

Please sign in to comment.