tests: Add simple test for summary file caching
authorPhilip Withnall <pwithnall@endlessos.org>
Fri, 9 Oct 2020 17:34:55 +0000 (18:34 +0100)
committerPhilip Withnall <pwithnall@endlessos.org>
Thu, 22 Oct 2020 20:03:34 +0000 (21:03 +0100)
commita522bf76283eeb88fcab99a5ee9e54aa0e13f041
tree097037ad339ecf248209da741f0ff2083bd239af
parent0e3add8d4057b920422bba6405de208cdead00ec
tests: Add simple test for summary file caching

This test would have actually passed before the summary file caching
changes (in the previous few commits) were added, as the `summary.sig`
essentially acted as the ETag for the summary file, and itself wasn’t
updated on disk if it didn’t change when querying the server.

Actually testing that the HTTP caching headers are working to reduce
HTTP traffic would require test hooks into the pull code or the
trivial-httpd server, neither of which I have the time to add at the
moment.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Makefile-tests.am
tests/test-pull-summary-caching.sh [new file with mode: 0755]