From 010fcb73d7e308c15b3f2c10fa27bd49d25d56cf Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 17 Nov 2018 17:42:47 +0000 Subject: test: httpoison mock: add second spoofing activity test --- .../httpoison_mock/https__info.pleroma.site_activity2.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json (limited to 'test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json') diff --git a/test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json b/test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json new file mode 100644 index 000000000..8ce35958d --- /dev/null +++ b/test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json @@ -0,0 +1,14 @@ +{ + "@context": "https://www.w3.org/ns/activitystreams", + "attributedTo": "https://info.pleroma.site/actor.json", + "attachment": [], + "actor": "https://mastodon.example.org/users/admin", + "content": "

this post was not actually written by Haelwenn

", + "id": "https://info.pleroma.site/activity2.json", + "published": "2018-09-01T22:15:00Z", + "tag": [], + "to": [ + "https://www.w3.org/ns/activitystreams#Public" + ], + "type": "Note" +} -- cgit v1.2.3 From 9c8adfb6efb0adf0638f91533ff1bc9f9df36668 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 17 Nov 2018 18:16:55 +0000 Subject: test: fix more test defects --- test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json') 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": "

this post was not actually written by Haelwenn

", "id": "https://info.pleroma.site/activity2.json", "published": "2018-09-01T22:15:00Z", -- cgit v1.2.3