|
@@ -66,8 +66,7 @@ TESTFILE='aptarchive/testfile'
|
|
|
cp -a ${TESTDIR}/framework $TESTFILE
|
|
cp -a ${TESTDIR}/framework $TESTFILE
|
|
|
|
|
|
|
|
testrun() {
|
|
testrun() {
|
|
|
- downloadfile "$1/_config/set/aptwebserver::support::range/true" '/dev/null' >/dev/null
|
|
|
|
|
- testwebserverlaststatuscode '200'
|
|
|
|
|
|
|
+ webserverconfig 'aptwebserver::support::range' 'true'
|
|
|
|
|
|
|
|
copysource $TESTFILE 0 ./testfile
|
|
copysource $TESTFILE 0 ./testfile
|
|
|
testdownloadfile 'no data' "${1}/testfile" './testfile' '='
|
|
testdownloadfile 'no data' "${1}/testfile" './testfile' '='
|
|
@@ -94,8 +93,7 @@ testrun() {
|
|
|
testdownloadfile 'old data' "${1}/testfile" './testfile' '='
|
|
testdownloadfile 'old data' "${1}/testfile" './testfile' '='
|
|
|
testwebserverlaststatuscode '200'
|
|
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
|
|
copysource $TESTFILE 20 ./testfile
|
|
|
testdownloadfile 'no server support' "${1}/testfile" './testfile' '='
|
|
testdownloadfile 'no server support' "${1}/testfile" './testfile' '='
|