From 5ef41ba3f21f4c2105f668fc35b6284749e17775 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 16 May 2022 18:48:59 +0200 Subject: [chore] Timeline test updates (#578) * add admin boost of zork to test model * update tests to make them more determinate * remove printf call --- testrig/testmodels.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'testrig') diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 08b0e13dc..ef1c832d5 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -1049,6 +1049,32 @@ func NewTestStatuses() map[string]*gtsmodel.Status { Likeable: true, ActivityStreamsType: ap.ObjectNote, }, + "admin_account_status_4": { + ID: "01G36SF3V6Y6V5BF9P4R7PQG7G", + URI: "http://localhost:8080/users/admin/statuses/01G36SF3V6Y6V5BF9P4R7PQG7G", + URL: "http://localhost:8080/@admin/statuses/01G36SF3V6Y6V5BF9P4R7PQG7G", + Content: "hello everyone!", + CreatedAt: TimeMustParse("2021-10-20T12:41:37+02:00"), + UpdatedAt: TimeMustParse("2021-10-20T12:41:37+02:00"), + Local: true, + AccountURI: "http://localhost:8080/users/admin", + AccountID: "01F8MH17FWEB39HZJ76B6VXSKF", + InReplyToID: "", + InReplyToAccountID: "", + InReplyToURI: "", + BoostOfID: "01F8MHAMCHF6Y650WCRSCP4WMY", + BoostOfAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", + ContentWarning: "introduction post", + Visibility: gtsmodel.VisibilityPublic, + Sensitive: true, + Language: "en", + CreatedWithApplicationID: "01F8MGXQRHYF5QPMTMXP78QC2F", + Federated: true, + Boostable: true, + Replyable: true, + Likeable: true, + ActivityStreamsType: ap.ObjectNote, + }, "local_account_1_status_1": { ID: "01F8MHAMCHF6Y650WCRSCP4WMY", URI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY", -- cgit v1.3