nixpkgs/nixos/tests
aszlig 3e11ff6e0d
nixos/dhparams: Introduce a 'stateful' option
This option allows us to turn off stateful generation of Diffie-Hellman
parameters, which in some way is still stateful as the generated DH
params file is non-deterministic.

However what we can avoid with this is to have an increased surface for
failures during system startup, because generation of the parameters is
done during build-time.

Another advantage of this is that we no longer need to take care of
cleaning up the files that are no longer used and in my humble opinion I
would have preferred that #11505 (which puts the dhparams in the Nix
store) would have been merged instead of #22634 (which we have now).

Luckily we can still change that and this change gives the user the
option to put the dhparams into the Nix store.

Beside of the more obvious advantages pointed out here, this also
effects test runtime if more services are starting to use this (for
example see #39507 and #39288), because generating DH params could take
a long time depending on the bit size which adds up to test runtime.

If we generate the DH params in a separate derivation, subsequent test
runs won't need to wait for DH params generation during bootup.

Of course, tests could still mock this by force-disabling the service
and adding a service or activation script that places pre-generated DH
params in /var/lib/dhparams but this would make tests less readable and
the workaround would have to be made for each test affected.

Note that the 'stateful' option is still true by default so that we are
backwards-compatible with existing systems.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Ekleog, @abbradar, @fpletz
2018-04-26 08:04:50 +02:00
..
common nixos/tests/acme: use mail-test-srv tls certs from source 2018-03-08 22:50:26 +01:00
hocker-fetchdocker hocker: Don't check package and wrap the binaries with PATH to nix 2017-12-02 09:20:22 -06:00
initrd-network-ssh nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
krb5 nixos/krb5: complete rewrite 2017-10-02 14:30:19 +10:30
kubernetes nixos: kubernetes fixes 2018-03-30 17:33:45 -04:00
acme.nix nixos/tests/acme: Use overridePythonAttrs 2017-09-14 23:18:52 +02:00
ammonite.nix
atd.nix nixos/tests/atd : remove test of batch command 2018-03-21 00:58:41 +01:00
avahi.nix
beegfs.nix beegfs: init at 6.17 2017-12-31 07:07:02 +00:00
bittorrent.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
blivet.nix
boot-stage1.nix nixos.tests.boot-stage1: fix missing libelf 2018-02-22 04:04:49 +01:00
boot.nix Fix installing the Nixpkgs channel on the installation media 2018-02-27 19:58:23 +01:00
borgbackup.nix nixos/borgbackup: init 2018-03-19 13:12:47 +01:00
buildbot.nix
cadvisor.nix
cassandra.nix
ceph.nix nixos/ceph: init module (#35299) 2018-03-01 11:47:13 +00:00
chromium.nix nixos/tests.chromium: actually notice the tab crash 2018-04-09 13:21:53 +02:00
cjdns.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
cloud-init.nix nixos/tests: Drop unnecessary qemu-flags.nix include 2018-01-30 16:57:27 +02:00
containers-bridge.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-extra_veth.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-hosts.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-imperative.nix nixos/tests/containers-imperative: Fix eval 2018-04-20 12:25:04 +02:00
containers-ipv4.nix
containers-ipv6.nix
containers-macvlans.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-physical_interfaces.nix nixos/containers-physical_interfaces: use new bond option interface 2018-03-31 19:01:10 +01:00
containers-portforward.nix
containers-reloadable.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-restart_networking.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-tmpfs.nix nixos/tests/containers-tmpfs: fix test name 2018-03-12 22:28:27 +01:00
couchdb.nix nixos/tests: add couchdb test 2017-11-19 17:39:36 +01:00
deluge.nix deluge: add test 2018-04-13 10:30:22 +02:00
dhparams.nix nixos/dhparams: Introduce a 'stateful' option 2018-04-26 08:04:50 +02:00
dnscrypt-proxy.nix Revert "nixos/dnscrypt-proxy: remove" 2018-01-08 15:09:33 +01:00
docker-edge.nix docker: Add test for docker-edge, check for proper versions in tests 2017-09-04 19:02:44 -04:00
docker-registry.nix
docker-tools-overlay.nix docker-tools: add a test for permissions issues with AUFS/overlay 2018-04-14 14:11:14 +02:00
docker-tools.nix docker-tools: add a test for permissions issues with AUFS/overlay 2018-04-14 14:11:14 +02:00
docker.nix docker: Add test for docker-edge, check for proper versions in tests 2017-09-04 19:02:44 -04:00
dovecot.nix dovecot module: test dovecot's LDA 2018-04-12 01:35:14 +02:00
ec2.nix nixos/tests: Drop unnecessary qemu-flags.nix include 2018-01-30 16:57:27 +02:00
ecryptfs.nix
elk.nix elk: add elasticsearch6, logstash6, kibana6 and the beats at v6.1.0 2018-01-02 01:15:29 +01:00
emacs-daemon.nix
env.nix tests: Add environment 2017-09-05 19:05:37 -04:00
etcd-cluster.nix
etcd.nix
ferm.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
firefox.nix
firewall.nix
flannel.nix
fleet.nix
fwupd.nix nixos/fwupd: add test 2018-02-15 01:11:13 +01:00
gitlab.nix nixos/tests/gitlab.nix: Unbreak config, still times out 2017-11-06 14:52:33 +01:00
gitolite.nix nixos/tests/gitolite: Don't build during evaluation 2017-10-21 23:45:37 +03:00
gjs.nix nixos/gjs: add test 2018-02-14 22:43:59 +01:00
gnome3-gdm.nix nixos/tests/gnome3-gdm: fix broken test 2018-04-21 12:09:30 +02:00
gnome3.nix
gocd-agent.nix
gocd-server.nix
grafana.nix grafana: 5.0.0 -> 5.0.1 2018-03-12 23:37:29 +01:00
graphite.nix graphite: fix the graphiteApi service 2017-10-31 15:49:59 +01:00
haka.nix
hardened.nix nixos/hardened test: add failing test-case for deferred mounts 2017-09-22 23:53:27 +02:00
hibernate.nix tests: Fix hibernate 2017-09-06 22:01:48 -04:00
home-assistant.nix home-assistant: use remarshal to convert configuration to YAML 2018-04-23 16:53:13 +08:00
hound.nix
hydra.nix nixos/hydra postgresql: Fix #27314 and add test case 2017-09-02 23:07:42 +02:00
i3wm.nix
iftop.nix nixos/iftop: add module 2018-04-07 15:06:51 +02:00
influxdb.nix
initrd-network.nix
installer.nix nixos/tests/installer: Give eval failure on unsupported boot methods 2018-03-24 16:11:31 +02:00
ipfs.nix tests: ipfs: enable autoMount tests 2017-09-18 00:05:35 -07:00
ipv6.nix nixos/tests: fix test failure due to preferTempAddress changes 2018-02-19 11:31:20 +01:00
jenkins.nix nixos/tests/jenkins: check if jenkins is available 2017-12-14 16:03:24 +01:00
kafka_0_9.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kafka_0_10.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kafka_0_11.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kafka_1_0.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kernel-copperhead.nix Fix kernel-copperhead test 2018-04-13 09:02:26 -04:00
kernel-latest.nix Add basic kernel tests 2017-09-05 10:38:07 -04:00
kernel-lts.nix Add basic kernel tests 2017-09-05 10:38:07 -04:00
kexec.nix
keymap.nix nixos/tests/keymap: wait for xdotool to succeed 2018-04-25 10:16:52 +02:00
ldap.nix
leaps.nix
lightdm.nix
login.nix
make-test.nix nixos/tests/make-test.nix: Fix eval error 2018-02-02 17:44:08 +01:00
mathics.nix
matrix-synapse.nix nixos/tests: add matrix-synapse test 2018-02-04 21:22:55 -04:00
mesos.nix mesos test: fix python handling 2017-09-28 01:15:41 +02:00
mesos_test.py
minio.nix minio: 20170613 -> 2017-09-29T19-16-56Z 2017-10-08 12:24:29 +02:00
misc.nix nixos/tests/misc: Fix on aarch64 2018-03-25 18:29:21 +03:00
mongodb.nix
mpich-example.c
mumble.nix
munin.nix
mutable-users.nix nixos/tests: Add a test for config.users.mutableUsers. 2017-11-19 19:11:19 +01:00
mysql-backup.nix mysqlBackup service: let it work with default settings 2017-09-27 18:44:49 +02:00
mysql-replication.nix
mysql.nix
nat.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
netdata.nix netdata service: fix permissions for apps.plugin 2018-01-02 17:57:19 -05:00
networking-proxy.nix
networking.nix Merge pull request #27688 from rnhmjoj/routes 2018-02-19 14:12:58 +00:00
nexus.nix nexus: Add module for nexus. 2017-09-04 22:32:02 +02:00
nfs.nix
nghttpx.nix nixos/nghttpx: add module for the nghttpx proxy server (#31680) 2017-11-16 18:21:02 +00:00
nginx.nix
nix-ssh-serve.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
novacomd.nix nixos: Add basic test of novacomd 2018-02-20 11:03:49 -06:00
nsd.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
openldap.nix nixos/tests/openldap: Fix name 2018-04-04 18:26:41 +03:00
openssh.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
owncloud.nix owncloud: fix some but not all errors 2017-10-31 23:03:33 +01:00
pam-oath-login.nix
panamax.nix
partition.nix
peerflix.nix
pgjwt.nix nixos/tests: clean up pgjwt test 2017-10-04 13:04:49 +02:00
pgmanage.nix postage: replaced by pgmanage-10.0.2 2017-11-03 00:14:00 +01:00
phabricator.nix
php-pcre.nix php: Add nixos test to ensure php-pcre works in httpd 2017-11-12 08:05:27 +01:00
plasma5.nix
plotinus.nix nixos/plotinus: add module to enable plotinus 2018-02-14 22:25:12 +01:00
postgis.nix postgis: get rid of composableDerivation 2018-02-20 22:17:16 +01:00
postgresql.nix
powerdns.nix nixos/powerdns: add test 2018-02-17 16:43:41 +00:00
predictable-interface-names.nix nixos/tests: add predictable-interface-names.nix (#34305) 2018-02-09 18:40:39 +00:00
printing.nix cups service: fix client sockets 2018-02-23 18:51:39 +03:00
prometheus.nix nixos/tests: unbreak prometheus test 2017-10-16 20:31:49 +02:00
prosody.nix nixos/prosody: add a basic test 2018-03-21 15:33:58 +01:00
proxy.nix
quagga.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
quake3.nix
rabbitmq.nix
radicale.nix nixos/tests: correct comment in radicale.nix (#32574) 2017-12-11 22:09:23 +00:00
riak.nix
rspamd.nix nixos/rspamd: options for worker configuration and socket activation 2018-02-09 06:19:03 +01:00
run-in-machine.nix nixos: Fix output path generation of runInMachine 2017-10-11 20:08:11 +02:00
rxe.nix nixos/rdma-core: add module for soft RoCE and test (#34607) 2018-02-10 07:52:03 +00:00
samba.nix
sddm.nix
simple.nix
slim.nix
slurm.nix
smokeping.nix
snapper.nix
ssh-keys.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
statsd.nix nixos/tests: Fix statsd test evaluation 2018-01-26 23:29:53 +02:00
strongswan-swanctl.nix strongswan-swanctl: fix test 2018-02-28 11:44:00 +01:00
subversion.nix
sudo.nix sudo: define extra rules in Nix language (#33905) 2018-01-17 14:56:08 +00:00
switch-test.nix nixos/system: make switch-to-configuration script pure. 2017-11-19 19:42:54 +01:00
systemd.nix nixos/test/systemd: fix broken test 2018-04-16 00:43:33 +02:00
taskserver.nix
testdb.sql mysqlBackup service: let it work with default settings 2017-09-27 18:44:49 +02:00
timezone.nix
tomcat.nix
trac.nix postgresql92: remove last references 2017-09-05 18:20:56 +02:00
transmission.nix nixos/transmission: add basic nixos test 2018-04-05 22:07:49 +02:00
udisks2.nix
vault.nix vault: Fix test 2018-03-18 19:15:56 +00:00
virtualbox.nix nixos/tests/virtualbox: Work around test failures 2018-03-13 22:00:56 +01:00
wordpress.nix
xautolock.nix xautolock: implement basic test to confirm functionality 2018-03-13 21:04:44 +01:00
xfce.nix
xmonad.nix tests: xmonad less dependent on timings 2017-09-09 10:07:34 -04:00
xrdp.nix
yabar.nix yabar: add module 2018-01-04 09:58:21 +01:00
zfs.nix Add basic ZFS tests 2017-11-14 14:34:19 +08:00
zookeeper.nix zookeeper: Add simple test 2017-11-02 14:09:56 -04:00