summaryrefslogtreecommitdiff
path: root/test/interactive-helper
Commit message (Collapse)AuthorAgeFilesLines
* report https download start only if we really get itDavid Kalnischkies2014-02-141-4/+16
| | | | | | Reporting it via progress means that e.g. a redirect will trigger it, too, so you get a Get & Hit while http only reports a Hit as it should be.
* correct some style/performance/warnings from cppcheckDavid Kalnischkies2014-01-161-5/+4
| | | | | | | | The most "visible" change is from utime to utimensat/futimens as the first one isn't part of POSIX anymore. Reported-By: cppcheck Git-Dch: Ignore
* tests: add a webserverconfig method to abstract configDavid Kalnischkies2013-11-301-1/+1
| | | | | | | The URI to use to set a config option is a bit arcane to write/remember and checking if the setting was successful doubly so. Git-Dch: Ignore
* webserver: use pthreads to handle multiple clientsDavid Kalnischkies2013-11-302-163/+201
| | | | | | | | | | | | Clients like browsers prefer to open many connections and keep them open for a while, so that pages with lot of subelements would take a while to load (if at all), by using threads as all servers do some way or another we can resolve this. libapt is not intended to be pthread-safe and stuff like the storage of the last return code doesn't make too much sense if multiple clients interact with us, but it is good enough for now and an other interesting (mis)use of libapt in general. Git-Dch: Ignore
* webserver: strip parameters from filenameDavid Kalnischkies2013-11-301-1/+9
| | | | | | | Again, not (currently) used by the tests itself, but in interactive usage of the webserver itself. Git-Dch: Ignore
* webserver: add directoryIndex support defaulting to index.htmlDavid Kalnischkies2013-11-301-3/+15
| | | | Git-Dch: Ignore
* webserver: implement ~user access to ~user/public_html/David Kalnischkies2013-11-301-1/+25
| | | | | | | pretty much useless for the testcases, but handy to test the webserver itself in 'real world' environments Git-Dch: Ignore
* webserver: spurious newline after data confuses curlDavid Kalnischkies2013-11-301-9/+9
| | | | | | | | Webserver wrongly sends an additional newline after the data which causes curl to believe that the next request on this socket has no header data and so includes all headers in the data output. Git-Dch: Ignore
* add Range and If-Range support in the webserverDavid Kalnischkies2013-09-301-1/+63
| | | | Git-Dch: Ignore
* access _config via GET requests in the webserverDavid Kalnischkies2013-09-301-3/+71
| | | | Git-Dch: Ignore
* request absolute URIs from proxies again (0.9.9.3 regession)David Kalnischkies2013-07-261-8/+28
| | | | | | | | Commit 2b9c9b7f28b18f6ae3e422020e8934872b06c9f3 not only removes keep-alive, but also changes the request URI send to proxies which are required to be absolute URIs rather than the usual absolute paths. Closes: 717891
* simple fork and pidfile aptwebserverDavid Kalnischkies2013-06-241-0/+37
| | | | | | | | | | | 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
* trigger NODATA error for invalid InRelease filesDavid Kalnischkies2013-06-201-0/+26
| | | | | | | | | | | | | | | | | 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
* simple URI rewrite rules config for webserverDavid Kalnischkies2013-06-201-0/+16
| | | | | | | | | | | 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
* add directory listing to the webserverDavid Kalnischkies2013-06-201-0/+121
| | | | Git-Dch: Ignore
* add a simple webserver for our testcasesDavid Kalnischkies2013-06-202-0/+350
| | | | | | | | | | | | | | | | | | 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
* stop building l10n if strings are unchangedDavid Kalnischkies2013-06-091-0/+1
| | | | | | The buildsystem tried to build l10n for test applications which never produced the output it expected causing it to try building it all the time.
* * apt-inst/database.{cc,h}, apt-inst/deb/dpkgdb.{cc,h}:David Kalnischkies2012-03-222-112/+4
| | | | | | | - drop instead of fix as it is only needed if you want to reimplement dpkg and comes straight from the beginning of last decade (Closes: #663372) * apt-inst/deb/debfile.cc: - {Extract,Merge}Control() is another instance of "lets reimplement dpkg" so shot of this code before someone ends up using this…
* for these helpers we don't need too much checks,David Kalnischkies2012-03-202-3/+3
| | | | but no warnings from gcc helps
* use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-193-0/+4
|
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-1/+3
|
* fix 'comparison between signed and unsigned integer expressions' warningDavid Kalnischkies2011-08-171-2/+1
| | | | in the udevcdrom testcase
* move the networkless test to the interactive helpers as it needsDavid Kalnischkies2011-08-173-0/+55
| | | | | root rights for operation (ifup/down, iptables) so it is better run under supervision
* move the interactive helper to a subdirectory of testDavid Kalnischkies2011-08-177-0/+381