Commit Graph

842 Commits (release-18.03-flake)

Author SHA1 Message Date
Andreas Rammhold 5a927299aa
nixos/tests; add haproxy
(cherry picked from commit e1790030262d1ce4a28144363469af96a588b21d)
2018-06-08 23:44:35 +02:00
Uli Baum 345f14e304 nixos/tests/mesos: wait for all services and ports
to be available before sending requests.
Avoids non-deterministic test failure.

(cherry picked from commit 0d2a4ed49c81a0cda44b406d454dc58637e94c3a)
2018-05-17 00:24:55 +02:00
Uli Baum d92331c7fd nixos/tests/kafka: fix and refactor tests
- refactor into single file for all versions
- improve timing, prevent non-deterministic failures
- fix tests for i686-linux

(cherry picked from commit 13f83ba05fbf8a70a497f3136f35e7fe604d0bc0)
2018-05-15 23:42:57 +02:00
xeji a7be27a8a1 nixos/tests/acme: fix on i686, improve timing (#40410)
... to prevent non-deterministic failures

(cherry picked from commit 642bed4b3e0d1b0a8f8d9bfea8d5c99cf7941c2f)
2018-05-13 21:14:12 +02:00
xeji ef74cafd3e nixos/test/systemd: fix broken test
timing bug resulted in sporadic test failures on hydra

(cherry picked from commit 9d5af5871d7099185d35c836934fc5b551a0080a)
2018-05-12 17:11:00 +02:00
xeji 6b50b98bf1 nixos/tests/gnome3-gdm: fix broken test
test always failed due to multiple bugs

(cherry picked from commit 4c14202bd1e0384daeb8e241af20414dd8bf12e3)
2018-05-12 17:11:00 +02:00
xeji 8c27464d43 nixos/tests/mysql-backup: fix non-deterministic failure (#40258)
Sometimes failed because of delayed creation of the backup file.

(cherry picked from commit a19cc36e1a2f55767a7413effd02598278c6003f)
2018-05-12 15:14:52 +02:00
Uli Baum 32aecad0f8 nixos/tests/graphite: fix test
- adapt netcat options to libressl-nc
- wait for services to be started and accepting connections

(cherry picked from commit 840e5d8bda527bb0986efee9df0d45b6e59521d2)
2018-05-11 14:47:33 +02:00
Uli Baum 461e6843b5 nixos/tests/statsd: fix non-deterministic failure
Test failed sometimes because the service took more time to start.

(cherry picked from commit 844698c436d8857fe07cd95a89e967506d9cf98b)
2018-05-10 19:52:17 +02:00
xeji f1e419f3cc nixos/tests/plotinus: fix non-deterministic failure (#40239)
Test failed sometimes, likely because a window didn't get focus.

(cherry picked from commit 558f4b3368b83844837fccd58e9e89490911a1b3)
2018-05-10 19:41:54 +02:00
xeji d0de57d784 nixos/tests/keymap: wait for xdotool to succeed
xdotool failed in rare cases when a window was already created
but not yet decorated by the window manager.
also prevent a (never observed but possible) race condition

(cherry picked from commit 6891bda37071bbecdb343ff941ba893511f5fd70)
2018-04-29 10:33:45 +02:00
xeji f0e2572909 nixos/tests/keymap: improve keymap tests
simplify tests, prevent timeouts and non-deterministic failures

(cherry picked from commit 84a6e18947fe961e97173f031318cd6111a43949)
2018-04-29 10:33:45 +02:00
aszlig 5965316f74
nixos/tests/chromium: Wait 10s after new window
This is a very very very ugly workaround and it's because Chromium seems
to eat keystroke for a few seconds after a new window is created.

I haven't found a better solution yet, so let's at least unbreak the
test until we come up with a better way.

Thanks to @vcunat for bringing this to my attention and also doing the
initial bisect.

The change that brought up this problem was 2b29e401531306d044f797a5dfa,
which updated Chromium from version 65.0.3325.181 to version
66.0.3359.117. Unfortunately the upstream changelog[1] is way too large
to actually guess what the breaking change is.

[1]: https://chromium.googlesource.com/chromium/src/+log/65.0.3325.181..66.0.3359.117?pretty=fuller&n=10000

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @bendlas, @vcunat
(cherry picked from commit 1b1b76f70a9dbf59ad8e833f9de3a60f14cf5471)
2018-04-28 18:22:40 +02:00
Sarah Brofeldt d3881bfcb3 Revert "nixos/tests/keymap: improve keymap tests"
This reverts commit d5d2e66a89.
Discussion in #39400
2018-04-24 19:04:08 +02:00
xeji d5d2e66a89 nixos/tests/keymap: improve keymap tests
simplify tests, prevent timeouts and non-deterministic failures

(cherry picked from commit 84a6e18947fe961e97173f031318cd6111a43949)
Backport #39400
2018-04-24 11:44:16 +02:00
Daiderd Jordan dfa8a5e9dc
docker-tools: add a test for permissions issues with AUFS/overlay
docker# [   11.054736] d24d6cdd57c9[763]: /bin/bash: error while loading
shared libraries: libreadline.so.7: cannot open shared object file:
Permission denied
docker# /bin/bash: error while loading shared libraries:
libreadline.so.7: cannot open shared object file: Permission denied
docker: exit status 127
docker: output:
error: command `docker run --rm -u 1000:1000 bash /bin/bash --version'
did not succeed (exit code 127)
command `docker run --rm -u 1000:1000 bash /bin/bash --version' did not
succeed (exit code 127)

(cherry picked from commit d538fc06e2be5a0e02d8c84b88442c44bb726bb6)
2018-04-16 20:04:05 +02:00
Tim Steinbach e3fa856c14
Fix kernel-copperhead test
(cherry picked from commit 3b0180fb95493d6afbf535dafcdaa77859019295)
2018-04-13 09:02:32 -04:00
Tim Steinbach 7177defdf1 openldap: Fix test
(cherry picked from commit 5fbf9dbf9b9847d0fb7e9786297c4d001fd06384)
2018-04-04 18:39:07 +03:00
Tuomas Tynkkynen b0ca63cf79 nixos/tests/openldap: Fix name
(cherry picked from commit bbc80227ab58494892c67df84f2671a8255cdf14)
2018-04-04 18:33:05 +03:00
Michael Raskin d78695d195 nixos/tests.chromium: actually notice the tab crash
Argh, debugging NixOS tests takes forever…

(cherry picked from commit 1afb6e790a6a28a4fc5f310a2b0e5e012eb416fd)
2018-04-04 12:19:19 +02:00
Vladimír Čunát a6d00d0d8f
nixos.tests.containers-imperative: fix impurity failure
I can't claim to fully understand this, but the change seems safe,
and it fixes the test on my machine.

(cherry picked from commit 75e4d3f2f0dd258c296e77b827dfe934472e187f)
2018-04-02 11:43:02 +02:00
xeji 255f999541
nixos/tests/atd : remove test of batch command
"batch" executes jobs based on system load.
test was not deterministic.

(cherry picked from commit b08560fb0abcca6f2c704d1d0664e3cd17580172)
2018-03-28 08:44:33 +02:00
Tuomas Tynkkynen ad027421c3 nixos/tests/misc: Fix on aarch64
The psmouse module is for PS/2 mouse only, which doesn't exist outside
x86. But we can test for the mousedev module just as well which is used
for the '-device usb-tablet' emulated by QEMU.

(cherry picked from commit d27f7942b7ab745c5a00a993e2316c46654117d1)
2018-03-25 18:38:57 +03:00
Tim Steinbach e2b8732980
vault: Fix test
(cherry picked from commit 3aa3738bb2582f9142675c952f7e6e3621081c1e)
2018-03-25 01:01:34 +01:00
Tuomas Tynkkynen be44525d04 nixos/tests/installer: Give eval failure on unsupported boot methods
(cherry picked from commit 3131daace1eed2b642ab56c5843fd2057fbbfde3)
2018-03-24 18:37:20 +02:00
Tuomas Tynkkynen f45bc2b3e4 nixos/tests: Make simpleUefiGrub test work on AArch64
Needs more refactoring for the AArch64 '-enable-kvm' stuff some day...

(cherry picked from commit e58624a877342d1fea39b02a5d6528cd53eefefe)
2018-03-24 16:51:06 +02:00
Florian Jacob b9084d0160
nixos/prosody: add a basic test
(cherry picked from commit 88f06c5ce9800d661fa85c019838fe67635aa64f)
2018-03-22 14:33:09 +01:00
Robert Schütz 7a5c7c1818 nixos/borgbackup: init
(cherry picked from commit fdf0f037be55c5c14e24667b1ad7eeedf2057295)
2018-03-19 20:32:43 +01:00
aszlig b05df747cb
nixos/tests/virtualbox: Work around test failures
I've started digging into the actual cause of the problem a week ago but
didn't continue fixing this.

The reason why the tests are failing is because
torvalds/linux/commit/72f5e08dbba2d01aa90b592cf76c378ea233b00b has
remapped the location of the TSS into the CPU entry area and we did
update our default kernel to version 4.14 in NixOS/nixpkgs@88530e02b6.

Back to VirtualBox: The guru meditation happens in
selmRCGuestTssPostWriteCheck, which I think is only a followup error. I
believe the right location couldn't be determined by VirtualBox and thus
the write check function triggers that panic because it's reading from
the wrong location.

So the actual problem *only* surfaces whenever we use software
virtualization, which we do for our tests because we don't have nested
virtualization available.

Our tests are also for testing the functionality of VirtualBox itself
and not certain kernel versions or kernel features, so for the time
being and until this is fixed, let's actually use kernel version 4.9 for
the guests within the VM tests. Kernel 4.9 didn't have the mentioned
change of the TSS location and thus the tests succeed.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @dtzWill
(cherry picked from commit ba816ee08721d0c2f5f7e6652091bed085ac7687)
2018-03-13 22:01:22 +01:00
Antoine Eiche 763ec32dd7
tests/docker-tools: add onTopOfPulledImage test
(cherry picked from commit bc1e8f95d4c20c996ca14f39331fe23cbb3ffe2c)
2018-03-13 15:02:04 +01:00
WilliButz 442da8b898
grafana: 5.0.0 -> 5.0.1
(cherry picked from commit ef90ff2d8ea13ebf222eb437fb6db8fcbbc1a554)
2018-03-13 00:39:44 +01:00
Franz Pletz a3d87f1ed8
nixos/tests/containers-tmpfs: fix test name
(cherry picked from commit b0fa004fa9247a15c31f4f986791c025f9242c3d)
2018-03-12 22:28:51 +01:00
Sarah Brofeldt 9dbc763949
nixos/tests/acme: use mail-test-srv tls certs from source
(cherry picked from commit df3706c47cbdea7d69b82a7ba857d58f3d4ea51f)
2018-03-12 22:10:20 +01:00
Sarah Brofeldt 665c75eccb
nixos/tests/acme: go compat update, unvendor pkcs11
(cherry picked from commit bd3558086088e36a93590947ce68dc9dad274b8d)
2018-03-12 22:10:20 +01:00
Nikolay Amiantov 6b3d6a9f7a
cups service: fix client sockets
Use systemd to create the directory for UNIX socket. Also use localhost instead
of 127.0.0.1 as is done in default cupsd.conf so that IPv6 is enabled when
available.

(cherry picked from commit 9c1c424e525b637560d91b99430b83cdaed24820)
2018-03-07 13:30:26 +01:00
Franz Pletz 0f78afdf25
Merge pull request #32248 from awakesecurity/parnell/fetchdocker
Support fetching docker images from V2 registries
2018-03-04 17:10:27 +00:00
Vladimír Čunát 2069a2a002
Merge #35454: nixos/pump.io: remove 2018-03-04 10:49:25 +01:00
Jörg Thalheim 6749f6e26e
Merge pull request #36249 from Ekleog/openldap-module-declarative-contents
Openldap module declarative contents
2018-03-03 19:00:13 +00:00
Jörg Thalheim b2acbe58b2 nixos/openldap: add test 2018-03-03 18:53:52 +00:00
Vladimír Čunát b70c93f211
Merge branch 'master' into nix-2.0 2018-03-03 18:02:35 +01:00
aszlig 88530e02b6
systemd: Update to latest NixOS branch
Updated to the latest version of the nixos-v237 branch, which fixes two
things:

  * Make sure that systemd looks in /etc for configuration files.
    https://github.com/NixOS/systemd/pull/15
  * Fix handling of the x-initrd.mount option.
    https://github.com/NixOS/systemd/pull/16

I've added NixOS VM tests for both to ensure we won't run into
regressions. The newly added systemd test only tests for that and is by
no means exhaustive, but it's a start.

Personally I only wanted to fix the former issue, because that's the one
I've been debugging. After sending in a pull request for our systemd
fork (https://github.com/NixOS/systemd/pull/17) I got a notice from
@Mic92, that he already fixed this and his fix was even better as it's
even suitable for upstream (so we hopefully can drop that patch
someday).

The reason why the second one came in was simply because it has been
merged before the former, but I thought it would be a good idea to have
tests for that as well.

In addition I've removed the sysconfdir=$out/etc entry to make sure the
default (/etc) is used. Installing is still done to $out, because those
directories that were previously into sysconfdir now get into
factoryconfdir.

Quote from commit NixOS/systemd@98067cc806:

  By default systemd should read all its configuration from /etc.
  Therefore we rely on -Dsysconfdir=/etc in meson as default value.
  Unfortunately this would also lead to installation of systemd's own
  configuration files to `/etc` whereas we are limited to /nix/store. To
  counter that this commit introduces two new configuration variables
  `factoryconfdir` and `factorypkgconfdir` to install systemd's own
  configuration into nix store again, while having executables looking
  up files in /etc.

Tested this change against all of the NixOS VM tests we have in
nixos/release.nix. Between this change and its parent no new tests were
failing (although a lot of them were flaky).

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Mic92, @tk-ecotelecom, @edolstra, @fpletz
Fixes: #35415
Fixes: #35268
2018-03-03 10:39:38 +01:00
lejonet 565f22d27a nixos/ceph: init module (#35299)
All 5 daemon types can be enabled and configured through the module and the module both creates the ceph.conf required but also creates and enables specific services for each daemon, based on the systemd service files that upstream provides.
2018-03-01 11:47:13 +00:00
Shea Levy 4de72b90f3
nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
Eelco Dolstra ceb0a28e8c
Don't try hashed mirrors in the installer test 2018-02-27 20:30:06 +01:00
Eelco Dolstra 9e8cf40c7e
nixos/tests/installer.nix: Don't use a writable store
This is no longer needed.
2018-02-27 20:22:14 +01:00
Eelco Dolstra cc2eeef4ab
Fix installing the Nixpkgs channel on the installation media
And test that it got installed correctly.
2018-02-27 19:58:23 +01:00
Rodney Lorrimar 21dcead5f0
nixos/pump.io: remove
This would probably be better maintained in a separate repo as an
external NixOS module which gets imported into user's configuration.
2018-02-27 12:52:51 +00:00
Nikolay Amiantov cc52eff6c6 Revert "cups service: fix client sockets"
This reverts commit cf4c077343.
2018-02-23 18:47:43 +03:00
Nikolay Amiantov cf4c077343 cups service: fix client sockets
Use systemd to create the directory for UNIX socket. Also use localhost instead
of 127.0.0.1 as is done in default cupsd.conf so that IPv6 is enabled when
available.
2018-02-23 18:43:51 +03:00
Frederik Rietdijk d328ba753e
Merge pull request #35243 from FRidh/postgis
postgis: get rid of composableDerivation
2018-02-22 16:49:56 +00:00