mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
AP locations fixtures
This commit is contained in:
parent
ce6c452b91
commit
0899e71684
7 changed files with 71 additions and 0 deletions
4
tests/fixtures/AP-location/bad-location-without-a-name.json
vendored
Normal file
4
tests/fixtures/AP-location/bad-location-without-a-name.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"id" : "http://localhost:13120/federation/p/1",
|
||||
"type" : "Place"
|
||||
}
|
30
tests/fixtures/AP-location/multiple-mixed-locations.json
vendored
Normal file
30
tests/fixtures/AP-location/multiple-mixed-locations.json
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
{
|
||||
"id" : "http://localhost:13120/federation/p/4",
|
||||
"name" : "Location with a name",
|
||||
"type" : "Place"
|
||||
},
|
||||
{
|
||||
"id" : "http://localhost:13120/federation/p/5",
|
||||
"name" : "A second location with a name",
|
||||
"type" : "Place"
|
||||
},
|
||||
{
|
||||
"id" : "https://virtual.location.org",
|
||||
"name" : "A Virtual location",
|
||||
"address": {
|
||||
"type": "VirtualLocation",
|
||||
"url": "https://virtual.location.org"
|
||||
},
|
||||
"type" : "Place"
|
||||
},
|
||||
{
|
||||
"id" : "https://a.second.fallback.virtual.location.org",
|
||||
"name" : "A Fallback Virtual location",
|
||||
"address": {
|
||||
"type": "VirtualLocation",
|
||||
"url": "https://a.second.fallback.virtual.location.org"
|
||||
},
|
||||
"type" : "Place"
|
||||
}
|
||||
]
|
5
tests/fixtures/AP-location/physical-location-no-address.json
vendored
Normal file
5
tests/fixtures/AP-location/physical-location-no-address.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"id" : "http://localhost:13120/federation/p/1",
|
||||
"name" : "Location with a name",
|
||||
"type" : "Place"
|
||||
}
|
13
tests/fixtures/AP-location/physical-location-with-postal-address.json
vendored
Normal file
13
tests/fixtures/AP-location/physical-location-with-postal-address.json
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"id" : "http://localhost:13120/federation/p/2",
|
||||
"name" : "Location with a postal address",
|
||||
"address": {
|
||||
"type": "PostalAddress",
|
||||
"addressCountry": "Austria",
|
||||
"addressLocality": "Fediverse Town",
|
||||
"addressRegion": "Steiermark",
|
||||
"postalCode": "8010",
|
||||
"streetAddress": "15 Fediverse Street"
|
||||
},
|
||||
"type" : "Place"
|
||||
}
|
6
tests/fixtures/AP-location/physical-location-with-simple-string-address.json
vendored
Normal file
6
tests/fixtures/AP-location/physical-location-with-simple-string-address.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"id" : "http://localhost:13120/federation/p/3",
|
||||
"name" : "Location with a simple string address",
|
||||
"address": "Simple string address",
|
||||
"type" : "Place"
|
||||
}
|
4
tests/fixtures/AP-location/physical-location-without-id.json
vendored
Normal file
4
tests/fixtures/AP-location/physical-location-without-id.json
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name" : "Location without id",
|
||||
"type" : "Place"
|
||||
}
|
9
tests/fixtures/AP-location/virtual-location.json
vendored
Normal file
9
tests/fixtures/AP-location/virtual-location.json
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"id" : "https://virtual.location.org",
|
||||
"name" : "A Virtual location",
|
||||
"address": {
|
||||
"type": "VirtualLocation",
|
||||
"url": "https://virtual.location.org"
|
||||
},
|
||||
"type" : "Place"
|
||||
}
|
Loading…
Reference in a new issue