]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-authentication-basic
handle servers closing encoded connections correctly
[apt.git] / test / integration / test-authentication-basic
index 4b0ead54a72bfc1824403eef512ab35354d00132..3a6897b5927b1e63b349176b265d2e19d4615c2f 100755 (executable)
@@ -18,13 +18,13 @@ testauthfailure() {
        testfailure apthelper download-file "${1}/bash" ./downloaded/bash
        # crappy test, but http and https output are wastely different…
        testsuccess grep 401 rootdir/tmp/testfailure.output
-       testsuccess test ! -s ./downloaded/bash
+       testfailure test -s ./downloaded/bash
 }
 
 testauthsuccess() {
        testsuccess apthelper download-file "${1}/bash" ./downloaded/bash
        testfileequal ./downloaded/bash "$(cat aptarchive/bash)"
-       testfilestats ./downloaded/bash '%U:%G:%a' '=' "${USER}:${USER}:644"
+       testfilestats ./downloaded/bash '%U:%G:%a' '=' "${TEST_DEFAULT_USER}:${TEST_DEFAULT_GROUP}:644"
        rm -f ./downloaded/bash
 
        # lets see if got/retains acceptable permissions
@@ -32,13 +32,13 @@ testauthsuccess() {
                if [ "$(id -u)" = '0' ]; then
                        testfilestats "$AUTHCONF" '%U:%G:%a' '=' "_apt:root:600"
                else
-                       testfilestats "$AUTHCONF" '%U:%G:%a' '=' "${USER}:${USER}:600"
+                       testfilestats "$AUTHCONF" '%U:%G:%a' '=' "${TEST_DEFAULT_USER}:${TEST_DEFAULT_GROUP}:600"
                fi
        fi
 
        rm -rf rootdir/var/lib/apt/lists
        testsuccess aptget update
-       testequal 'Reading package lists...
+       testsuccessequal 'Reading package lists...
 Building dependency tree...
 The following NEW packages will be installed:
   foo