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.
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 HTTPHEAD
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.