summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2022-11-21Create test runner for ANSI strippingOskari Pirhonen
2021-06-01Improve hard skip formatxxc3nsoredxx
Convert from array to map, service -> reason. Printing the reason as part of the hard skip message makes the output self-documenting.
2021-06-01Add Vim swap file to .gitignorexxc3nsoredxx
2021-06-01Test for expected vs unexpected 401xxc3nsoredxx
AUTH_SKIPS is a list of services for which an HTTP 401 is an expected response if an auth token isn't given. 401 for a service outside of the list means a changed/broken API. Invert the `if ! diff then fail else success` for readability.
2021-06-01Explicitly test DL_DIR/*.txtxxc3nsoredxx
DL_DIR/* tries to diff error logs with the test data if they exist.
2021-06-01Fix typo in test dataxxc3nsoredxx
2021-06-01Differentiate between skipsxxc3nsoredxx
Slightly different behavior based on if it's a hard skip, auth skip, or post/download failure skip. HARD_SKIPS array to control which services are always skipped. Add total skips and fail logs to summary.
2021-06-01Quote directory variablesxxc3nsoredxx
2021-06-01Create test scriptxxc3nsoredxx
Posts test/test.txt onto any pastebins it can. Downloads the resulting pate into a temp dir as /tmp/wgetpaste_test.XXXXX/<service>.txt. Runs diff(1) (ignoring trailing whitespace) to compare the download with the test data.