Create additional non-UK broadcast test polygons

This allows MNOs to test delivery to multiple non-adjacent cells without
risk of sending a broadcast on the public network. This will also support
testing of multiple polygon geometries in a single message.

Test polygons are all non-UK (northern Finland).

Signed-off-by: Richard Baker <richard.baker@digital.cabinet-office.gov.uk>
This commit is contained in:
Richard Baker
2021-03-31 09:36:40 +01:00
parent a22fb3eb4e
commit 02600d76bd
3 changed files with 71 additions and 18 deletions

View File

@@ -1,20 +1,73 @@
{
"type":"FeatureCollection",
"features":[{
"type": "Feature",
"properties": {
"id": "santa-claus-village-rovaniemi",
"name": "Santa Claus Village, Rovaniemi"
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"id": "santa-claus-village-rovaniemi-a",
"name": "Santa Claus Village, Rovaniemi A"
},
"geometry": {
"type": "Polygon",
"coordinates": [[
[25.8890, 66.5500],
[25.8890, 66.551],
[25.8910, 66.551],
[25.8910, 66.5500],
[25.889, 66.55000]
]]
}
},
"geometry": {
"type":"Polygon",
"coordinates": [[
[25.8890, 66.5500],
[25.8890, 66.551],
[25.8910, 66.551],
[25.8910, 66.5500],
[25.889, 66.55000]
]]
{
"type": "Feature",
"properties": {
"id": "santa-claus-village-rovaniemi-b",
"name": "Santa Claus Village, Rovaniemi B"
},
"geometry": {
"type": "Polygon",
"coordinates": [[
[25.895, 66.577],
[25.897, 66.577],
[25.897, 66.578],
[25.895, 66.578],
[25.895, 66.577]
]]
}
},
{
"type": "Feature",
"properties": {
"id": "santa-claus-village-rovaniemi-c",
"name": "Santa Claus Village, Rovaniemi C"
},
"geometry": {
"type": "Polygon",
"coordinates": [[
[25.952, 66.572],
[25.954, 66.572],
[25.954, 66.573],
[25.952, 66.573],
[25.952, 66.572]
]]
}
},
{
"type": "Feature",
"properties": {
"id": "santa-claus-village-rovaniemi-d",
"name": "Santa Claus Village, Rovaniemi D"
},
"geometry": {
"type": "Polygon",
"coordinates": [[
[25.944, 66.586],
[25.947, 66.586],
[25.947, 66.587],
[25.944, 66.587],
[25.944, 66.586]
]]
}
}
}]
}
]
}

View File

@@ -336,7 +336,7 @@ def test_phone_density(
),
(
# No population data available
'test-santa-claus-village-rovaniemi', 1_500, 0.01347
'test-santa-claus-village-rovaniemi-a', 1_500, 0.01347
)
))
def test_estimated_bleed(