ledger / ledger.github.io

The source code behind https://ledger-cli.org
9 stars 19 forks source link

Add subdomain redirect test script #66

Closed afh closed 1 year ago

afh commented 1 year ago

A very simple test script that can be run occasionally to ensure that the subdomain redirects are still as expected.

The scripts reads the test specifications and uses curl to issue a HTTP HEAD request for each test and compare the returned HTTP status code and redirect URL with the expected HTTP status code and redirect URL as specified in the test.

afh commented 1 year ago

Thanks for the quick review, @jwiegley, much appreciated!