Skip to content

Commit

Permalink
test: update all test data with cap: prefix in tags
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Sep 2, 2024
1 parent 22d9b20 commit 9c5f823
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 99 deletions.
62 changes: 31 additions & 31 deletions tests/data/bf.xml

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions tests/data/fake.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version='1.0' encoding='utf-8'?>
<?xml-stylesheet type="text/xsl" href="/cap-style.xsl"?>
<cap:alert xmlns:cap="urn:oasis:names:tc:emergency:cap:1.2">
<cap:identifier>578125de-1fa3-41d3-843b-0ef6f4f42c92</cap:identifier>
<cap:sender>[email protected]</cap:sender>
<cap:sent>2024-08-30T15:16:00-00:00</cap:sent>
<cap:status>Actual</cap:status>
<cap:msgType>Alert</cap:msgType>
<cap:scope>Public</cap:scope>
<cap:info>
<cap:language>en</cap:language>
<cap:category>Met</cap:category>
<cap:event>Flood</cap:event>
<cap:urgency>Immediate</cap:urgency>
<cap:severity>Extreme</cap:severity>
<cap:certainty>Observed</cap:certainty>
<cap:expires>2024-08-31T17:16:00+00:00</cap:expires>
<cap:senderName>WMO</cap:senderName>
<cap:description>Test</cap:description>
<cap:web>http://localhost/multi-polygon-test/</cap:web>
<cap:area>
<cap:areaDesc>Sea</cap:areaDesc>
<cap:circle>5.0,5.0 10.0</cap:circle>
</cap:area>
<cap:area>
<cap:areaDesc>Africa</cap:areaDesc>
<cap:polygon>37.840157,-14.0625 25.304304,56.953125 -33.008663,63.28125
-30.619005,-4.921875 2.262595,-23.203125 37.840157,-14.0625</cap:polygon>
</cap:area>
<cap:area>
<cap:areaDesc>UK</cap:areaDesc>
<cap:polygon>61.005076,-8.4375 50.387508,7.734375 50.833698,-12.65625 61.005076,-8.4375</cap:polygon>
</cap:area>
</cap:info>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2006/12/xml-c14n11" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256" />
<ds:Reference URI="">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<ds:Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<ds:DigestValue>GOZrCIxWKVvDyq88xI2pNEgb2PgMFxp44KoakDLO84s=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
ydpaSvg7h0j7L4x4GlqMyUAkD56TKbzcDcA0RBs1mihiV9WQ505+ZBmVGfVJ/aT60j2kxISilIableTbMci70A==</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>MIIDhzCCAw6gAwIBAgISAy9mtdRWXy2VE/BFwu7KefbbMAoGCCqGSM49BAMDMDIx
CzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQDEwJF
NjAeFw0yNDA3MTUxMTM3MzlaFw0yNDEwMTMxMTM3MzhaMBYxFDASBgNVBAMTC3Rh
emFtaW8uY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEsThHudoT2g66cWp7
bjwKB1qH2XqJahFvaOi6DTfgXQdIhEfvwGeJedl0g2aXy4T636gy+EmXYbcQmQ34
GI8V2aOCAh4wggIaMA4GA1UdDwEB/wQEAwIHgDAdBgNVHSUEFjAUBggrBgEFBQcD
AQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUoZLherMaghQ2rEd7
4seDiOyVDMMwHwYDVR0jBBgwFoAUkydGmAOpUWiOmNbEQkjbI79YlNIwVQYIKwYB
BQUHAQEESTBHMCEGCCsGAQUFBzABhhVodHRwOi8vZTYuby5sZW5jci5vcmcwIgYI
KwYBBQUHMAKGFmh0dHA6Ly9lNi5pLmxlbmNyLm9yZy8wJwYDVR0RBCAwHoIPY21z
LnRhemFtaW8uY29tggt0YXphbWlvLmNvbTATBgNVHSAEDDAKMAgGBmeBDAECATCC
AQQGCisGAQQB1nkCBAIEgfUEgfIA8AB2AEiw42vapkc0D+VqAvqdMOscUgHLVt0s
gdm7v6s52IRzAAABkLZmCpEAAAQDAEcwRQIgYi8OHRXCFFJ92IvQ6/w8HDu9Pu22
siv3XqhiueKcc3gCIQCQKZMDvghYxSyk6Z3cwrbNXc7/wlZ6Ch3LUnZeC2/V3AB2
AHb/iD8KtvuVUcJhzPWHujS0pM27KdxoQgqf5mdMWjp0AAABkLZmCtwAAAQDAEcw
RQIhAOB3CY0r2u1IaZD32QXApXBiArboQ2wm3oLLWaamiZbhAiA/dDEFx/gutYJQ
MPKaeHjPDb7DZEgk3QLHv5rvLt+9fzAKBggqhkjOPQQDAwNnADBkAjA2a37ki4ZN
Am8aIJwl1c9i9gpT0wylgWM9tc5vHjNd3CeG4DNwiO0UOi+h81Wt6RUCMBy6SCGd
yd/6j1A/V2vXzE7NFUG/sJ413fWL0NhQc6YIRYFpoUACa3jstVeUPWwjIQ==
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
</cap:alert>
60 changes: 30 additions & 30 deletions tests/data/sc.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<?xml version='1.0' encoding='utf-8'?>
<?xml-stylesheet type="text/xsl" href="https://www.meteo.sc/cap-alert-style.xsl"?>
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
<identifier>urn:oid:2.49.0.0.690.0.2024.5.19.13.18.0</identifier>
<sender>[email protected]</sender>
<sent>2024-05-19T17:18:00+04:00</sent>
<status>Actual</status>
<msgType>Alert</msgType>
<scope>Public</scope>
<info>
<language>en</language>
<category>Met</category>
<event>Strong Winds</event>
<urgency>Immediate</urgency>
<severity>Moderate</severity>
<certainty>Observed</certainty>
<audience>General Public</audience>
<effective>2024-05-19T17:30:00+04:00</effective>
<onset>2024-05-19T17:30:00+04:00</onset>
<expires>2024-05-19T23:30:00+04:00</expires>
<senderName>Seychelles Meteorological Authority</senderName>
<headline>Moderate to strong south-easterly winds over Aldabra area</headline>
<description>Moderate to strong south-easterly winds over Aldabra area associated with a severe tropical storm Ialy on 19th May 2024 from 5pm to 11pm</description>
<instruction>Beware of strong south-easterly winds of 40km/hr gusting to 60km/hr causing rough seas. Mariners are advised to take extra precautions when navigating these areas</instruction>
<web>https://www.meteo.sc/alerts/severe-tropical-storm-ialy-is-expected-to-cause-moderate-to-strong-south-easterly-winds-over-aldabra-area-on-19th-may-2024/</web>
<contact>[email protected]</contact>
<area>
<areaDesc>Aldabra area</areaDesc>
<polygon>-9.186965,46.078276 -9.336746,45.936002 -9.57065,45.983427 -9.748309,46.116216 -9.897844,46.249006 -10.000609,46.42922 -9.953902,46.694799 -9.692216,46.770679 -9.467752,46.770679 -9.327387,46.742224 -9.186965,46.694799 -9.140146,46.533555 -9.121416,46.362825 -9.186965,46.078276</polygon>
</area>
</info>
<cap:alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
<cap:identifier>urn:oid:2.49.0.0.690.0.2024.5.19.13.18.0</cap:identifier>
<cap:sender>[email protected]</cap:sender>
<cap:sent>2024-05-19T17:18:00+04:00</cap:sent>
<cap:status>Actual</cap:status>
<cap:msgType>Alert</cap:msgType>
<cap:scope>Public</cap:scope>
<cap:info>
<cap:language>en</cap:language>
<cap:category>Met</cap:category>
<cap:event>Strong Winds</cap:event>
<cap:urgency>Immediate</cap:urgency>
<cap:severity>Moderate</cap:severity>
<cap:certainty>Observed</cap:certainty>
<cap:audience>General Public</cap:audience>
<cap:effective>2024-05-19T17:30:00+04:00</cap:effective>
<cap:onset>2024-05-19T17:30:00+04:00</cap:onset>
<cap:expires>2024-05-19T23:30:00+04:00</cap:expires>
<cap:senderName>Seychelles Meteorological Authority</cap:senderName>
<cap:headline>Moderate to strong south-easterly winds over Aldabra area</cap:headline>
<cap:description>Moderate to strong south-easterly winds over Aldabra area associated with a severe tropical storm Ialy on 19th May 2024 from 5pm to 11pm</cap:description>
<cap:instruction>Beware of strong south-easterly winds of 40km/hr gusting to 60km/hr causing rough seas. Mariners are advised to take extra precautions when navigating these areas</cap:instruction>
<cap:web>https://www.meteo.sc/alerts/severe-tropical-storm-ialy-is-expected-to-cause-moderate-to-strong-south-easterly-winds-over-aldabra-area-on-19th-may-2024/</cap:web>
<cap:contact>[email protected]</cap:contact>
<cap:area>
<cap:areaDesc>Aldabra area</cap:areaDesc>
<cap:polygon>-9.186965,46.078276 -9.336746,45.936002 -9.57065,45.983427 -9.748309,46.116216 -9.897844,46.249006 -10.000609,46.42922 -9.953902,46.694799 -9.692216,46.770679 -9.467752,46.770679 -9.327387,46.742224 -9.186965,46.694799 -9.140146,46.533555 -9.121416,46.362825 -9.186965,46.078276</cap:polygon>
</cap:area>
</cap:info>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
Expand Down Expand Up @@ -68,4 +68,4 @@ BGuNKUUa7qHLR1O6eNnEmrSH24bdzXdacRoCMQCLW6bf0Y1mwuJN+jBCjTbyCe+F
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
</alert>
</cap:alert>
Loading

0 comments on commit 9c5f823

Please sign in to comment.