summaryrefslogtreecommitdiff
path: root/test/interactive-helper/aptwebserver.cc
AgeCommit message (Collapse)Author
2013-07-08remove merge artifactsMichael Vogt
2013-07-02merged debian/sid branch from git.debian.orgMichael Vogt
2013-06-24simple fork and pidfile aptwebserverDavid Kalnischkies
Forking only after being ready to accept clients avoids running races with the tests which sometimes failed on the first 'apt-get update' (or similar) with the previous background-start and hope for the best… The commit fixes also some oversight output-order changes in regards to Description-md5 and (I-M-S) race conditions in various tests. Git-Dch: Ignore
2013-06-20trigger NODATA error for invalid InRelease filesDavid Kalnischkies
With the selfgrown splitting we got the problem of not recovering from networks which just reply with invalid data like those sending us login pages to authenticate with the network (e.g. hotels) back. The good thing about the InRelease file is that we know that it must be clearsigned (a Release file might or might not have a detached sig) so if we get a file but are unable to split it something is seriously wrong, so there is not much point in trying further. The Acquire system already looks out for a NODATA error from gpgv, so this adds a new error message sent to the acquire system in case the splitting we do now ourselves failed including this magic word. Closes: #712486
2013-06-20simple URI rewrite rules config for webserverDavid Kalnischkies
we have a test which required traditionally lighttpd to be executed as it requires a webserver supporting some kind of URI rewriting. Now with some lines of code our own webserver can do this and the testcase can be enabled by default. This test hinted at the bug fixed in the previous commit, so having more tests which can easily be run is a good thing. Git-Dch: Ignore
2013-06-20add directory listing to the webserverDavid Kalnischkies
Git-Dch: Ignore
2013-06-20add a simple webserver for our testcasesDavid Kalnischkies
APT needs to acquire data in a secure fashion over an inherently unsecure way, known as the internet, while communicating with unreliable partners, known as webservers and proxies. For your integration tests we so far relied on 'normal' webservers, but all of them have certain quirks and none is able to provide us with all quirks which can be observed in the wild and we therefore have to test with, so this webserver isn't trying to be fast, secure or feature complete, but to provide all the quirks we need in a consistent way. This webserver also makes the APT project self-contained, as it is now able to generate, serve as well as acquire package indexes. ;) Git-Dch: Ignore
2012-07-12add (partial) partial request support for the webserverDavid Kalnischkies
2012-07-11add option to send Content-Type based on file extensionDavid Kalnischkies
2012-07-11make the server a little more robust against write errors (e.g. broken pipe)David Kalnischkies
2012-07-11rework parsing of the first request-line to be more robustDavid Kalnischkies
2012-07-11add simple url rewriting to the webserverDavid Kalnischkies
2012-07-11ensure that directories are accessed with a slash at the end of the urlDavid Kalnischkies
2012-07-10http get requests need to be dequotedDavid Kalnischkies
2012-07-10include our usual config.h in the webserverDavid Kalnischkies
2012-07-10implement directory listing in your webserverDavid Kalnischkies
2012-07-10reformat the aptwebserver code to look more like the rest of APTDavid Kalnischkies
2012-07-10cleanup, thanks to donkult for his feedbackMichael Vogt
2012-07-10always send content-length via the new addDataHeaders() to ensure w3m/curl ↵Michael Vogt
are happy too for 404 pages and to comply with the http 1.1 spec
2012-07-10add failing regression test for bug #346386Michael Vogt
2012-07-10add commandline, add configurable port, add --simulate-paywall to simulate a ↵Michael Vogt
broken webserver that intercepts connections and returns nonsese
2012-07-09start implementing an extremely simple webserver for testing APTDavid Kalnischkies