summaryrefslogtreecommitdiff
path: root/testrig/testmodels.go
diff options
context:
space:
mode:
Diffstat (limited to 'testrig/testmodels.go')
-rw-r--r--testrig/testmodels.go97
1 files changed, 58 insertions, 39 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go
index 9d7654dd5..60c4b919a 100644
--- a/testrig/testmodels.go
+++ b/testrig/testmodels.go
@@ -317,7 +317,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
AvatarMediaAttachmentID: "",
HeaderMediaAttachmentID: "",
DisplayName: "",
- Fields: []gtsmodel.Field{},
+ Fields: []*gtsmodel.Field{},
Note: "",
NoteRaw: "",
Memorial: FalseBool(),
@@ -357,7 +357,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
AvatarMediaAttachmentID: "",
HeaderMediaAttachmentID: "",
DisplayName: "",
- Fields: []gtsmodel.Field{},
+ Fields: []*gtsmodel.Field{},
Note: "",
Memorial: FalseBool(),
MovedToAccountID: "",
@@ -395,7 +395,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
AvatarMediaAttachmentID: "",
HeaderMediaAttachmentID: "",
DisplayName: "",
- Fields: []gtsmodel.Field{},
+ Fields: []*gtsmodel.Field{},
Note: "",
NoteRaw: "",
Memorial: FalseBool(),
@@ -435,7 +435,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
AvatarMediaAttachmentID: "01F8MH58A357CV5K7R7TJMSH6S",
HeaderMediaAttachmentID: "01PFPMWK2FF0D9WMHEJHR07C3Q",
DisplayName: "original zork (he/they)",
- Fields: []gtsmodel.Field{},
+ Fields: []*gtsmodel.Field{},
Note: "<p>hey yo this is my profile!</p>",
NoteRaw: "hey yo this is my profile!",
Memorial: FalseBool(),
@@ -475,45 +475,64 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
AvatarMediaAttachmentID: "",
HeaderMediaAttachmentID: "",
DisplayName: "happy little turtle :3",
- Fields: []gtsmodel.Field{},
- Note: "<p>i post about things that concern me</p>",
- NoteRaw: "i post about things that concern me",
- Memorial: FalseBool(),
- MovedToAccountID: "",
- CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
- Bot: FalseBool(),
- Reason: "",
- Locked: TrueBool(),
- Discoverable: FalseBool(),
- Privacy: gtsmodel.VisibilityFollowersOnly,
- Sensitive: TrueBool(),
- Language: "fr",
- URI: "http://localhost:8080/users/1happyturtle",
- URL: "http://localhost:8080/@1happyturtle",
- FetchedAt: time.Time{},
- InboxURI: "http://localhost:8080/users/1happyturtle/inbox",
- OutboxURI: "http://localhost:8080/users/1happyturtle/outbox",
- FollowersURI: "http://localhost:8080/users/1happyturtle/followers",
- FollowingURI: "http://localhost:8080/users/1happyturtle/following",
- FeaturedCollectionURI: "http://localhost:8080/users/1happyturtle/collections/featured",
- ActorType: ap.ActorPerson,
- AlsoKnownAs: "",
- PrivateKey: &rsa.PrivateKey{},
- PublicKey: &rsa.PublicKey{},
- PublicKeyURI: "http://localhost:8080/users/1happyturtle#main-key",
- SensitizedAt: time.Time{},
- SilencedAt: time.Time{},
- SuspendedAt: time.Time{},
- HideCollections: FalseBool(),
- SuspensionOrigin: "",
+ Fields: []*gtsmodel.Field{
+ {
+ Name: "should you follow me?",
+ Value: "maybe!",
+ },
+ {
+ Name: "age",
+ Value: "120",
+ },
+ },
+ FieldsRaw: []*gtsmodel.Field{
+ {
+ Name: "should you follow me?",
+ Value: "maybe!",
+ },
+ {
+ Name: "age",
+ Value: "120",
+ },
+ },
+ Note: "<p>i post about things that concern me</p>",
+ NoteRaw: "i post about things that concern me",
+ Memorial: FalseBool(),
+ MovedToAccountID: "",
+ CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
+ UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
+ Bot: FalseBool(),
+ Reason: "",
+ Locked: TrueBool(),
+ Discoverable: FalseBool(),
+ Privacy: gtsmodel.VisibilityFollowersOnly,
+ Sensitive: TrueBool(),
+ Language: "fr",
+ URI: "http://localhost:8080/users/1happyturtle",
+ URL: "http://localhost:8080/@1happyturtle",
+ FetchedAt: time.Time{},
+ InboxURI: "http://localhost:8080/users/1happyturtle/inbox",
+ OutboxURI: "http://localhost:8080/users/1happyturtle/outbox",
+ FollowersURI: "http://localhost:8080/users/1happyturtle/followers",
+ FollowingURI: "http://localhost:8080/users/1happyturtle/following",
+ FeaturedCollectionURI: "http://localhost:8080/users/1happyturtle/collections/featured",
+ ActorType: ap.ActorPerson,
+ AlsoKnownAs: "",
+ PrivateKey: &rsa.PrivateKey{},
+ PublicKey: &rsa.PublicKey{},
+ PublicKeyURI: "http://localhost:8080/users/1happyturtle#main-key",
+ SensitizedAt: time.Time{},
+ SilencedAt: time.Time{},
+ SuspendedAt: time.Time{},
+ HideCollections: FalseBool(),
+ SuspensionOrigin: "",
},
"remote_account_1": {
ID: "01F8MH5ZK5VRH73AKHQM6Y9VNX",
Username: "foss_satan",
Domain: "fossbros-anonymous.io",
DisplayName: "big gerald",
- Fields: []gtsmodel.Field{},
+ Fields: []*gtsmodel.Field{},
Note: "i post about like, i dunno, stuff, or whatever!!!!",
Memorial: FalseBool(),
MovedToAccountID: "",
@@ -549,7 +568,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Username: "Some_User",
Domain: "example.org",
DisplayName: "some user",
- Fields: []gtsmodel.Field{},
+ Fields: []*gtsmodel.Field{},
Note: "i'm a real son of a gun",
Memorial: FalseBool(),
MovedToAccountID: "",
@@ -585,7 +604,7 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Username: "her_fuckin_maj",
Domain: "thequeenisstillalive.technology",
DisplayName: "lizzzieeeeeeeeeeee",
- Fields: []gtsmodel.Field{},
+ Fields: []*gtsmodel.Field{},
Note: "if i die blame charles don't let that fuck become king",
Memorial: FalseBool(),
MovedToAccountID: "",