summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-11-17 18:16:55 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-11-17 18:16:55 +0000
commit9c8adfb6efb0adf0638f91533ff1bc9f9df36668 (patch)
tree65bb7adb89b026ae6a1e7601d303a2c437fec5c1
parentd9cb081f0723881343b6dd71e1bb1b52b5492f2b (diff)
downloadpleroma-9c8adfb6efb0adf0638f91533ff1bc9f9df36668.tar.gz
pleroma-9c8adfb6efb0adf0638f91533ff1bc9f9df36668.zip
test: fix more test defects
-rw-r--r--test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json4
-rw-r--r--test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json2
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs4
3 files changed, 5 insertions, 5 deletions
diff --git a/test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json b/test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json
index eab0341fe..a0dc4c830 100644
--- a/test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json
+++ b/test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json
@@ -1,8 +1,8 @@
{
"@context": "https://www.w3.org/ns/activitystreams",
- "actor": "https://mastodon.example.org/users/admin",
+ "actor": "http://mastodon.example.org/users/admin",
"attachment": [],
- "attributedTo": "https://mastodon.example.org/users/admin",
+ "attributedTo": "http://mastodon.example.org/users/admin",
"content": "<p>this post was not actually written by Haelwenn</p>",
"id": "https://info.pleroma.site/activity.json",
"published": "2018-09-01T22:15:00Z",
diff --git a/test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json b/test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json
index 8ce35958d..b16a9279b 100644
--- a/test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json
+++ b/test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json
@@ -2,7 +2,7 @@
"@context": "https://www.w3.org/ns/activitystreams",
"attributedTo": "https://info.pleroma.site/actor.json",
"attachment": [],
- "actor": "https://mastodon.example.org/users/admin",
+ "actor": "http://mastodon.example.org/users/admin",
"content": "<p>this post was not actually written by Haelwenn</p>",
"id": "https://info.pleroma.site/activity2.json",
"published": "2018-09-01T22:15:00Z",
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index 0ba969263..e5308d125 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -874,8 +874,8 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
test "it rejects activities which reference objects with bogus origins" do
data = %{
"@context" => "https://www.w3.org/ns/activitystreams",
- "id" => "https://mastodon.example.org/users/admin/activities/1234",
- "actor" => "https://mastodon.example.org/users/admin",
+ "id" => "http://mastodon.example.org/users/admin/activities/1234",
+ "actor" => "http://mastodon.example.org/users/admin",
"to" => ["https://www.w3.org/ns/activitystreams#Public"],
"object" => "https://info.pleroma.site/activity.json",
"type" => "Announce"