about summary refs log tree commit diff
path: root/nixos/tests
Commit message (Collapse)AuthorAge
* Merge pull request #77303 from tfc/port-elk-initdb-kafkaFlorian Klink2020-01-10
|\ | | | | Port elk initdb kafka
| * nixosTests.initdb: Move code to existing postgres testJacek Galowicz2020-01-09
| |
| * nixosTests.postgres: Refactor codeJacek Galowicz2020-01-09
| |
| * nixosTests.kafka: port to pythonJacek Galowicz2020-01-08
| |
| * nixosTests.elk: port to pythonJacek Galowicz2020-01-08
| |
| * nixosTests.initdb: port to pythonJacek Galowicz2020-01-07
| |
* | Merge pull request #77167 from srhb/ceph-14_2_5Florian Klink2020-01-09
|\ \ | | | | | | ceph: 14.2.4 -> 14.2.5
| * | nixos/tests/ceph: Use 3 osds, the default minimumSarah Brofeldt2020-01-09
| |/
* | nixosTests.home-assistant: port to pythonOleksii Filonenko2020-01-09
| |
* | Merge branch 'master' into ihatemoneyLéo Gaspard2020-01-09
|\ \
| * \ Merge pull request #73938 from worldofpeace/port-gnome3-xorg-testworldofpeace2020-01-08
| |\ \ | | | | | | | | nixosTests.gnome3-xorg: port to python/rewrite
| | * | nixosTests.gnome3-xorg: port to python/rewriteworldofpeace2019-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We've rewritten it use GDM, and we can now autologin to the X11 session because of the accountsservice preStart script for autologin. It should work similar to how the wayland test works, just with a few nuanced differences for xorg.
| | * | nixos/tests/user-account: add static uid for aliceworldofpeace2019-12-21
| | | | | | | | | | | | | | | | | | | | | | | | A lot of tests assume that the alice user will have a uid of 1000. Let's make that a guarantee and be able to reference this value.
| * | | nixos/tests/chromium: Fix nixos-hex.svg hashRickard Nilsson2020-01-07
| | |/ | |/|
| * | nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with ↵Danylo Hlynskyi2020-01-05
| | | | | | | | | | | | | | | | | | | | | | | | reload enabled (#76179) nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with reload enabled Closes https://github.com/NixOS/nixpkgs/issues/73455
| * | Merge Last-Modified fix for nginx (#76697)aszlig2020-01-02
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the patch for nginx to clear the Last-Modified header if a static file is served from the Nix store. So far we only used the ETag from the store path, but if the Last-Modified header is always set to "Thu, 01 Jan 1970 00:00:01 GMT", Firefox and Chrome/Chromium seem to ignore the ETag and simply use the cached content instead of revalidating. Alongside the fix, this also adds a dedicated NixOS VM test, which uses WebDriver and Firefox to check whether the content is actually served from the browser's cache and to have a more real-world test case.
| | * | nginx: Clear Last-Modified if ETag is from storeaszlig2019-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is what I've suspected a while ago[1]: > Heads-up everyone: After testing this in a few production instances, > it seems that some browsers still get cache hits for new store paths > (and changed contents) for some reason. I highly suspect that it might > be due to the last-modified header (as mentioned in [2]). > > Going to test this with last-modified disabled for a little while and > if this is the case I think we should improve that patch by disabling > last-modified if serving from a store path. Much earlier[2] when I reviewed the patch, I wrote this: > Other than that, it looks good to me. > > However, I'm not sure what we should do with Last-Modified header. > From RFC 2616, section 13.3.4: > > - If both an entity tag and a Last-Modified value have been > provided by the origin server, SHOULD use both validators in > cache-conditional requests. This allows both HTTP/1.0 and > HTTP/1.1 caches to respond appropriately. > > I'm a bit nervous about the SHOULD here, as user agents in the wild > could possibly just use Last-Modified and use the cached content > instead. Unfortunately, I didn't pursue this any further back then because @pbogdan noted[3] the following: > Hmm, could they (assuming they are conforming): > > * If an entity tag has been provided by the origin server, MUST > use that entity tag in any cache-conditional request (using If- > Match or If-None-Match). Since running with this patch in some deployments, I found that both Firefox and Chrome/Chromium do NOT re-validate against the ETag if the Last-Modified header is still the same. So I wrote a small NixOS VM test with Geckodriver to have a test case which is closer to the real world and I indeed was able to reproduce this. Whether this is actually a bug in Chrome or Firefox is an entirely different issue and even IF it is the fault of the browsers and it is fixed at some point, we'd still need to handle this for older browser versions. Apart from clearing the header, I also recreated the patch by using a plain "git diff" with a small description on top. This should make it easier for future authors to work on that patch. [1]: https://github.com/NixOS/nixpkgs/pull/48337#issuecomment-495072764 [2]: https://github.com/NixOS/nixpkgs/pull/48337#issuecomment-451644084 [3]: https://github.com/NixOS/nixpkgs/pull/48337#issuecomment-451646135 Signed-off-by: aszlig <aszlig@nix.build>
| * | | Merge pull request #76606 from flokli/mysql-testsFlorian Klink2020-01-02
| |\ \ \ | | | | | | | | | | nixosTests.mysql: add more tests
| | * | | nixosTests.mysql: add additional test{db,user}2Florian Klink2019-12-28
| | | | | | | | | | | | | | | | | | | | | | | | | Test that other users are not able to access the mysql database, and unix socket auth actually works.
| | * | | nixosTests.mysql: add missing () to start_all()Florian Klink2019-12-28
| | | | | | | | | | | | | | | | | | | | | | | | | Because mysql.wait_for_unit() starts the vm as well, we didn't notice that.
| * | | | nixosTests.3proxy: port test to pythonmisuzu2020-01-02
| | | | |
| * | | | Merge pull request #76560 from nh2/kexec-test-pythonFlorian Klink2020-01-01
| |\ \ \ \ | | | | | | | | | | | | nixosTests.kexec: port to python and mark as broken
| | * | | | nixosTests.kexec: port to python.Niklas Hambüchen2019-12-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test did not succeed for me before this commit (the Perl test hung forever), and this translation exhibits the same problem.
| * | | | | netdata: 1.18.1 -> 1.19.0 (#75173)Jörg Thalheim2020-01-01
| |\ \ \ \ \ | | | | | | | | | | | | | | netdata: 1.18.1 -> 1.19.0
| | * | | | | nixosTests.netdata: add a sleep before testingIzorkin2019-12-08
| | | | | | |
| * | | | | | nixosTests.haka: port to python (#76707)Silvan Mosberger2020-01-01
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | nixosTests.haka: port to python
| | * | | | | | nixosTests.haka: port to pythonOleksii Filonenko2019-12-30
| | | | | | | |
| * | | | | | | Merge pull request #76551 from symphorien/nagios2Aaron Andersen2019-12-30
| |\ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | | nagios: various improvements
| | * | | | | | nagios: add nixos testSymphorien Gibol2019-12-30
| | | | | | | |
| * | | | | | | Merge pull request #76151 from Ma27/bump-hydralewo2019-12-29
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | hydra: 2019-08-30 -> 2019-11-13
| | * | | | | | nixos/hydra: also run test with `pkgs.nixFlakes`Maximilian Bosch2019-12-21
| | | | | | | |
| * | | | | | | nixos/nginx: fix testMaximilian Bosch2019-12-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using format-strings, curly brackets need to be escaped using `{{` to avoid errors from python. And apparently, Perl's `==` is used to compare substrings[1] which is why the translation to `assert http_code == "304"` failed as the string contains several headers from curl. [1] Just check `perl <(echo 'die "alarm" if "foo\n304" == 304')`
| * | | | | | | nixos/tests/nginx-sso: add subtests for each assertionMaximilian Bosch2019-12-26
| | | | | | | |
| * | | | | | | nixosTests.nginx*: review fixesRobin Gloster2019-12-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Florian Klink <flokli@flokli.de>
| * | | | | | | nixosTests.nginx*: port to pythonRobin Gloster2019-12-26
| | | | | | | |
| * | | | | | | Merge pull request #73113 from aanderse/httpd-vhostAaron Andersen2019-12-26
| |\ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | | nixos/httpd: support overridable virtual hosts
| | * | | | | | nixos/httpd: limit serving web content to virtual hosts, convert ↵Aaron Andersen2019-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | virtualHosts option type from listOf to attrsOf, add ACME integration
| * | | | | | | Merge pull request #76410 from nh2/mumble-test-pythonMaximilian Bosch2019-12-26
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | nixosTests.mumble: port to python
| | * | | | | | | nixosTests.mumble: port to pythonNiklas Hambüchen2019-12-24
| | | |_|_|_|/ / | | |/| | | | |
| * | | | | | | net-snmp: split outputs (#76155)Jörg Thalheim2019-12-25
| |\ \ \ \ \ \ \ | | |_|/ / / / / | |/| | | | | | net-snmp: split outputs
| | * | | | | | nixos/keepalived: add testJörg Thalheim2019-12-22
| | | |/ / / / | | |/| | | |
| * | | | | | Merge pull request #76425 from r-ryantm/auto-update/slurmmarkuskowa2019-12-24
| |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | | slurm: 19.05.4.1 -> 19.05.5.1
| | * | | | | nixos/slurm: fix perl->python conversion bugMarkus Kowalewski2019-12-24
| | | | | | |
| * | | | | | Merge pull request #75103 from sternenseemann/spacecookieFlorian Klink2019-12-23
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | services/spacecookie: init
| | * | | | | | nixos/spacecookie: add service module and teststernenseemann2019-12-17
| | | | | | | |
| * | | | | | | Merge pull request #75047 from kampka/trilium-serverAaron Andersen2019-12-22
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Add trilium server and module
| | * | | | | | | trilium: Pin platforms to x86_64 linuxChristian Kampka2019-12-22
| | | | | | | | |
| | * | | | | | | trilium-server: Add nginx reverse proxy configuration to moduleChristian Kampka2019-12-19
| | | | | | | | |
| | * | | | | | | trilium-server: Add moduleChristian Kampka2019-12-19
| | | |/ / / / / | | |/| | | | |
| * | | | | | | nixos/tests/hydra: port to pythonMaximilian Bosch2019-12-22
| | |_|/ / / / | |/| | | | |