From a9916c3faa2b8c6fa288599efec65868d050b0ef Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 4 Dec 2019 13:58:38 +0100 Subject: netrc: Add warning when ignoring entries for unencrypted protocols Commit 93f33052de84e9aeaf19c92291d043dad2665bbd restricted auth.conf entries to only apply to https by default, but this was silent - there was no information why http sources with auth.conf entries suddenly started failing. Add such information, and extend test case to cover it. --- test/integration/test-authentication-basic | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/integration/test-authentication-basic b/test/integration/test-authentication-basic index 5aafaade0..784a00c03 100755 --- a/test/integration/test-authentication-basic +++ b/test/integration/test-authentication-basic @@ -96,6 +96,8 @@ password hunter2" if [ "$protocol" = "https" ]; then testauthsuccess "$1" else + testfailure apthelper download-file "${1}/bash" ./downloaded/bash + testsuccessequal "W: ${1}/bash: ${TMPWORKINGDIRECTORY}/rootdir/etc/apt/auth.conf: Credentials for localhost match, but the protocol is not encrypted. Annotate with http:// to use." grep "Credentials.*match" rootdir/tmp/testfailure.output testauthfailure "$1" fi -- cgit v1.2.3