Add smoke test that executes in CI
Opened this issue · 2 comments
JakeYallop commented
Run a smoke test in CI - run the published executable with something like
WaybackDownloader.exe archive.org ./downloads -m exact --limitPages 1 -p SomeString1 -r 1 -v --clearHistory -f statuscode:200 -f mimetype:text/html --from 20230101 --to 2024
Do we want to add a way to limit snapshot page size? The CDX server supports a pageSize
parameter.
JakeYallop commented
The executable supports passing --mockData
since 6c2e257 - the smoke test should use --mockData
as a first test, then try a second time making a real request (to test the actual code path that will normally be used).
JakeYallop commented
Is there a way we fake it so that although our code makes a real request using the real HttpClientHandler
, we still return mock data from somewhere else? Not actually hitting the wayback machine servers for testing would be ideal.