Fix cucumber features

This commit is contained in:
Robert Schäfer 2019-03-26 01:28:32 +01:00
parent 46c0d0659a
commit b78296a546
5 changed files with 31 additions and 31 deletions

View File

@ -29,7 +29,7 @@ Feature: Delete an object
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/karl-heinz/status/a4DJ2afdg323v32641vna42lkj685kasd2", "id": "http://localhost:4123/activitypub/users/karl-heinz/status/a4DJ2afdg323v32641vna42lkj685kasd2",
"type": "Delete", "type": "Delete",
"object": { "object": {
"id": "https://aronda.org/activitypub/users/bernd-das-brot/status/kljsdfg9843jknsdf234", "id": "https://aronda.org/activitypub/users/bernd-das-brot/status/kljsdfg9843jknsdf234",

View File

@ -15,7 +15,7 @@ Feature: Follow a user
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/stuart-little/status/83J23549sda1k72fsa4567na42312455kad83", "id": "http://localhost:4123/activitypub/users/stuart-little/status/83J23549sda1k72fsa4567na42312455kad83",
"type": "Follow", "type": "Follow",
"actor": "http://localhost:4123/activitypub/users/stuart-little", "actor": "http://localhost:4123/activitypub/users/stuart-little",
"object": "http://localhost:4123/activitypub/users/tero-vota" "object": "http://localhost:4123/activitypub/users/tero-vota"
@ -32,11 +32,11 @@ Feature: Follow a user
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/tero-vota/status/a4DJ2afdg323v32641vna42lkj685kasd2", "id": "http://localhost:4123/activitypub/users/tero-vota/status/a4DJ2afdg323v32641vna42lkj685kasd2",
"type": "Undo", "type": "Undo",
"actor": "http://localhost:4123/activitypub/users/tero-vota", "actor": "http://localhost:4123/activitypub/users/tero-vota",
"object": { "object": {
"id": "https://localhost:4123/activitypub/users/stuart-little/status/83J23549sda1k72fsa4567na42312455kad83", "id": "http://localhost:4123/activitypub/users/stuart-little/status/83J23549sda1k72fsa4567na42312455kad83",
"type": "Follow", "type": "Follow",
"actor": "http://localhost:4123/activitypub/users/stuart-little", "actor": "http://localhost:4123/activitypub/users/stuart-little",
"object": "http://localhost:4123/activitypub/users/tero-vota" "object": "http://localhost:4123/activitypub/users/tero-vota"

View File

@ -13,14 +13,14 @@ Feature: Like an object like an article or note
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/karl-heinz/status/faslkasa7dasfzkjn2398hsfd", "id": "http://localhost:4123/activitypub/users/karl-heinz/status/faslkasa7dasfzkjn2398hsfd",
"type": "Create", "type": "Create",
"actor": "https://localhost:4123/activitypub/users/karl-heinz", "actor": "http://localhost:4123/activitypub/users/karl-heinz",
"object": { "object": {
"id": "https://localhost:4123/activitypub/users/karl-heinz/status/dkasfljsdfaafg9843jknsdf", "id": "http://localhost:4123/activitypub/users/karl-heinz/status/dkasfljsdfaafg9843jknsdf",
"type": "Article", "type": "Article",
"published": "2019-02-07T19:37:55.002Z", "published": "2019-02-07T19:37:55.002Z",
"attributedTo": "https://localhost:4123/activitypub/users/karl-heinz", "attributedTo": "http://localhost:4123/activitypub/users/karl-heinz",
"content": "Hi Max, how are you?", "content": "Hi Max, how are you?",
"to": "https://www.w3.org/ns/activitystreams#Public" "to": "https://www.w3.org/ns/activitystreams#Public"
} }
@ -32,7 +32,7 @@ Feature: Like an object like an article or note
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/peter-lustiger/status/83J23549sda1k72fsa4567na42312455kad83", "id": "http://localhost:4123/activitypub/users/peter-lustiger/status/83J23549sda1k72fsa4567na42312455kad83",
"type": "Like", "type": "Like",
"actor": "http://localhost:4123/activitypub/users/peter-lustiger", "actor": "http://localhost:4123/activitypub/users/peter-lustiger",
"object": "http://localhost:4123/activitypub/users/karl-heinz/status/dkasfljsdfaafg9843jknsdf" "object": "http://localhost:4123/activitypub/users/karl-heinz/status/dkasfljsdfaafg9843jknsdf"

View File

@ -14,10 +14,10 @@ Feature: Receiving collections
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/renate-oberdorfer/outbox", "id": "http://localhost:4123/activitypub/users/renate-oberdorfer/outbox",
"summary": "renate-oberdorfers outbox collection", "summary": "renate-oberdorfers outbox collection",
"type": "OrderedCollection", "type": "OrderedCollection",
"first": "https://localhost:4123/activitypub/users/renate-oberdorfer/outbox?page=true", "first": "http://localhost:4123/activitypub/users/renate-oberdorfer/outbox?page=true",
"totalItems": 0 "totalItems": 0
} }
""" """
@ -29,10 +29,10 @@ Feature: Receiving collections
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/renate-oberdorfer/following", "id": "http://localhost:4123/activitypub/users/renate-oberdorfer/following",
"summary": "renate-oberdorfers following collection", "summary": "renate-oberdorfers following collection",
"type": "OrderedCollection", "type": "OrderedCollection",
"first": "https://localhost:4123/activitypub/users/renate-oberdorfer/following?page=true", "first": "http://localhost:4123/activitypub/users/renate-oberdorfer/following?page=true",
"totalItems": 0 "totalItems": 0
} }
""" """
@ -44,10 +44,10 @@ Feature: Receiving collections
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/renate-oberdorfer/followers", "id": "http://localhost:4123/activitypub/users/renate-oberdorfer/followers",
"summary": "renate-oberdorfers followers collection", "summary": "renate-oberdorfers followers collection",
"type": "OrderedCollection", "type": "OrderedCollection",
"first": "https://localhost:4123/activitypub/users/renate-oberdorfer/followers?page=true", "first": "http://localhost:4123/activitypub/users/renate-oberdorfer/followers?page=true",
"totalItems": 0 "totalItems": 0
} }
""" """
@ -59,11 +59,11 @@ Feature: Receiving collections
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/renate-oberdorfer/outbox?page=true", "id": "http://localhost:4123/activitypub/users/renate-oberdorfer/outbox?page=true",
"summary": "renate-oberdorfers outbox collection", "summary": "renate-oberdorfers outbox collection",
"type": "OrderedCollectionPage", "type": "OrderedCollectionPage",
"totalItems": 0, "totalItems": 0,
"partOf": "https://localhost:4123/activitypub/users/renate-oberdorfer/outbox", "partOf": "http://localhost:4123/activitypub/users/renate-oberdorfer/outbox",
"orderedItems": [] "orderedItems": []
} }
""" """
@ -75,11 +75,11 @@ Feature: Receiving collections
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/renate-oberdorfer/following?page=true", "id": "http://localhost:4123/activitypub/users/renate-oberdorfer/following?page=true",
"summary": "renate-oberdorfers following collection", "summary": "renate-oberdorfers following collection",
"type": "OrderedCollectionPage", "type": "OrderedCollectionPage",
"totalItems": 0, "totalItems": 0,
"partOf": "https://localhost:4123/activitypub/users/renate-oberdorfer/following", "partOf": "http://localhost:4123/activitypub/users/renate-oberdorfer/following",
"orderedItems": [] "orderedItems": []
} }
""" """
@ -91,11 +91,11 @@ Feature: Receiving collections
""" """
{ {
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
"id": "https://localhost:4123/activitypub/users/renate-oberdorfer/followers?page=true", "id": "http://localhost:4123/activitypub/users/renate-oberdorfer/followers?page=true",
"summary": "renate-oberdorfers followers collection", "summary": "renate-oberdorfers followers collection",
"type": "OrderedCollectionPage", "type": "OrderedCollectionPage",
"totalItems": 0, "totalItems": 0,
"partOf": "https://localhost:4123/activitypub/users/renate-oberdorfer/followers", "partOf": "http://localhost:4123/activitypub/users/renate-oberdorfer/followers",
"orderedItems": [] "orderedItems": []
} }
""" """

