ukwa / ukwa-site

Using static site generation for parts of the our site.
Apache License 2.0
0 stars 4 forks source link

Extend test suite to cover know aliases, including targets pages #3

Open anjackson opened 5 years ago

anjackson commented 5 years ago

Would be good to have some basic tests that check the URL space is being maintained. e.g. http://www.webarchive.org.uk/ukwa/target/26640414/source/subject and indeed http://www.webarchive.org.uk/ukwa/target/26640414/*anything* should resolve and end up at http://www.webarchive.org.uk/ukwa/target/26640414/.

Does not have to be absolutely all-encompassing - just sample the different pages/translations/etc. well enough to cover one or two of each 'type' of page.

https://www.webarchive.org.uk/ukwa/target/119394/source/subject ->  (From https://www.google.com/search?q=ukwa+and+%22Arts+and+Humanities+Research+Council%22)
https://www.webarchive.org.uk/ukwa/target/26640414/source/subject 
https://www.webarchive.org.uk/ukwa/
https://www.webarchive.org.uk/
https://www.webarchive.org.uk/en/ukwa/index ???
https://www.webarchive.org.uk/cy/ukwa/ -> https://www.webarchive.org.uk/ukwa/cy/ ???

and so on.

Probably simplest to implement in Robot Framework as we did for the pywb integration tests: https://github.com/ukwa/ukwa-pywb/tree/master/integration-test

anjackson commented 2 years ago

Current implementation of the tests is actually in https://github.com/ukwa/docker-robot-framework