summary refs log tree commit diff
path: root/tests/upstream.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-07-13 00:50:05 +0200
committerLudovic Courtès <ludo@gnu.org>2016-07-13 00:50:05 +0200
commitbfcb3d767bbc24dc6c6d834619073351fbcc61b5 (patch)
treeadc5aa4ac1101c31a976df917ed6478818d54e04 /tests/upstream.scm
parentcd4c41fdcf469524161fbbec58c2756f36bcef56 (diff)
downloadguix-bfcb3d767bbc24dc6c6d834619073351fbcc61b5.tar.gz
lint: 'validate-uri' reports suspiciously small 200 responses.
* guix/scripts/lint.scm (validate-uri): Upon 200 http-response, check
the 'response-content-length' and emit a warning when it is <= 1000.
* tests/lint.scm (call-with-http-server): Add 'data' parameter.
(with-http-server): Likewise.
(%long-string): New variable.
("home-page: 200"): Pass %LONG-STRING to 'with-http-server'.
("home-page: 404", "source: 200", "source: 404"): Likewise.
("home-page: 200 but short length"): New test.
("source: 200 but short length"): New test.
Diffstat (limited to 'tests/upstream.scm')
0 files changed, 0 insertions, 0 deletions