diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2013-10-23 16:32:48 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2013-11-30 12:38:26 +0100 |
commit | f2c0ec8bdb00b44de240190dae39fa255b6c85de (patch) | |
tree | 591dfd0e481786b9a23eca954d75e768011824a0 /test/integration/test-partial-file-support | |
parent | 8523b22fbcc6ca2ad004a9133559212908b768ed (diff) |
tests: add a webserverconfig method to abstract config
The URI to use to set a config option is a bit arcane to write/remember
and checking if the setting was successful doubly so.
Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-partial-file-support')
-rwxr-xr-x | test/integration/test-partial-file-support | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/integration/test-partial-file-support b/test/integration/test-partial-file-support index b176cc15e..382789e68 100755 --- a/test/integration/test-partial-file-support +++ b/test/integration/test-partial-file-support @@ -66,8 +66,7 @@ TESTFILE='aptarchive/testfile' cp -a ${TESTDIR}/framework $TESTFILE testrun() { - downloadfile "$1/_config/set/aptwebserver::support::range/true" '/dev/null' >/dev/null - testwebserverlaststatuscode '200' + webserverconfig 'aptwebserver::support::range' 'true' copysource $TESTFILE 0 ./testfile testdownloadfile 'no data' "${1}/testfile" './testfile' '=' @@ -94,8 +93,7 @@ testrun() { testdownloadfile 'old data' "${1}/testfile" './testfile' '=' testwebserverlaststatuscode '200' - downloadfile "$1/_config/set/aptwebserver::support::range/false" '/dev/null' >/dev/null - testwebserverlaststatuscode '200' + webserverconfig 'aptwebserver::support::range' 'false' copysource $TESTFILE 20 ./testfile testdownloadfile 'no server support' "${1}/testfile" './testfile' '=' |