View File

@ -19,7 +19,7 @@ Feature: Webfinger discovery
{ {
"rel": "self", "rel": "self",
"type": "application/activity+json", "type": "application/activity+json",
"href": "https://localhost:4123/activitypub/users/peter-lustiger" "href": "http://localhost:4123/activitypub/users/peter-lustiger"
} }
] ]
} }
@ -44,21 +44,21 @@ Feature: Webfinger discovery
"https://www.w3.org/ns/activitystreams", "https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1" "https://w3id.org/security/v1"
], ],
"id": "https://localhost:4123/activitypub/users/peter-lustiger", "id": "http://localhost:4123/activitypub/users/peter-lustiger",
"type": "Person", "type": "Person",
"preferredUsername": "peter-lustiger", "preferredUsername": "peter-lustiger",
"name": "peter-lustiger", "name": "peter-lustiger",
"following": "https://localhost:4123/activitypub/users/peter-lustiger/following", "following": "http://localhost:4123/activitypub/users/peter-lustiger/following",
"followers": "https://localhost:4123/activitypub/users/peter-lustiger/followers", "followers": "http://localhost:4123/activitypub/users/peter-lustiger/followers",
"inbox": "https://localhost:4123/activitypub/users/peter-lustiger/inbox", "inbox": "http://localhost:4123/activitypub/users/peter-lustiger/inbox",
"outbox": "https://localhost:4123/activitypub/users/peter-lustiger/outbox", "outbox": "http://localhost:4123/activitypub/users/peter-lustiger/outbox",
"url": "https://localhost:4123/activitypub/@peter-lustiger", "url": "http://localhost:4123/activitypub/@peter-lustiger",
"endpoints": { "endpoints": {
"sharedInbox": "https://localhost:4123/activitypub/inbox" "sharedInbox": "http://localhost:4123/activitypub/inbox"
}, },
"publicKey": { "publicKey": {
"id": "https://localhost:4123/activitypub/users/peter-lustiger#main-key", "id": "http://localhost:4123/activitypub/users/peter-lustiger#main-key",
"owner": "https://localhost:4123/activitypub/users/peter-lustiger", "owner": "http://localhost:4123/activitypub/users/peter-lustiger",
"publicKeyPem": "adglkjlk89235kjn8obn2384f89z5bv9..." "publicKeyPem": "adglkjlk89235kjn8obn2384f89z5bv9..."
} }
} }