You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
888 B

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable'
  8. setupaptarchive --no-update
  9. changetowebserver
  10. testsuccess apt update
  11. rm -rf rootdir/var/lib/apt/lists
  12. export http_proxy=enrico:password@proxy-cache.localnet:3128
  13. testfailure apt update
  14. unset http_proxy
  15. testsuccess grep 'Unsupported proxy configured' rootdir/tmp/testfailure.output
  16. changetohttpswebserver
  17. testsuccess apt update
  18. rm -rf rootdir/var/lib/apt/lists
  19. export http_proxy=enrico:password@proxy-cache.localnet:3128
  20. testfailure apt update
  21. unset http_proxy
  22. testsuccess grep 'Unsupported proxy configured' rootdir/tmp/testfailure.output
  23. echo 'Acquire::http::Proxy "foo://example.org";
  24. Acquire::https::Proxy "DIRECT";' > rootdir/etc/apt/apt.conf.d/proxy.conf
  25. testsuccess apt update