about summary refs log tree commit diff
path: root/modules/core/tests.nix
Commit message (Collapse)AuthorAgeFilesLines
* core/tests: Fix eval of wireguard tests for realaszlig2020-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | I even mentioned the full names of the test attributes in bc4203d221c87a0622d089aaa61884f86d40fd44: tests.wireguard.wireguard-basic-linux-5_4 tests.wireguard.wireguard-basic-linux-latest tests.wireguard.wireguard-generated-linux-5_4 tests.wireguard.wireguard-generated-linux-latest tests.wireguard.wireguard-namespaces-linux-5_4 tests.wireguard.wireguard-namespaces-linux-latest tests.wireguard.wireguard-wg-quick-linux-5_4 tests.wireguard.wireguard-wg-quick-linux-latest So I forgot about the additional "wireguard-" prefix, so Hydra fails to evaluate again: in job 'tests.nixos.wireguard.basic-linux-5_4': evaluation aborted with the following error message: 'cannot find attribute `nixos.wireguard.basic-linux-5_4'' Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Add missing wireguard attr suffixesaszlig2020-06-031-4/+8
| | | | | | | | | | | | | | | | | | | | | | Commit 89c3cda819da5dc32e4a29ff8f2aad118bde64c7 changed the wireguard attributes to use nested attributes because it was changed upstream. However what the commit has missed is that the attributes are not just plain attributes but come with a kernel version suffix, for example like this: tests.wireguard.wireguard-basic-linux-5_4 tests.wireguard.wireguard-basic-linux-latest tests.wireguard.wireguard-generated-linux-5_4 tests.wireguard.wireguard-generated-linux-latest tests.wireguard.wireguard-namespaces-linux-5_4 tests.wireguard.wireguard-namespaces-linux-latest tests.wireguard.wireguard-wg-quick-linux-5_4 tests.wireguard.wireguard-wg-quick-linux-latest Adding the "-linux-${version}" suffix should fix evaluation. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix attribute paths for wireguardaszlig2020-06-031-3/+6
| | | | | | | | | | | | | | | | | | A few days ago, the wireguard tests were consolidated[1] into a single attribute with various subattributes, similar to how the virtualbox tests and many other tests are structured. I fixed the attributes and also added the wg-quick attribute that was also introduced in the meantime[2]. This should fix the evaluation errors occuring whenever a channel contains a machine configuration with wireguard enabled. [1]: https://github.com/NixOS/nixpkgs/commit/41bd6d2614749d12ce5ded3e991555b56ea6b2dc [2]: https://github.com/NixOS/nixpkgs/commit/abf60791e2bd274d39e0f18def46795798f9aefd Signed-off-by: aszlig <aszlig@nix.build> Cc: @Profpatsch
* core/tests: Fix attribute for Docker containersaszlig2020-05-051-2/+2
| | | | | | | | | | The option has been renamed[1] from just "docker-containers" to "virtualisation.oci-containers.containers", so our checks no longer evaluate. [1]: https://github.com/NixOS/nixpkgs/commit/2f7747526cc80844a506c4aa147 Signed-off-by: aszlig <aszlig@nix.build>
* modules/tests: Fix eval of dokuwikidevhell2020-04-241-1/+1
| | | | | | | With the merge of [1], the `.enable` check for `config.services.dokuwiki` has been removed. [1]: https://github.com/NixOS/nixpkgs/pull/83769
* core/tests: Rename references to "nesting"aszlig2020-04-151-5/+4
| | | | | | | | | | | The nesting.clone and nesting.children options were renamed[1] upstream and they're now contained in one single submodule option, which means that for our tests we only need to check for config.specialisation instead of nesting.clone and nesting.children separately. [1]: https://github.com/NixOS/nixpkgs/commit/ec2d28e3233c4c04fe6afe13e82 Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove check on graphite.pageraszlig2020-03-231-1/+1
| | | | | | | | | | | | All of the NixOS options in services.graphite.pager have been removed in 37ffa6ea51f3a3d7e43736b9a5ce3c149dd9d1ee, but since we're using the "enable" option to check whether we need to run tests, we'll get an eval error. Removing the check fixes the evaluation error. Signed-off-by: aszlig <aszlig@nix.build> Reported-by: @devhell
* core/tests: Fix option check for buildkite-agentsaszlig2020-02-101-1/+1
| | | | | | | | | Another thing I missed in ffa7a45ba0aa27c926472e23587423bc07a6db53 is that not only the module got renamed, but its interface has changed as well and instead of an "enable" option, it's now just an attribute set of submodules and the service(s) are enabled whenever it's non-empty. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Rename module for buildkite-agentaszlig2020-02-101-2/+2
| | | | | | | | | | | | The buildkite-agent module, NixOS test and option got renamed[1] to its plural form, also supporting multiple agents. While none of our machines are using the module, we nevertheless need to fix the module option attribute so that our channels will evaluate. [1]: https://github.com/NixOS/nixpkgs/commit/f003810989c58746db9ea52f623 Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove docker-preloader testaszlig2020-02-101-4/+0
| | | | | | | | This test is only really useful in test environments and is imported only within the QEMU test driver. The NixOS module option is not available otherwise, which in turn will cause the evaluation to fail. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix evaluation for docker-preloaderaszlig2020-02-101-1/+2
| | | | | | | | | Eval error introduced by 0f0e3cef6297d1334a3b1c27bb125490850be84f. The virtualisation.dockerPreloader attribute doesn't include an "enable" option, but instead is configured by specifying a list of images. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Update upstream NixOS testsaszlig2020-02-101-63/+606
| | | | | | | | | | | | | | | | | It has been a while, since we did a full update of all the tests, which we last did in 3ea85a699a65dbdd4f633d21e70be6859b0f3f8f (April 2018). Since then, a whole lot of tests were added and a few of them got removed as well. Since we only did incremential updates whenever something broke, we didn't have any newer tests. We should now have conditions of all the tests we have in nixpkgs master[1] minus a few special ones, which are only related to upstream image generation (eg. the ec2 test). [1]: https://github.com/NixOS/nixpkgs/commit/637bb9fa984238f2f7e6235ca11 Signed-off-by: aszlig <aszlig@nix.build>
* treewide: Remove all references to SLiMaszlig2019-12-081-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following evaluation error: The option `services.xserver.displayManager.slim' can no longer be used since it's been removed. The SLIM project is abandoned and their last release was in 2013. Because of this it poses a security risk to your system. Other issues include it not fully supporting systemd and logind sessions. Please use a different display manager such as LightDM, SDDM, or GDM. You can also use the startx module which uses Xinitrc. Here is the nixpkgs upstream pull request removing SLiM: https://github.com/NixOS/nixpkgs/pull/73251 Since I was using a custom theme for SLiM and actually liked the minimalism, it's probably time to start patching LightDM soon. For now however, I'll stay with a default LightDM configuration and wait until I'm getting annoyed :-) Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove beegfs testaszlig2019-12-081-3/+0
| | | | | | | | | | | | | | | | The test has been removed upstream[1] for the following reason[2]: > BeeGFS is a fantastic high performance file system. However, after > running it for a few months last year the meta data daemon kept > crashing randomly in production use (support from the manufacturer > requires a paid support contract). The current version that is nixpkgs > is outdated and I do not want to maintain it any longer. The build > system is purely based on make file and is hard to maintain. [1]: https://github.com/NixOS/nixpkgs/commit/c3e17efaab0b53b4f45454aaaea7690506a8fcde [2]: https://github.com/NixOS/nixpkgs/pull/66352 Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove quake3devhell2019-11-101-4/+0
| | | | | | | | | This test has been recently removed upstream [1]. [1]: https://github.com/NixOS/nixpkgs/commit/50ea99cbc18d3f480a773de5250b4ef9c7f6d514 Signed-off-by: devhell <devhell@mailfresser.de> Cc: @aszlig
* core/tests: Remove statsd testaszlig2018-11-231-3/+0
| | | | | | | | | The test got removed in NixOS/nixpkgs@552c2236254271f12342d3ad7a0f7c0bb with the following comment: The package/service is broken. Upstream is dead Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove test for kernel-copperheadaszlig2018-09-031-4/+0
| | | | | | | | The test has been removed in nixpkgs because it is unmaintained: https://github.com/NixOS/nixpkgs/commit/5fccac2b8d77a660a968809519710a5b Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove check on copperhead_stableaszlig2018-07-041-4/+2
| | | | | | | | The attribute linuxPackages_copperhead_stable has been removed in NixOS/nixpkgs@ddce094ddf456434e15a7af315be1f6de4136fd7 because it's unmaintained. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove test for fleetaszlig2018-05-051-3/+0
| | | | | | | | | | | This has been removed in NixOS/nixpkgs@c3eefe801a55586445125d49f159c1c0. @xeji writes in NixOS/nixpkgs#39991: > fleet is deprecated and unmaintained upstream. panamax is broken and > depends on fleet. Remove packages, modules and tests. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix predictable-interface-names testsaszlig2018-04-291-2/+15
| | | | | | | Those also have subtests and they also test different variations of options, so let's actually create a check for every single variations. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Specify subtest for Kubernetesaszlig2018-04-291-2/+4
| | | | | | | | The Kubernetes tests actually contain subtests, so let's specify them so we don't run into errors during Hydra evaluation because the result would be a generic attribute set instead of a derivation. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Add tests for Chromium and Firefoxaszlig2018-04-291-0/+6
| | | | | | | | | While hasPackage is not yet very accurate when it comes to detecting whether a package is in systemPackages (it only matches the name attribute), let's make at least two of the most frequently used browsers part of our machine specific tests. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove "with lib"aszlig2018-04-291-10/+10
| | | | | | | We want to make sure nix-instantiate --parse will catch errors very early, because evaluation of the test definitions takes a ton of time. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Update upstream NixOS testsaszlig2018-04-291-2/+93
| | | | | | | | | | | | | | | | | | | | New tests as of NixOS/nixpkgs@9df35787f16636628a2c7392cc4bfeff0e815242: buildbot, ceph, deluge, docker-edge, docker-tools, docker-tools-overlay, fwupd, gjs, iftop, kubernetes.dns, kubernetes.rbac, matrix-synapse, nix-ssh-serve, novacomd, openldap, plotinus, powerdns, predictable-interface-names, prosody, quagga, rabbitmq, rspamd, rxe, strongswan-swanctl, systemd, transmission, xautolock, xrdp, yabar The main kubernetes test no longer exists and has been split into kubernetes.dns and kubernetes.rbac in NixOS/nixpkgs@709b6f664e472ae2075bbee83bfb1dd1ba95e0e7. I also added a small hasPackage helper for gjs, which we're going to use for packages in the system path very soon. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix references to copperheadaszlig2018-04-291-2/+4
| | | | | | | | | This was changed in NixOS/nixpkgs@844c08ec0a5b79abb16d9de5bd39ed492f4. Instead of linuxPackages_copperhead_hardened we now have linuxPackages_copperhead_lts and linuxPackages_copperhead_stable. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove reference for pumpio testaszlig2018-03-041-3/+0
| | | | | | | | | This test has been removed in NixOS/nixpkgs@21dcead5f0c3d548ad4642a4e86, so we no longer need to check for it. Fixes an error during channel evaluation. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix use of networking.interfaces.*.ip4aszlig2018-02-261-1/+2
| | | | | | | | | | | Since NixOS/nixpkgs@c1bed05e341756f7fdfa73035c7f1e078e49be3d it is now called ipv4.addresses. The reason why the evaluation on our behalf has failed despite the option being aliased is that we try to access the option while checking for eligible tests for a particular machine. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix copperhead linuxPackages attributeaszlig2018-02-101-1/+1
| | | | | | | | | | Since NixOS/nixpkgs@3a2ee6e5c3bfae64c604859c7cc1ee6b069ea5b5 the attribute name for the kernel packages is now linuxPackages_copperhead_hardened instead of linuxPackages_hardened_copperhead, so we need to change it in our conditions as well. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Update upstream NixOS testsaszlig2018-02-031-8/+95
| | | | | | | | | | | | | | | | | | | | New tests as of NixOS/nixpkgs@27a4a5511dc2cf9756943458d7a752617e4ad6e3: acme, atd, beegfs, couchdb, dovecot, env, gitolite, grafana, graphite, home-assistant, initrd-network-ssh, kernel-copperhead, kernel-latest, kernel-lts, mesos, mutableUsers, mysqlBackup, netdata, nghttpx, owncloud, prometheus, radicale, statsd, sudo, switchTest, vault, xmonad, zookeeper I've removed the pgjwt test, because the attribute is not reachable anymore within nixos/release.nix as it has been commented out in NixOS/nixpkgs@40ed22650737a444fee7883e69e852fd4b808133. Also I didn't add the postgis test, because checking for the configuration attribute is a bit tedious and chances are very low that we'd have a machine in Vuizvui that uses it. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove openstack testsdevhell2017-12-161-6/+0
| | | | | | Openstack has been removed from nixpkgs (see PR #32637). Hydra's eval is failing because of this, so we should probably remove the tests here too.
* core/tests: Fix eval error for nixos.hardenedaszlig2017-08-191-1/+1
| | | | | | | | The configuration option boot.kernel.sysctl is of type attrsOf, so we can't assume that the attribute "user.max_user_namespaces" is actually there. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Update upstream NixOS testsaszlig2017-08-191-3/+14
| | | | | | | | | | | | | | | | | | | New tests as of NixOS/nixpkgs@77dfa05bd5a296476143f02f2cfc0e47bdded01a: * cloud-init * hardened * ldap * snapper Removed tests: * grsecurity Renamed tests: * installer.simpleUefiGummiboot -> installer.simpleUefiSystemdBoot Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Fix VirtualBox headless optionaszlig2017-06-221-1/+1
| | | | | | | The option value was missing a .host, which caused the evaluation to fail because of a missing attribute. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules/core/tests: Add test for SLiMaszlig2017-04-231-0/+3
| | | | | | Added in NixOS/nixpkgs@dc87b5587e3fb39e96e6b965a26f324daf7508f8. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Update upstream NixOS testsaszlig2017-04-191-5/+30
| | | | | | | | | | | | | | | | | New tests as of NixOS/nixpkgs@b0179351036a870da8c1a89c991a359a73aab0e2: * containers-restart_networking * nginx * pgjwt * postgresql (now with subtests per package) * sddm (now with subtest "autoLogin" and "default") * wordpress The following tests were renamed: * kde5 -> plasma5 Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules/core/tests: comment out quaggaProfpatsch2017-04-041-3/+4
| | | | Fixes evaluation.
* Remove/rename occurences of kde5aszlig2017-03-021-1/+1
| | | | | | | | | | | | | | This fixes the attributes accordingly to the following two upstream commits: * NixOS/nixpkgs@f21d4d00152726c02f870cb20faba4aca18ef49a * NixOS/nixpkgs@8eb4d2afbc1d61d316073f25f5885a46ccb37ea2 The first renames desktopManager.kde5 to desktopManager.plasma5 and the second one removes the kde5 attribute from the top-level packages set and puts applications in kdeApplications instead. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Add a few missing callSubTests testsaszlig2017-02-161-0/+7
| | | | | | | | | | | | Haha, so that's what I got from introducing callSubTests in NixOS/nixpkgs@b3337edd0b77f04d0abe4a29642a5e4fdb4ad692. While in general this is an improvement, it makes it harder for vuizvui to gather tests that were added or removed. Maybe we should write an updater for this soon. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Update upstream NixOS testsaszlig2017-02-161-11/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New tests as of NixOS/nixpkgs@b207bf523b8c49b037a4a87456d61f63043cd2c6: * containers-extra_veth * containers-hosts * containers-macvlans * containers-physical_interfaces * containers-tmpfs * glance * hound * keystone * leaps * mongodb * nat.firewall-conntrack * pam-oath-login * samba * sddm The following tests were removed: * kde4 * panamax I've also added a few checks on whether containers are actually enabled, because some tests like containers-bridge would run if containers with a bridge were defined but enableContainers was false. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Add and remove upstream NixOS testsaszlig2016-09-111-6/+10
| | | | | | | | | | | | | | | | | New tests as of NixOS/nixpkgs@4ac7b7d5deb4a2ccf291c1251ff7515f1ab17c82: * nixos.kde5 * nixos.ferm * nixos.quagga The following tests were removed: * nixos.dockerRegistry * nixos.sddm The test for SDDM is now included within the KDE5 test. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Fix evaluation of Go.CD configaszlig2016-08-011-2/+2
| | | | Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Improve checks for container configaszlig2016-08-011-4/+7
| | | | | | | | | | | This reverts commit 3f0a9e8002802e5a772b7582f8254c92d7a2a4d5. It's now possible to disable support and tests for containers simply by using config.boot.enableContainers in the machine config, because that's the super option that enables all the container-related services and tools in upstream NixOS and it's also enabled by default. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* core/tests: Add new NixOS testsaszlig2016-08-011-0/+18
| | | | | | New tests are since NixOS/nixpkgs@4f796c28d57887cc9812190bc99fb45b2a. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Disable imperative containers test for brawndoaszlig2016-07-231-1/+1
| | | | | | | This is to get a first working channel for bootstrapping. Fixing the test is the long-term goal of course, so this is only temporarily. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules/profiles/*: Rename to modules/core/*aszlig2016-05-171-0/+312
The name "profiles" really doesn't match what these modules are for. Instead they define the very core of Vuizvui and its internal plumbing and those options are available/enabled to all machines and modules. Signed-off-by: aszlig <aszlig@redmoonstudios.org>