diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-27 09:46:45 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-27 09:46:45 +0200 |
commit | 90da25505f9cfbd16a9088e20714b24c2c6fa215 (patch) | |
tree | 4056f054510ccf03da20aad3862097aeb5264984 /test/support/factory.ex | |
parent | 1ea4325fecaed981b2f949b00d3b37171013012c (diff) | |
download | pleroma-90da25505f9cfbd16a9088e20714b24c2c6fa215.tar.gz |
Add discovery and subscription requests to websub.
Diffstat (limited to 'test/support/factory.ex')
-rw-r--r-- | test/support/factory.ex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index d037be4a6..ac276567a 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -76,4 +76,14 @@ defmodule Pleroma.Factory do state: "requested" } end + + def websub_client_subscription_factory do + %Pleroma.Web.Websub.WebsubClientSubscription{ + topic: "http://example.org", + secret: "here's a secret", + valid_until: nil, + state: "requested", + subscribers: [] + } + end end |