From 365514174ef00dcf426b2b5704c3d7adebe926e1 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 2 Feb 2017 11:46:42 -0500 Subject: Add tear down to APIv4 tests (#5250) * Add tear down to APIv4 tests * Defer tear downs --- store/store.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'store/store.go') diff --git a/store/store.go b/store/store.go index 980ff7b1f..c75ec4554 100644 --- a/store/store.go +++ b/store/store.go @@ -60,6 +60,7 @@ type TeamStore interface { UpdateDisplayName(name string, teamId string) StoreChannel Get(id string) StoreChannel GetByName(name string) StoreChannel + SearchByName(name string) StoreChannel GetAll() StoreChannel GetAllTeamListing() StoreChannel GetTeamsByUserId(userId string) StoreChannel @@ -92,6 +93,7 @@ type ChannelStore interface { Delete(channelId string, time int64) StoreChannel SetDeleteAt(channelId string, deleteAt int64, updateAt int64) StoreChannel PermanentDeleteByTeam(teamId string) StoreChannel + PermanentDelete(channelId string) StoreChannel GetByName(team_id string, name string, allowFromCache bool) StoreChannel GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) StoreChannel GetDeletedByName(team_id string, name string) StoreChannel @@ -114,6 +116,7 @@ type ChannelStore interface { GetMemberCount(channelId string, allowFromCache bool) StoreChannel RemoveMember(channelId string, userId string) StoreChannel PermanentDeleteMembersByUser(userId string) StoreChannel + PermanentDeleteMembersByChannel(channelId string) StoreChannel UpdateLastViewedAt(channelIds []string, userId string) StoreChannel SetLastViewedAt(channelId string, userId string, newLastViewedAt int64) StoreChannel IncrementMentionCount(channelId string, userId string) StoreChannel @@ -132,6 +135,7 @@ type PostStore interface { GetSingle(id string) StoreChannel Delete(postId string, time int64) StoreChannel PermanentDeleteByUser(userId string) StoreChannel + PermanentDeleteByChannel(channelId string) StoreChannel GetPosts(channelId string, offset int, limit int, allowFromCache bool) StoreChannel GetFlaggedPosts(userId string, offset int, limit int) StoreChannel GetPostsBefore(channelId string, postId string, numPosts int, offset int) StoreChannel -- cgit v1.2.3-1-g7c22