Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
9c8adfb6
Commit
9c8adfb6
authored
Nov 17, 2018
by
kaniini
Browse files
test: fix more test defects
parent
d9cb081f
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/fixtures/httpoison_mock/https__info.pleroma.site_activity.json
View file @
9c8adfb6
{
"@context"
:
"https://www.w3.org/ns/activitystreams"
,
"actor"
:
"http
s
://mastodon.example.org/users/admin"
,
"actor"
:
"http://mastodon.example.org/users/admin"
,
"attachment"
:
[],
"attributedTo"
:
"http
s
://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"
,
...
...
test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json
View file @
9c8adfb6
...
...
@@ -2,7 +2,7 @@
"@context"
:
"https://www.w3.org/ns/activitystreams"
,
"attributedTo"
:
"https://info.pleroma.site/actor.json"
,
"attachment"
:
[],
"actor"
:
"http
s
://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"
,
...
...
test/web/activity_pub/transmogrifier_test.exs
View file @
9c8adfb6
...
...
@@ -874,8 +874,8 @@ test "it rejects objects with a bogus origin" do
test
"it rejects activities which reference objects with bogus origins"
do
data
=
%{
"@context"
=>
"https://www.w3.org/ns/activitystreams"
,
"id"
=>
"http
s
://mastodon.example.org/users/admin/activities/1234"
,
"actor"
=>
"http
s
://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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment