From 81065bc06c544bd78eb9cce9cfbdba57638af005 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 10 Oct 2016 16:03:38 +0200 Subject: Adding test for ProcessFeedService --- spec/fixtures/xml/mastodon.atom | 261 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100644 spec/fixtures/xml/mastodon.atom (limited to 'spec/fixtures/xml') diff --git a/spec/fixtures/xml/mastodon.atom b/spec/fixtures/xml/mastodon.atom new file mode 100644 index 000000000..ce28cd77b --- /dev/null +++ b/spec/fixtures/xml/mastodon.atom @@ -0,0 +1,261 @@ + + + http://kickass.zone/users/localhost.atom + ::1 + 2016-10-10T13:29:56Z + http://kickass.zone/system/accounts/avatars/000/000/001/medium/eris.png + + http://activitystrea.ms/schema/1.0/person + http://kickass.zone/users/localhost + localhost + localhost@kickass.zone + + + + + localhost + ::1 + + + + + + + tag:kickass.zone,2016-10-10:objectId=7:objectType=Follow + 2016-10-10T13:29:56Z + 2016-10-10T13:29:56Z + localhost started following kat@mastodon.social + localhost started following kat@mastodon.social + http://activitystrea.ms/schema/1.0/follow + + + http://activitystrea.ms/schema/1.0/activity + + http://activitystrea.ms/schema/1.0/person + https://mastodon.social/users/kat + kat + kat@mastodon.social + #trans #queer + + + + + kat + Kat + #trans #queer + + + + tag:kickass.zone,2016-10-10:objectId=3:objectType=Favourite + 2016-10-10T13:29:26Z + 2016-10-10T13:29:26Z + localhost favourited a status by kat@mastodon.social + localhost favourited a status by kat@mastodon.social + http://activitystrea.ms/schema/1.0/favorite + + + http://activitystrea.ms/schema/1.0/activity + + + http://activitystrea.ms/schema/1.0/comment + tag:mastodon.social,2016-10-10:objectId=22833:objectType=Status + @localhost oooh more mastodons ❤ + + <p><a href="http://kickass.zone/users/localhost">@localhost</a> oooh more mastodons ❤</p> + http://activitystrea.ms/schema/1.0/post + 2016-10-10T13:23:35Z + 2016-10-10T13:23:35Z + + http://activitystrea.ms/schema/1.0/person + https://mastodon.social/users/kat + kat + kat@mastodon.social + #trans #queer + + + + + kat + Kat + #trans #queer + + + + + + tag:kickass.zone,2016-10-10:objectId=2:objectType=Favourite + 2016-10-10T13:13:15Z + 2016-10-10T13:13:15Z + localhost favourited a status by Gargron@mastodon.social + localhost favourited a status by Gargron@mastodon.social + http://activitystrea.ms/schema/1.0/favorite + + + http://activitystrea.ms/schema/1.0/activity + + + http://activitystrea.ms/schema/1.0/note + tag:mastodon.social,2016-10-10:objectId=22825:objectType=Status + Deployed some fixes + + <p>Deployed some fixes</p> + http://activitystrea.ms/schema/1.0/post + 2016-10-10T13:10:37Z + 2016-10-10T13:10:37Z + + http://activitystrea.ms/schema/1.0/person + https://mastodon.social/users/Gargron + Gargron + Gargron@mastodon.social + Developer of Mastodon, a GNU social alternative: https://github.com/Gargron/mastodon + + + + + Gargron + Eugen + Developer of Mastodon, a GNU social alternative: https://github.com/Gargron/mastodon + + + + + tag:kickass.zone,2016-10-10:objectId=17:objectType=Status + 2016-10-10T00:41:31Z + 2016-10-10T00:41:31Z + Social media needs MOAR cats! http://kickass.zone/media/3 + <p>Social media needs MOAR cats! <a rel="nofollow noopener" href="http://kickass.zone/media/3">http://kickass.zone/media/3</a></p> + http://activitystrea.ms/schema/1.0/post + + + http://activitystrea.ms/schema/1.0/note + + + + tag:kickass.zone,2016-10-10:objectId=14:objectType=Status + 2016-10-10T00:38:39Z + 2016-10-10T00:38:39Z + http://kickass.zone/media/2 + <p><a rel="nofollow noopener" href="http://kickass.zone/media/2">http://kickass.zone/media/2</a></p> + http://activitystrea.ms/schema/1.0/post + + + http://activitystrea.ms/schema/1.0/note + + + + tag:kickass.zone,2016-10-10:objectId=12:objectType=Status + 2016-10-10T00:37:49Z + 2016-10-10T00:37:49Z + + <activity:verb>http://activitystrea.ms/schema/1.0/delete</activity:verb> + <link rel="self" type="application/atom+xml" href="http://kickass.zone/users/localhost/updates/7.atom"/> + <link rel="alternate" type="text/html" href="http://kickass.zone/users/localhost/updates/7"/> + <activity:object-type>http://activitystrea.ms/schema/1.0/activity</activity:object-type> + </entry> + <entry> + <id>tag:kickass.zone,2016-10-10:objectId=4:objectType=Follow</id> + <published>2016-10-10T00:23:07Z</published> + <updated>2016-10-10T00:23:07Z</updated> + <title>localhost started following bignimbus@mastodon.social + localhost started following bignimbus@mastodon.social + http://activitystrea.ms/schema/1.0/follow + + + http://activitystrea.ms/schema/1.0/activity + + http://activitystrea.ms/schema/1.0/person + https://mastodon.social/users/bignimbus + bignimbus + bignimbus@mastodon.social + jdauriemma.com + + + + + bignimbus + Jeff Auriemma + jdauriemma.com + + + + tag:kickass.zone,2016-10-10:objectId=2:objectType=Follow + 2016-10-10T00:14:18Z + 2016-10-10T00:14:18Z + localhost started following Gargron@mastodon.social + localhost started following Gargron@mastodon.social + http://activitystrea.ms/schema/1.0/follow + + + http://activitystrea.ms/schema/1.0/activity + + http://activitystrea.ms/schema/1.0/person + https://mastodon.social/users/Gargron + Gargron + Gargron@mastodon.social + Developer of Mastodon, a GNU social alternative: https://github.com/Gargron/mastodon + + + + + Gargron + Eugen + Developer of Mastodon, a GNU social alternative: https://github.com/Gargron/mastodon + + + + tag:kickass.zone,2016-10-10:objectId=1:objectType=Follow + 2016-10-10T00:09:09Z + 2016-10-10T00:09:09Z + localhost started following abc@mastodon.social + localhost started following abc@mastodon.social + http://activitystrea.ms/schema/1.0/follow + + + http://activitystrea.ms/schema/1.0/activity + + http://activitystrea.ms/schema/1.0/person + https://mastodon.social/users/abc + abc + abc@mastodon.social + + + + + abc + abc + + + + tag:kickass.zone,2016-10-10:objectId=3:objectType=Status + 2016-10-10T00:02:47Z + 2016-10-10T00:02:47Z + + <activity:verb>http://activitystrea.ms/schema/1.0/delete</activity:verb> + <link rel="self" type="application/atom+xml" href="http://kickass.zone/users/localhost/updates/3.atom"/> + <link rel="alternate" type="text/html" href="http://kickass.zone/users/localhost/updates/3"/> + <activity:object-type>http://activitystrea.ms/schema/1.0/activity</activity:object-type> + </entry> + <entry> + <id>tag:kickass.zone,2016-10-10:objectId=2:objectType=Status</id> + <published>2016-10-10T00:02:18Z</published> + <updated>2016-10-10T00:02:18Z</updated> + <title>Yes, that was the obligatory first post. :) + <p>Yes, that was the obligatory first post. :)</p> + http://activitystrea.ms/schema/1.0/post + + + http://activitystrea.ms/schema/1.0/comment + + + + tag:kickass.zone,2016-10-10:objectId=1:objectType=Status + 2016-10-10T00:01:56Z + 2016-10-10T00:01:56Z + Hello, world! + <p>Hello, world!</p> + http://activitystrea.ms/schema/1.0/post + + + http://activitystrea.ms/schema/1.0/note + + -- cgit