From 80490c183e6639ce5b57fcfca6772d8f96df8706 Mon Sep 17 00:00:00 2001 From: f0x Date: Thu, 11 May 2023 14:31:46 +0200 Subject: [PATCH] testrig: add testing profile field for admin user --- testrig/testmodels.go | 68 ++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 60c4b919a..e991f9655 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -395,39 +395,41 @@ func NewTestAccounts() map[string]*gtsmodel.Account { AvatarMediaAttachmentID: "", HeaderMediaAttachmentID: "", DisplayName: "", - Fields: []*gtsmodel.Field{}, - Note: "", - NoteRaw: "", - Memorial: FalseBool(), - MovedToAccountID: "", - CreatedAt: TimeMustParse("2022-05-17T13:10:59Z"), - UpdatedAt: TimeMustParse("2022-05-17T13:10:59Z"), - Bot: FalseBool(), - Reason: "", - Locked: FalseBool(), - Discoverable: TrueBool(), - Privacy: gtsmodel.VisibilityPublic, - Sensitive: FalseBool(), - Language: "en", - URI: "http://localhost:8080/users/admin", - URL: "http://localhost:8080/@admin", - PublicKeyURI: "http://localhost:8080/users/admin#main-key", - FetchedAt: time.Time{}, - InboxURI: "http://localhost:8080/users/admin/inbox", - OutboxURI: "http://localhost:8080/users/admin/outbox", - FollowersURI: "http://localhost:8080/users/admin/followers", - FollowingURI: "http://localhost:8080/users/admin/following", - FeaturedCollectionURI: "http://localhost:8080/users/admin/collections/featured", - ActorType: ap.ActorPerson, - AlsoKnownAs: "", - PrivateKey: &rsa.PrivateKey{}, - PublicKey: &rsa.PublicKey{}, - SensitizedAt: time.Time{}, - SilencedAt: time.Time{}, - SuspendedAt: time.Time{}, - HideCollections: FalseBool(), - SuspensionOrigin: "", - EnableRSS: TrueBool(), + Fields: []*gtsmodel.Field{ + {Name: "pronouns", Value: "they/them", VerifiedAt: TimeMustParse("0001-01-01T00:00:00Z")}, + }, + Note: "", + NoteRaw: "", + Memorial: FalseBool(), + MovedToAccountID: "", + CreatedAt: TimeMustParse("2022-05-17T13:10:59Z"), + UpdatedAt: TimeMustParse("2022-05-17T13:10:59Z"), + Bot: FalseBool(), + Reason: "", + Locked: FalseBool(), + Discoverable: TrueBool(), + Privacy: gtsmodel.VisibilityPublic, + Sensitive: FalseBool(), + Language: "en", + URI: "http://localhost:8080/users/admin", + URL: "http://localhost:8080/@admin", + PublicKeyURI: "http://localhost:8080/users/admin#main-key", + FetchedAt: time.Time{}, + InboxURI: "http://localhost:8080/users/admin/inbox", + OutboxURI: "http://localhost:8080/users/admin/outbox", + FollowersURI: "http://localhost:8080/users/admin/followers", + FollowingURI: "http://localhost:8080/users/admin/following", + FeaturedCollectionURI: "http://localhost:8080/users/admin/collections/featured", + ActorType: ap.ActorPerson, + AlsoKnownAs: "", + PrivateKey: &rsa.PrivateKey{}, + PublicKey: &rsa.PublicKey{}, + SensitizedAt: time.Time{}, + SilencedAt: time.Time{}, + SuspendedAt: time.Time{}, + HideCollections: FalseBool(), + SuspensionOrigin: "", + EnableRSS: TrueBool(), }, "local_account_1": { ID: "01F8MH1H7YV1Z7D2C8K2730QBF",