test-bug-717891-abolute-uris-for-proxies 889 B

1234567891011121314151617181920212223242526272829
  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
  9. changetowebserver --request-absolute='uri'
  10. msgtest 'Check that absolute paths are' 'not accepted'
  11. testfailure --nomsg aptget update --allow-insecure-repositories
  12. echo "Acquire::http::Proxy \"http://localhost:${APTHTTPPORT}\";" > rootdir/etc/apt/apt.conf.d/99proxy
  13. msgtest 'Check that requests to proxies are' 'absolute uris'
  14. testsuccess --nomsg aptget update
  15. testsuccessequal 'Reading package lists...
  16. Building dependency tree...
  17. The following NEW packages will be installed:
  18. unrelated
  19. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  20. Inst unrelated (0.5~squeeze1 unstable [all])
  21. Conf unrelated (0.5~squeeze1 unstable [all])' aptget install unrelated -s