diff options
Diffstat (limited to 'testrig')
| -rw-r--r-- | testrig/testmodels.go | 24 | ||||
| -rw-r--r-- | testrig/teststructs.go | 2 |
2 files changed, 14 insertions, 12 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go index db221459b..86ea32fce 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -2245,13 +2245,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { CreatedWithApplicationID: "01F8MGY43H3N2C8EWPR2FPYEXG", Federated: util.Ptr(true), InteractionPolicy: >smodel.InteractionPolicy{ - CanLike: gtsmodel.PolicyRules{ + CanLike: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor}, }, - CanReply: gtsmodel.PolicyRules{ + CanReply: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor}, }, - CanAnnounce: gtsmodel.PolicyRules{ + CanAnnounce: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor}, }, }, @@ -2428,13 +2428,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ", Federated: util.Ptr(true), InteractionPolicy: >smodel.InteractionPolicy{ - CanLike: gtsmodel.PolicyRules{ + CanLike: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic}, }, - CanReply: gtsmodel.PolicyRules{ + CanReply: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor}, }, - CanAnnounce: gtsmodel.PolicyRules{ + CanAnnounce: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic}, }, }, @@ -2460,14 +2460,14 @@ func NewTestStatuses() map[string]*gtsmodel.Status { CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ", Federated: util.Ptr(true), InteractionPolicy: >smodel.InteractionPolicy{ - CanLike: gtsmodel.PolicyRules{ + CanLike: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic}, }, - CanReply: gtsmodel.PolicyRules{ + CanReply: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor}, ManualApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic}, }, - CanAnnounce: gtsmodel.PolicyRules{ + CanAnnounce: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic}, }, }, @@ -2492,13 +2492,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { CreatedWithApplicationID: "01F8MGYG9E893WRHW0TAEXR8GJ", Federated: util.Ptr(false), InteractionPolicy: >smodel.InteractionPolicy{ - CanLike: gtsmodel.PolicyRules{ + CanLike: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic}, }, - CanReply: gtsmodel.PolicyRules{ + CanReply: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValuePublic}, }, - CanAnnounce: gtsmodel.PolicyRules{ + CanAnnounce: >smodel.PolicyRules{ AutomaticApproval: gtsmodel.PolicyValues{gtsmodel.PolicyValueAuthor}, }, }, diff --git a/testrig/teststructs.go b/testrig/teststructs.go index f119bd113..a1e241f4e 100644 --- a/testrig/teststructs.go +++ b/testrig/teststructs.go @@ -50,6 +50,7 @@ type TestStructs struct { EmailSender email.Sender WebPushSender *WebPushMockSender TransportController transport.Controller + InteractionFilter *interaction.Filter } func SetupTestStructs( @@ -120,6 +121,7 @@ func SetupTestStructs( EmailSender: emailSender, WebPushSender: webPushSender, TransportController: transportController, + InteractionFilter: intFilter, } } |
