summary refs log tree commit diff
path: root/nixos/tests
Commit message (Collapse)AuthorAge
* Merge pull request #44439 from Ekleog/meta-testsTimo Kaufmann2018-11-07
|\ | | | | [RFC] Use `meta.tests` to link from packages to the tests that test them
| * dovecot, opensmtpd: add link to test in `meta.tests`Léo Gaspard2018-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rationale --------- Currently, tests are hard to discover. For instance, someone updating `dovecot` might not notice that the interaction of `dovecot` with `opensmtpd` is handled in the `opensmtpd.nix` test. And even for someone updating `opensmtpd`, it requires manual work to go check in `nixos/tests` whether there is actually a test, especially given not so many packages in `nixpkgs` have tests and this is thus most of the time useless. Finally, for the reviewer, it is much easier to check that the “Tested via one or more NixOS test(s)” has been checked if the file modified already includes the list of relevant tests. Implementation -------------- Currently, this commit only adds the metadata in the package. Each element of the `meta.tests` attribute is a derivation that, when it builds successfully, means the test has passed (ie. following the same convention as NixOS tests). Future Work ----------- In the future, the tools could be made aware of this `meta.tests` attribute, and for instance a `--with-tests` could be added to `nix-build` so that it also builds all the tests. Or a `--without-tests` to build without all the tests. @Profpatsch described in his NixCon talk such systems. Another thing that would help in the future would be the possibility to reasonably easily have cross-derivation nix tests without the whole NixOS VM stack. @7c6f434c already proposed such a system. This RFC currently handles none of these concerns. Only the addition of `meta.tests` as metadata to be used by maintainers to remember to run relevant tests.
* | Merge pull request #49792 from griff/rspamd-multifile-enableFranz Pletz2018-11-06
|\ \ | | | | | | nixos/rspamd: Fix enable for locals and overrides
| * | nixos/rspamd: Fix enable for locals and overridesBrian Olsen2018-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When implementing #49620 I included an enable option for both the locals and overrides options but the code writing the files didn't actually look at enable and so would write the file regardless of its value. I also set the type to loaOf which should have been attrsOf since the code was not written to handle the options being lists. This fixes both of those issues.
* | | Merge pull request #49516 from johanot/kubedns-to-corednsSarah Brofeldt2018-11-06
|\ \ \ | |/ / |/| | nixos/kubernetes: KubeDNS -> CoreDNS
| * | nixos/kubernetes: Replace KubeDNS with CoreDNSJohan Thomsen2018-10-31
| | |
* | | Merge pull request #49283 from aanderse/solrAndreas Rammhold2018-11-04
|\ \ \ | | | | | | | | solr: 4.10.3 -> 7.5.0, refactor service to reflect major changes in version bump
| * | | solr: 4.10.3 -> 7.5.0, refactor service to reflect major changes in version ↵Aaron Andersen2018-11-03
| | | | | | | | | | | | | | | | bump, NixOS test included
* | | | Merge pull request #49620 from griff/rspamd-multifileJoachim F2018-11-03
|\ \ \ \ | |/ / / |/| | | nixos/rspamd: Add support for included files
| * | | nixos/rspamd: Add support for included filesBrian Olsen2018-11-02
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default rspamd will look for multiple files in /etc/rspamd/local.d and /etc/rspamd/override.d to be included in subsections of the merged final config for rspamd. Most of the config snippets in the official rspamd documentation are made to these files and so it makes sense for NixOS to support them and this is what this commit does. As part of rspamd 1.8.1 support was added for having custom Lua rules stored in $LOCAL_CONFDIR/rspamd.local.lua which means that it is now possible for NixOS to support such rules and so this commit also adds support for this to the rspamd module.
* | | Merge pull request #49658 from mayflower/gitlab-refactorFlorian Klink2018-11-03
|\ \ \ | | | | | | | | gitlab: refactor and fix test
| * | | gitlab: refactor and fix testRobin Gloster2018-11-02
| | | |
* | | | nixos/dockerPreloader: preload docker images (#49379)lewo2018-11-03
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module permits to preload Docker image in a VM in order to reduce OIs on file copies. This module has to be only used in testing environments, when the test requires several Docker images such as in Kubernetes tests. In this case, `virtualisation.dockerPreloader.images` can replace the `services.kubernetes.kubelet.seedDockerImages` options. The idea is to populate the /var/lib/docker directory by mounting qcow files (we uses qcow file to avoid permission issues) that contain images. For each image specified in config.virtualisation.dockerPreloader.images: 1. The image is loaded by Docker in a VM 2. The resulting /var/lib/docker is written to a QCOW file This set of QCOW files can then be used to populate the /var/lib/docker: 1. Each QCOW is mounted in the VM 2. Symlink are created from these mount points to /var/lib/docker 3. A /var/lib/docker/image/overlay2/repositories.json file is generated 4. The docker daemon is started.
* | | nixos/tests/chromium: Fix sandbox info matchingaszlig2018-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported by @andir, the regular expressions that match the sandbox output are no longer matching in the recent Chromium bump as of bb03fbc2c8b97ef5a4f4205eee51029155164b8a. Instead of a boolean field that determines whether namespace sandboxes are on, the namespace sandbox is now an enum within "Layer 1 Sandbox". I've modified the regular expressions accordingly and also ran the test for the stable branch, which now succeeds. Signed-off-by: aszlig <aszlig@nix.build> Issue: https://github.com/NixOS/nixpkgs/issues/49442 Cc: @bendlas, @andir
* | | chromium tests: inherit timeout from the packageVladimír Čunát2018-11-01
|/ / | | | | | | /cc #49442. It should decrease the waste of resources due to abortions.
* | Merge pull request #49348 from markuskowa/mod-slurm-upgradexeji2018-10-31
|\ \ | | | | | | nixos/slurm: add slurmdbd, run daemons as user
| * | nixos/slurm: add maintainer to module and testMarkus Kowalewski2018-10-30
| | |
| * | nixos/slurm: node/partitionName option -> listMarkus Kowalewski2018-10-30
| | | | | | | | | | | | | | | | | | | | | Make the node and partitionname options lists. There can be more than paratition or set of nodes. Add changes to release notes
| * | nixos/slurm: add slurmdbd to moduleMarkus Kowalewski2018-10-30
| | | | | | | | | | | | | | | * New options "services.slurm.dbdserver.[enable,config]" * Add slurmdbd to test slurm.nix
* | | tests/docs: remove remnants of old allowPing default (#49198)Robin Gloster2018-10-30
|/ / | | | | | | | | This has been defaulting to true since 16.03, we don't need this code anymore, also the note in the documentation has been obsolete for quite a while.
* | postgresql_11: init at 11.0Alyssa Ross2018-10-30
| |
* | postgresql*: use underscores in version numbersAlyssa Ross2018-10-30
| |
* | postgresql10: rename from postgresql100Alyssa Ross2018-10-30
| |
* | nixos/tests/rsyslogd: Fix evalTuomas Tynkkynen2018-10-30
| |
* | nixos/tests/home-assistant: no longer ignore "Timer got out of sync" errorRobert Schütz2018-10-29
| | | | | | | | That error message was removed in https://github.com/home-assistant/home-assistant/pull/17398.
* | Merge pull request #49355 from Mic92/sddmJörg Thalheim2018-10-28
|\ \ | |/ |/| nixos/plasma5: disable ocr tests
| * nixos/plasma5: disable ocr testsJörg Thalheim2018-10-28
| | | | | | | | This is brittle and breaks the test
* | Merge pull request #48901 from Ekleog/opensmtpd-6.4.0obadz2018-10-28
|\ \ | |/ |/| opensmtpd: 6.0.3p1 -> 6.4.0
| * opensmtpd: 6.0.3p1 -> 6.4.0p1Léo Gaspard2018-10-27
| |
* | nixos/rsyslogd & nixos/syslog-ng: fix broken module (#47306)aanderse2018-10-27
|/ | | | | | | | * journald: forward message to syslog by default if a syslog implementation is installed * added a test to ensure rsyslog is receiving messages when expected * added rsyslogd tests to release.nix
* tests/prometheus-exporters: add new Tor exporterPierre Bourdon2018-10-14
| | | | This new exporter was added in #48307.
* buildbot: add Python 3 supportBen Wolsieffer2018-10-11
|
* Merge pull request #48189 from aanderse/redmineMichael Raskin2018-10-11
|\ | | | | redmine: refactor, cleanup, bug fix, and add functionality
| * switched from builtins.fetchurl to pkgs.fetchurlAaron Andersen2018-10-11
| |
| * redmine: refactor, cleanup, bug fix, and add functionalityAaron Andersen2018-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added package option to specify which version of redmine - added themes option back in to allow specifying redmine themes - added plugins option back in to allow specifying redmine plugins - added database.socket option to allow mysql unix socket authentication - added port option to allow specifying the port rails runs on - cleaned up Gemfile so it is much less hacky - switched to ruby version 2.4 by default as suggested by documentation http://www.redmine.org/projects/redmine/wiki/redmineinstall#Installing-Redmine - fixed an annoyance (bug) in the service causing recursive symlinks - fixed ownership bug on log files generated by redmine - updates reflecting renames in nixos options - added a nixos test
* | Merge pull request #48055 from WilliButz/add-exporter-testsFranz Pletz2018-10-11
|\ \ | |/ |/| nixos/tests: add test for prometheus exporters
| * nixos/tests: add test for prometheus exportersWilliButz2018-10-08
| |
* | nixos/tests: fix non-determinism for goodWilliButz2018-10-10
| |
* | Merge pull request #47917 from arianvp/fix-imperative-containersSamuel Dionne-Riel2018-10-08
|\ \ | |/ |/| Fix imperative containers
| * nixos/containers: Add regression test for #40355Arian van Putten2018-10-08
| |
* | Merge pull request #46443 from bobvanderlinden/pr-test-upnpMatthew Bauer2018-10-05
|\ \ | |/ |/| Miniupnpd and bittorrent improvements
| * tests: bittorrent: add bobvanderlinden as maintainerBob van der Linden2018-09-15
| |
| * tests: bittorrent: improve stabilityBob van der Linden2018-09-15
| | | | | | | | | | | | | | | | | | | | | | | | This attempts to improve stability of the test by using existing services for miniupnpd and transmission. It also uses explicit addresses for the network interfaces so that the external IP addresses are valid internet addresses (thus fixing validation problems from upnpc). Also disable eth0 from being used to transfer torrents over without that being the intention.
| * tests: upnp: init test for upnp using miniupnpd / miniupnpcBob van der Linden2018-09-15
| |
* | Merge pull request #47159 from eqyiel/nextcloudJörg Thalheim2018-10-03
|\ \ | | | | | | nextcloud module: init
| * | nixos/nextcloud: initFranz Pletz2018-10-01
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de> Co-authored-by: Robin Gloster <mail@glob.in> Co-authored-by: Janne Heß <janne@hess.ooo> Co-authored-by: Florian Klink <flokli@flokli.de>
* | | nixos/tests/misc: Fix reboot-wtmp subtestaszlig2018-10-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From commit b63f65aea0dea11c20e9299210af1d2ee4299b58: I used tmpfiles.d instead of activation snippets to create the logs. It's good enough for upstream and other distros; it's probably good enough for us. The "reboot-wtmp" subtest fails because it it assumes that there is a reboot record even on the initial boot. This is only the case if wtmp is created within the activation script, but the implementation now uses tmpfiles.d, so the creation of the file is done at a much later stage. Apart from that, if you think about the state after the installation as "first boot", using the term "reboot" wouldn't probably make sense either. So in our subtest, we now reboot the machine and check the wtmp record afterwards as we did before. Signed-off-by: aszlig <aszlig@nix.build> Cc: @edolstra, @jameysharp, @Mic92
* | | nixos/tests/nix-ssh-serve.nix: Use stable nix (#47584)Sarah Brofeldt2018-10-01
| | |
* | | Merge pull request #47411 from graham-at-target/multi-layered-images-craftedlewo2018-10-01
|\ \ \ | |/ / |/| | Multi-Layered Docker Images
| * | dockerTools: test buildLayeredImageGraham Christensen2018-09-27
| | |