summaryrefslogtreecommitdiff
path: root/test/web/salmon
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-04-29 19:47:56 +0200
committerRoger Braun <roger@rogerbraun.net>2017-04-29 19:47:56 +0200
commitba1ea770012893ea818f248e9a0a2ee3ab854676 (patch)
tree810b94c5d91ef5ec8ceeadecc3db485c9f5fe690 /test/web/salmon
parent427bac0966c551eb16eaa6595d99fc5361a32ea9 (diff)
downloadpleroma-ba1ea770012893ea818f248e9a0a2ee3ab854676.tar.gz
pleroma-ba1ea770012893ea818f248e9a0a2ee3ab854676.zip
Make key fetching use ostatus fetching.
Diffstat (limited to 'test/web/salmon')
-rw-r--r--test/web/salmon/salmon_test.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/web/salmon/salmon_test.exs b/test/web/salmon/salmon_test.exs
index 6fbabd19f..aa77659d0 100644
--- a/test/web/salmon/salmon_test.exs
+++ b/test/web/salmon/salmon_test.exs
@@ -49,4 +49,12 @@ defmodule Pleroma.Web.Salmon.SalmonTest do
assert doc == decoded_doc
end
+
+ test "it gets a magic key" do
+ # TODO: Make test local
+ salmon = File.read!("test/fixtures/salmon2.xml")
+ key = Salmon.fetch_magic_key(salmon)
+
+ assert key == "RSA.uzg6r1peZU0vXGADWxGJ0PE34WvmhjUmydbX5YYdOiXfODVLwCMi1umGoqUDm-mRu4vNEdFBVJU1CpFA7dKzWgIsqsa501i2XqElmEveXRLvNRWFB6nG03Q5OUY2as8eE54BJm0p20GkMfIJGwP6TSFb-ICp3QjzbatuSPJ6xCE=.AQAB"
+ end
end