summaryrefslogtreecommitdiff
path: root/test/integration
Commit message (Collapse)AuthorAgeFilesLines
* dispose http(s) 416 error page as non-contentDavid Kalnischkies2014-12-223-20/+72
| | | | | | | | | | | | | | | | | | | | | | | Real webservers (like apache) actually send an error page with a 416 response, but our client didn't expect it leaving the page on the socket to be parsed as response for the next request (http) or as file content (https), which isn't what we want at all… Symptom is a "Bad header line" as html usually doesn't parse that well to an http-header. This manifests itself e.g. if we have a complete file (or larger) in partial/ which isn't discarded by If-Range as the server doesn't support it (or it is just newer, think: mirror rotation). It is a sort-of regression of 78c72d0ce22e00b194251445aae306df357d5c1a, which removed the filesize - 1 trick, but this had its own problems… To properly test this our webserver gains the ability to reply with transfer-encoding: chunked as most real webservers will use it to send the dynamically generated error pages. (The tests and their binary helpers had to be slightly modified to apply, but the patch to fix the issue itself is unchanged.) Closes: 768797
* support long keyids in "apt-key del" instead of ignoring themJames McCoy2014-11-281-0/+6
| | | | | | | | | | | apt-key given a long keyid reports just "OK" all the time, but doesn't delete the mentioned key as it doesn't find the key. Note: In debian/experimental this was closed with 29f1b977100aeb6d6ebd38923eeb7a623e264ffe which just added the testcase as the rewrite of apt-key had fixed this as well. Closes: 754436
* fix PTY interaction on linux and kfreebsdDavid Kalnischkies2014-11-281-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | | We run dpkg on its own pty, so we can log its output and have our own output around it (like the progress bar), while also allowing debconf and configfile prompts to happen. In commit 223ae57d468fdcac451209a095047a07a5698212 we changed to constantly reopening the slave for kfreebsd. This has the sideeffect though that in some cases slave and master will lose their connection on linux, so that no output is passed along anymore. We fix this by having always an fd referencing the slave open (linux), but we don't use it (kfreebsd). Failing to get our PTY up and running has many (bad) consequences including (not limited to, nor all at ones or in any case) garbled ouput, no output, no logging, a (partial) mixture of the previous items, … This commit is therefore also reshuffling quiet a bit of the creation code to get especially the output part up and running on linux and the logging for kfreebsd. Note that the testcase tries to cover some cases, but this is an interactivity issue so only interactive usage can really be a good test. Closes: 765687
* close leaking slave fd after setting up pty magicDavid Kalnischkies2014-11-283-59/+105
| | | | | | | The fd moves out of scope here anyway, so we should close it properly instead of leaking it which will tickle down to dpkg maintainer scripts. Closes: 767774
* reenable support for -s (and co) in apt-get sourceDavid Kalnischkies2014-11-101-0/+4
| | | | | | | | The conversion to accept only relevant options for commands has forgotten another one, so adding it again even through the usecase might very well be equally good served by --print-uris. Closes: 742578
* use 'best' hash for source authenticationDavid Kalnischkies2014-11-101-0/+260
| | | | | | | | | | | | | | | | Collect all hashes we can get from the source record and put them into a HashStringList so that 'apt-get source' can use it instead of using always the MD5sum. We therefore also deprecate the MD5 struct member in favor of the list. While at it, the parsing of the Files is enhanced so that records which miss "Files" (aka MD5 checksums) are still searched for other checksums as they include just as much data, just not with a nice and catchy name. This is a cherry-pick of 1262d35 with some dirty tricks to preserve ABI. LP: 1098738
* don't cleanup cdrom files in apt-get updateDavid Kalnischkies2014-10-151-6/+43
| | | | | | | | | | Regression from merging 801745284905e7962aa77a9f37a6b4e7fcdc19d0 and b0f4b486e6850c5f98520ccf19da71d0ed748ae4. While fine by itself, merged the part fixing the filename is skipped if a cdrom source is encountered, so that our list-cleanup removes what seems to be orphaned files. Closes: 765458
* implement the updated build profile specjosch2014-10-061-43/+43
|
* rewrite compressed indexes test to check with all compressorsDavid Kalnischkies2014-09-253-122/+135
| | | | Git-Dch: Ignore
* generalize Acquire::GzipIndexMichael Vogt2014-09-212-12/+10
|
* relax grep to support newer curl output formatDavid Kalnischkies2014-09-201-1/+6
| | | | Git-Dch: Ignore
* Fix regression when copy: is used for a relative pathMichael Vogt2014-09-191-4/+6
| | | | | | | | | When we do a ReverifyAfterIMS() we use the copy: method to verify the hashes again. If the user uses -o Dir=./something/relative this fails because we use the URI class in copy.cc that strips away the leading relative part. By not using URI this is fixed. Closes: #762160
* test/integration/test-apt-update-file: improve testMichael Vogt2014-09-192-0/+17
|
* improve test for commit daff4aMichael Vogt2014-09-171-0/+7
|
* Fix regression for file:/// uris from CVE-2014-0487Michael Vogt2014-09-171-0/+27
| | | | | | | | Do not run ReverifyAfterIMS() for local file URIs as this will causes apt to mess around in the file:/// uri space. This is wrong in itself, but it will also cause a incorrect verification failure when the archive and the lists directory are on different partitions as rename().
* SECURITY UPDATE for CVE-2014-{0488,0487,0489}Michael Vogt2014-09-163-3/+105
| | | | | | incorrect invalidating of unauthenticated data (CVE-2014-0488) incorect verification of 304 reply (CVE-2014-0487) incorrect verification of Acquire::Gzip indexes (CVE-2014-0489)
* don't call pager in non-terminals for changelogDavid Kalnischkies2014-09-091-3/+2
| | | | | | | | | | | | | | | Most pagers are nice and default to running non-interactively if they aren't connected to a terminal and we relied on that. On ci.debian.net the configured pager is printing a header out of nowhere though, so if we are printing to a non-terminal we call "cat" instead. In the rework we also "remove" the dependency on sensible-utils in sofar as we call some alternatives if calling the utils fail. This seems to be the last problem preventing a "PASS" status on ci.debian.net, so we close the associated bugreport. Closes: 755040
* fix progress report for upgrade and reinstallDavid Kalnischkies2014-09-081-0/+16
| | | | | | | | | | | APT treats upgrades like installs and dpkg is very similar in this, but prints still a slightly different processing message indicating that it is really an upgrade which we hadn't parsed so far, but this wasn't really visible as we quickly moved on to a 'known' state. More problematic was the reinstall case as apt hadn't recognized this for the package name detection, so that reinstalls had no progress since we introduced MultiArch.
* fix and non-silent fail dpkg-overwrite error testDavid Kalnischkies2014-09-071-1/+6
| | | | | | | | Commit cbcdd3ee9d86379d1b3a44e41ae8b17dc23111d0 removes the space at the end of the debfile name dpkg send to us and we previously had included in the pmerror message we printed on the statusfd. Git-Dch: Ignore
* detect terminal output with 'test -t' in testsDavid Kalnischkies2014-09-072-2/+2
| | | | | | | | Instead of trying to inspect /proc and the fds inside we use "test -t 1" instead as this is available and working on kfreebsd as well – not that something breaks if we wouldn't, but we like color. Git-Dch: Ignore
* do use an 'unknown' arch-specification in testDavid Kalnischkies2014-09-071-4/+4
| | | | | | | | Using 'kfreebsd' here makes the test fail on a kfreebsd system (obviously), so we just use something totally madeup in the hope that this is less like to conflict in the future. Git-Dch: Ignore
* implement --full in apt searchDavid Kalnischkies2014-09-071-1/+15
|
* support regular expressions in 'apt search'David Kalnischkies2014-09-072-1/+22
| | | | | apt-cache search supported this since ever and in the code for apt was a fixme indicating this should be added here as well, so here we go.
* Fix incorrect upgradable listing in "apt list" (thanks to Michael Musenbrock)Michael Vogt2014-09-051-0/+34
| | | | | | | | | | The "apt list" command was using only the pkgDepCache but not the pkgPolicy to figure out if a package is upgradable. This lead to incorrect display of upgradable package when the user used the policy to pin-down packages. Thanks to Michael Musenbrock for the initial patch. Closes: #753297
* test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use ↵Michael Vogt2014-09-031-7/+5
| | | | downloadfile()
* Add testcase for apt list --all-versionsMichael Vogt2014-09-021-1/+3
| | | | Dch-Ignore: true
* Avoid yielding blank lines with APT::Cmd::use-format=trueAndreas Oberritter2014-09-021-1/+4
|
* Make Proxy-Auto-Detect check for each hostMichael Vogt2014-09-021-22/+58
| | | | | | | | | When doing Acquire::http{,s}::Proxy-Auto-Detect, run the auto-detect command for each host instead of only once. This should make using "proxy" from libproxy-tools feasible which can then be used for PAC style or other proxy configurations. Closes: #759264
* support versioned provides as implemented by dpkgDavid Kalnischkies2014-08-261-0/+137
| | | | | | | | | | | | | | | | | APT supported versioned provides for a long while in an attempt to get it working with rpm. While this support is old, we can be relatively sure that it works as versioned provides are used internally to make Multi-Arch:foreign work. Previous versions of apt will print a warning indicating that the versioned provides is ignored, so that something which "Provides: foo (= 2)" doesn't provide anything. Note that dpkg does allow only a equals-relation in the provides line as anything else is deemed too complex. apt doesn't support anything else either and such a support would require potentially big changes. Closes: 758153
* Fix SmartConfigure to ignore ordering of packages that are already validMichael Vogt2014-07-293-0/+2398
| | | | | | | | | | With the change of SmartConfigure() in git commit 42d51f the ordering code was trying to re-order dependencies, even when at this point in time this was not needed. Now it will first check all targets of the given dependency and only if there is not a good one try to reorder and unpack/configure as needed. Closes: LP: #1347721
* use printf instead of echo in testing frameworkMichele Orrù2014-07-072-31/+31
| | | | | | | | | The behaviour of echo "\tA\t" differs between dash/zsh which interprets the \t as tab and bash which prints it literally. Similar things happen for other escape sequences – without the -e flag. Switching to printf makes this more painless^Wportable, so that the tests are also working correctly with bash as sh. (commit message by committer, patch otherwise unmodified)
* properly handle (currently unused) dpkg pass-throughDavid Kalnischkies2014-07-071-13/+16
| | | | Git-Dch: ignore
* use exit instead of incorrect return in test wrapperMichele Orrù2014-07-071-4/+5
| | | | | | bash as sh doesn't like it, too. Git-Dch: Ignore
* do not call resolver twice on (dist-)upgradeDavid Kalnischkies2014-06-181-0/+6
|
* Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2014-06-181-1/+1
|\
| * test/integration/test-essential-force-loopbreak: fix on non-amd64 systemsMichael Vogt2014-06-121-1/+1
| |
* | fix test-apt-ftparchive-cachedb-lp1274466 and apt-internal-solver testsMichael Vogt2014-06-112-2/+4
| |
* | fix autopkgtest testsMichael Vogt2014-06-112-1/+3
|/
* fix test/integration/test-apt-ftparchive-cachedb-lp1274466 in travisMichael Vogt2014-06-101-4/+4
|
* Merge remote-tracking branch 'mvo/feature/apt-update-info' into debian/sidMichael Vogt2014-06-101-0/+17
|\
| * show upgradable packages after apt updateMichael Vogt2014-05-221-0/+17
| | | | | | | | Closes: 748389
* | Merge remote-tracking branch ↵Michael Vogt2014-06-101-0/+31
|\ \ | | | | | | | | | 'mvo/bugfix/apt-get-source-unauthenticated-warning' into debian/sid
| * | Show unauthenticated warning for source packages as wellMichael Vogt2014-06-021-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will show the same unauthenticated warning for source packages as for binary packages and will not download a source package if it is unauthenticated. This can be overridden with --allow-unauthenticated Closes: #749795
* | | Merge remote-tracking branch 'mvo/bugfix/lp1274466-cache' into debian/sidMichael Vogt2014-06-103-0/+51
|\ \ \
| * | | Add compat mode for old (32bit FileSize) CacheDB (LP: #1274466)Michael Vogt2014-06-043-0/+51
| | | |
* | | | support Acquire::GzipIndexes in dumpavailDavid Kalnischkies2014-06-101-0/+2
| | | | | | | | | | | | | | | | Closes: 742835
* | | | do not revert candidate for protected packagesDavid Kalnischkies2014-06-071-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 21b3eac8 I promoted the check for installable dependencies to a pre-install check, which also reverts to a known good candidate (the installed version) if it fails. This revert was done even for user requested candidate switches which disabled our Broken detection so that install requests which are impossible to satisfy do not fail anymore, but print an (incomplete) solution proposal and then exit successfully. Closes: 745046
* | | | use 'native' instead of 'amd64' as pkg archDavid Kalnischkies2014-05-301-9/+9
| | | | | | | | | | | | | | | | Git-Dch: Ignore
* | | | show current/total testcase statistic also in concise modeDavid Kalnischkies2014-05-301-1/+1
| | | | | | | | | | | | | | | | Git-Dch: Ignore
* | | | support parsing EDSP requests Architecture{,s} stanzaDavid Kalnischkies2014-05-302-0/+71
| |/ / |/| | | | | | | | | | | | | | Adds also a small testcase for EDSP Git-Dch: Ignore