google / cap-library

Common Alerting Protocol Library
Apache License 2.0
80 stars 30 forks source link

Throw warnings/recommendations for test data #28

Open sschiavoni opened 9 years ago

sschiavoni commented 9 years ago

Original issue 29 created by yuch@google.com on 2012-05-08T20:53:15.000Z:

Right now the validator doesn't check for test content in any values. (it checks for "unknown")

Ideally - I'd like to see a warning in the "recommendation" section if we see any of the words test/practice/demo/default in any of the tags <event>/<headline>/<description>/<instruction>

Maybe we don't have to check for "practice".

Here's one example set of tags we got from a cap event:

<event>Practice Demo</event> <headline>Practice Demo</headline> <description>This is Pierce County Emergency Management conducting a test of the Emergency Alert System. In the event of an emergency, this system would bring you important information. The following tones will conclude this test.”</description> <instruction>This is Pierce County Emergency Management conducting a test of the Emergency Alert System. In the event of an emergency, this system would bring you important information. The following tones will conclude this test.”</instruction>

What steps will reproduce the problem? 1. 2. 3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

sschiavoni commented 9 years ago

Comment #1 originally posted by yuch@google.com on 2012-08-28T06:21:50.000Z:

<empty>

sschiavoni commented 9 years ago

Comment #2 originally posted by yuch@google.com on 2012-08-28T06:24:25.000Z:

Note - this should only be for events with Actual

sschiavoni commented 9 years ago

Comment #3 originally posted by yuch@google.com on 2012-08-28T21:14:33.000Z:

Also check for Administrative Event SAME EAS codes: http://nws.noaa.gov/os/eas_codes.shtml