diff options
| author | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-02 10:26:09 +0545 | 
|---|---|---|
| committer | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-02 10:26:09 +0545 | 
| commit | 6386c1c9c1ff971c784744922a479ae38e5fdbad (patch) | |
| tree | 03db21b0991906a6b334b9e88217da8bb2d71400 /test/support | |
| parent | 1d01e8e656c364b97b9ee36a6173a830d3f5f4fc (diff) | |
| download | pleroma-6386c1c9c1ff971c784744922a479ae38e5fdbad.tar.gz pleroma-6386c1c9c1ff971c784744922a479ae38e5fdbad.zip | |
fetch url for OStatus to know if it is a/c or status
Diffstat (limited to 'test/support')
| -rw-r--r-- | test/support/http_request_mock.ex | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 2148bd4e7..d3b547d91 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -53,6 +53,27 @@ defmodule HttpRequestMock do    end    def get( +        "https://mastodon.social/.well-known/webfinger?resource=https://mastodon.social/users/emelie", +        _, +        _, +        _ +      ) do +    {:ok, +     %Tesla.Env{ +       status: 200, +       body: File.read!("test/fixtures/httpoison_mock/webfinger_emelie.json") +     }} +  end + +  def get("https://mastodon.social/users/emelie.atom", _, _, _) do +    {:ok, +     %Tesla.Env{ +       status: 200, +       body: File.read!("test/fixtures/httpoison_mock/emelie.atom") +     }} +  end + +  def get(          "https://osada.macgirvin.com/.well-known/webfinger?resource=acct:mike@osada.macgirvin.com",          _,          _, | 
