summaryrefslogtreecommitdiff
path: root/testrig/testmodels.go
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2023-07-29 03:49:14 -0700
committerLibravatar GitHub <noreply@github.com>2023-07-29 12:49:14 +0200
commitb874e9251e00961f295e4c409e1b34da89fab4ed (patch)
treecb528816250f322707a90c0954c963886ea96c19 /testrig/testmodels.go
parent[chore] Update activity dependency (#2031) (diff)
downloadgotosocial-b874e9251e00961f295e4c409e1b34da89fab4ed.tar.xz
[feature] Implement markers API (#1989)
* Implement markers API Fixes #1856 * Correct import grouping in markers files * Regenerate Swagger for markers API * Shorten names for readability * Cache markers for 6 hours * Update DB ref * Update envparsing.sh
Diffstat (limited to 'testrig/testmodels.go')
-rw-r--r--testrig/testmodels.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go
index b22b6089c..c7a293455 100644
--- a/testrig/testmodels.go
+++ b/testrig/testmodels.go
@@ -2007,6 +2007,25 @@ func NewTestListEntries() map[string]*gtsmodel.ListEntry {
}
}
+func NewTestMarkers() map[string]*gtsmodel.Marker {
+ return map[string]*gtsmodel.Marker{
+ "local_account_1_home_marker": {
+ AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
+ Name: gtsmodel.MarkerNameHome,
+ UpdatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"),
+ Version: 0,
+ LastReadID: "01F8MH82FYRXD2RC6108DAJ5HB",
+ },
+ "local_account_1_notification_marker": {
+ AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
+ Name: gtsmodel.MarkerNameNotifications,
+ UpdatedAt: TimeMustParse("2022-05-14T13:21:09+02:00"),
+ Version: 4,
+ LastReadID: "01F8Q0ANPTWW10DAKTX7BRPBJP",
+ },
+ }
+}
+
func NewTestBlocks() map[string]*gtsmodel.Block {
return map[string]*gtsmodel.Block{
"local_account_2_block_remote_account_1": {