test: fix more test defects
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 17 Nov 2018 18:16:55 +0000 (18:16 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 17 Nov 2018 18:16:55 +0000 (18:16 +0000)
test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json
test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json
test/web/activity_pub/transmogrifier_test.exs

index eab0341fe36f8317bfe892157466c6818298285a..a0dc4c830dad907b896619f1358ca6bdb88ce3fe 100644 (file)
@@ -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",
index 8ce35958dfb651af723083ec9a993acb41fd7619..b16a9279b8380c05d151fd24706b9279790c8c00 100644 (file)
@@ -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",
index 0ba969263583bec742310ca90733632275bd8e6c..e5308d12541367247ca7092841382113991a8955 100644 (file)
@@ -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"