summary refs log tree commit diff
path: root/nixos/tests
Commit message (Collapse)AuthorAge
* nixos/hardened test: add failing test-case for deferred mountsJoachim Fasting2017-09-22
|
* nixos/tests/virtualbox: Fix netcat invocationaszlig2017-09-21
| | | | | | | | | | | | | | | | | | | | | | | | This is a backwards-incompatibility in netcat-openbsd introduced due to bumping the netcat version to 1.130 in a72ba661acf54d1beb2b4e306acba7d6f45621c4. Version 1.130 no longer exits on EOF but now needs to be passed the -N flag in order to exit on EOF. The upstream change reads[1] like this: Don't shutdown nc(1)'s network socket when stdin closes. Matches *Hobbit*'s original netcat and GNU netcat; revert to old behaviour with the new -N flag if needed. After much discussion with otto deraadt tedu and Martin Pelikan. ok deraadt@ Here is the diff of this change: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/netcat.c.diff?r1=1.110&r2=1.111&f=h [1]: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/netcat.c?rev=1.111&content-type=text/x-cvsweb-markup Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Merge pull request #29521 from aneeshusa/ease-radicale-upgradeFranz Pletz2017-09-18
|\ | | | | Ease radicale upgrade
| * radicale: Test migration functionalityAneesh Agrawal2017-09-18
| | | | | | | | This also provides an example of how to migrate.
* | tests: add initrd-network-ssh testWilliButz2017-09-18
| | | | | | | | | | | | | | starts two VMs: - one with dropbear listening from initrd, waiting for a file - another connecting via ssh, creating the file
* | nixos/tests: add grafana test (#29531)WilliButz2017-09-18
| |
* | nixos/networking: network is online if default gw setFranz Pletz2017-09-18
| | | | | | | | | | | | | | | | | | | | Previously services depending on network-online.target would wait until dhcpcd times out if it was enabled and a static network address configuration was used. Setting the default gateway statically is enough for the networking to be considered online. This also adjusts the relevant networking tests to wait for network-online.target instead of just network.target.
* | tests: ipfs: enable autoMount testsMaximilian Güntner2017-09-18
|/
* nixos/dovecot: Fix createMailUser implementationaszlig2017-09-17
| | | | | | | | | | | | | | | | | | This option got introduced in 7904499542814b8a4d04fce8dc7ca8c383c083e7 and it didn't check whether mailUser and mailGroup are null, which they are by default. Now we're only creating the user if createMailUser is set in conjunction with mailUser and the group if mailGroup is set as well. I've added a NixOS VM test so that we can verify whether dovecot works without any additional options set, so it serves as a regression test for issue #29466 and other issues that might come up with future changes to the Dovecot service. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Fixes: #29466 Cc: @qknight, @abbradar, @ixmatus, @siddharthist
* Merge pull request #29462 from joachifm/trivial-misc-testsJoachim F2017-09-16
|\ | | | | nixos/tests: move kernel-params & sysctl test to misc
| * nixos/tests: move kernel-params test to miscJoachim Fasting2017-09-16
| |
| * nixos/tests: move sysctl test to miscJoachim Fasting2017-09-16
| |
* | nixos/tests: expand hardened testsJoachim Fasting2017-09-16
|/
* nixos/tests/acme: Use overridePythonAttrsaszlig2017-09-14
| | | | | | | | | | | | | | Quoting from @FRidh: Note overridePythonAttrs exists since 17.09. It overrides the call to buildPythonPackage. While it's not strictly necessary to do this, because postPatch ends up in drvAttrs anyway, it's probably better to use overridePythonAttrs so we don't run into problems when the underlying implementation of buildPythonPackage changes. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests/acme: Patch certifi with cacertaszlig2017-09-13
| | | | | | | | | | | | | Since 67651d80bc8baaf09ab91fec8ea423e09107ed8f the requests package now depends on certifi, which in turn provides the CA root certificates that we need to replace. It might also be a good idea to actually patch certifi with our version of cacert by default so that if we want to override and/or add something we only need to do it once. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @fpletz, @k0ral, @FRidh
* nixos/tests/letsencrypt: Fix nginx optionsaszlig2017-09-13
| | | | | | | | | | | The enableSSL option has been deprecated in a912a6a291eaa5f6a2ad9143c9e276779c357a41, so we switch to using onlySSL. I've also explicitly disabled enableACME, because this is the default and we don't actually want to have ACME enabled for a host which runs an actual ACME server. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests: Add a basic test for ACMEaszlig2017-09-13
| | | | | | | | The test here is pretty basic and only tests nginx, but it should get us started to write tests for different webservers and different ACME implementations. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/tests: Add common modules for letsencryptaszlig2017-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These modules implement a way to test ACME based on a test instance of Letsencrypt's Boulder service. The service implementation is in letsencrypt.nix and the second module (resolver.nix) is a support-module for the former, but can also be used for tests not involving ACME. The second module provides a DNS server which hosts a root zone containing all the zones and /etc/hosts entries (except loopback) in the entire test network, so this can be very useful for other modules that need DNS resolution. Originally, I wrote these modules for the Headcounter deployment, but I've refactored them a bit to be generally useful to NixOS users. The original implementation can be found here: https://github.com/headcounter/deployment/tree/89e7feafb/modules/testing Quoting parts from the commit message of the initial implementation of the Letsencrypt module in headcounter/deployment@95dfb31110397567534f2: This module is going to be used for tests where we need to impersonate an ACME service such as the one from Letsencrypt within VM tests, which is the reason why this module is a bit ugly (I only care if it's working not if it's beautiful). While the module isn't used anywhere, it will serve as a pluggable module for testing whether ACME works properly to fetch certificates and also as a replacement for our snakeoil certificate generator. Also quoting parts of the commit where I have refactored the same module in headcounter/deployment@85fa481b3431bbc450e8008fd25adc28ef0c6036: Now we have a fully pluggable module which automatically discovers in which network it's used via the nodes attribute. The test environment of Boulder used "dns-test-srv", which is a fake DNS server that's resolving almost everything to 127.0.0.1. On our setup this is not useful, so instead we're now running a local BIND name server which has a fake root zone and uses the mentioned node attribute to automatically discover other zones in the network of machines and generate delegations from the root zone to the respective zones with the primaryIPAddress of the node. ... We want to use real letsencrypt.org FQDNs here, so we can't get away with the snakeoil test certificates from the upstream project but now roll our own. This not only has the benefit that we can easily pass the snakeoil certificate to other nodes, but we can (and do) also use it for an nginx proxy that's now serving HTTPS for the Boulder web front end. The Headcounter deployment tests are simulating a production scenario with real IPs and nameservers so it won't need to rely on networking.extraHost. However in this implementation we don't necessarily want to do that, so I've added auto-discovery of networking.extraHosts in the resolver module. Another change here is that the letsencrypt module now falls back to using a local resolver, the Headcounter implementation on the other hand always required to add an extra test node which serves as a resolver. I could have squashed both modules into the final ACME test, but that would make it not very reusable, so that's the main reason why I put these modules in tests/common. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* tests: xmonad less dependent on timingsTim Steinbach2017-09-09
|
* tests: Fix hibernateTim Steinbach2017-09-06
|
* Merge pull request #29040 from NeQuissimus/tests_sysTim Steinbach2017-09-06
|\ | | | | More basic system tests
| * tests: Add environmentTim Steinbach2017-09-05
| |
| * tests: Add kernelParamsTim Steinbach2017-09-05
| |
| * tests: Add sysctlTim Steinbach2017-09-05
| |
* | Merge pull request #29002 from NeQuissimus/docker_edge_module_testTim Steinbach2017-09-06
|\ \ | | | | | | docker: Package in module, tests
| * | docker: Add test for docker-edge, check for proper versions in testsTim Steinbach2017-09-04
| | |
* | | Merge pull request #28989 from NeQuissimus/tests_xmonadTim Steinbach2017-09-06
|\ \ \ | |_|/ |/| | Add XMonad test
| * | Add XMonad testTim Steinbach2017-09-04
| |/
* | postgresql92: remove last referencesFranz Pletz2017-09-05
| |
* | Merge pull request #28988 from NeQuissimus/tests_kernel_basicJörg Thalheim2017-09-05
|\ \ | | | | | | Add basic kernel tests
| * | Add basic kernel testsTim Steinbach2017-09-05
| |/
* / nexus: Add module for nexus.Michele Catalano2017-09-04
|/ | | | | Add also myself as maintainer Add simple test of the nexus service
* nixos/hydra postgresql: Fix #27314 and add test casePhilipp Steinpass2017-09-02
|
* gnome3 tests: fix by providing more memoryJan Tojnar2017-09-01
| | | | /cc #28053.
* Merge: fixups to staging mergeVladimír Čunát2017-08-30
|\ | | | | | | None are large rebuilds; most are on staging already.
| * rogue: omit from the installation mediaVladimír Čunát2017-08-29
| | | | | | | | | | At least for now. It would increase the ISO size by ~10 MB, after the fixup in the parent commit.
* | Merge pull request #28746 from mguentner/ipfstestFranz Pletz2017-08-30
|\ \ | | | | | | tests: fix ipfs test, test actual networking functionality
| * | tests: fix ipfs test, test actual networking functionalityMaximilian Güntner2017-08-30
| | |
* | | Merge pull request #27826 from Infinisil/radicaleFranz Pletz2017-08-30
|\ \ \ | | | | | | | | radicale: update to version 2
| * | | radicale: 1.1.4 -> 2.1.2Silvan Mosberger2017-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit readds and updates the 1.x package from 1.1.4 to 1.1.6 which also includes the needed command for migrating to 2.x The module is adjusted to the version change, defaulting to radicale2 if stateVersion >= 17.09 and radicale1 otherwise. It also now uses ExecStart instead of the script service attribute. Some missing dots at the end of sentences were also added. I added a paragraph in the release notes on how to update to a newer version.
* | | | Merge pull request #28465 from danbst/reloadable-containersFranz Pletz2017-08-30
|\ \ \ \ | |_|_|/ |/| | | Reloadable containers
| * | | nixos tests: add test for declarative containers, that container config changesdanbst2017-08-23
| | |/ | |/| | | | | | | are applied on `nixos-rebuild switch` invocations.
* / | nixos/tests/installer: Add stdenvNoCC to extraDependenciesTuomas Tynkkynen2017-08-24
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The installer tests are failing after 505e94256ef247dc54250 due to `nixos-rebuild switch` in the installed system trying to build stdenvNoCC. Seems that previously, stdenvNoCC wasn't in the installed system either, but all the direct dependencies for the build were (I don't really understand why, for that matter), so the building actually went fine and everything worked. But now gcc is also a direct build dependency due to allowedRequisites containing gcc (even though it doesn't become a runtime dependency) which doesn't get to the installed system. All in all, let's ensure stdenvNoCC actually gets to the installed system. It's after all necessary in almost any NixOS config build.
* / tests/installer: Rename simpleUefiGummiboot -> simpleUefiSystemdBootTuomas Tynkkynen2017-08-19
|/ | | | It hasn't been called Gummiboot for ages.
* tests.plasma5: fix hashFranz Pletz2017-08-12
|
* tests.plasma5: fix evalRobin Gloster2017-08-11
|
* nixos/tests/nginx: fix nameFranz Pletz2017-08-11
|
* nixos.tests.nat: fixRobin Gloster2017-08-04
|
* tests/nat: Use switch-to-configuration in test caseMarkus Mueller2017-08-03
|
* nixos/timezone: support imperative timezone configuration (#26608)Linus Heckemann2017-07-31
| | | Fixes #26469.