Purpose:
The dataset feed must provide information about the date, time and timezone at which the feed was last updated in the updated element.
Test method
- check if the updated element exists and contains a correctly formatted datecorrectly formatted date, including time and timezone.
- the date must not be in the future or too far in the past
Reference(s):
Test type: Automated
Notes
[1] Not really practical to check if it is actually the correct date of last updating especially as ATOM spec allows this to be for "significant" updates. [2] What should we consider too far in the past? Before 2000?
The namespace prefixes used as described in README.md.
Abbreviation | XPath expression |
---|---|
updated element | /atom:feed/atom:updated |
correctly formatted date | year-from-dateTime(xs:dateTime(atom:updated)) |