Commit graph

11150 commits

Author SHA1 Message Date
benaryorg
e434130d0b
nixos/systemd: unconditional systemd-journald-audit.socket
Containers did not have *systemd-journald-audit.socket* in *additionalUpstreamSystemUnits*, which meant that the unit was not provided.
However the *wantedBy* was added without any additional check, therefore creating an empty unit with just the *WantedBy* on *boot.isContainer* machines.
This caused `systemd-analyze verify` to fail:

```text
systemd-journald-audit.socket: Unit has no Listen setting (ListenStream=, ListenDatagram=, ListenFIFO=, ...). Refusing.
systemd-journald-audit.socket: Cannot add dependency job, ignoring: Unit systemd-journald-audit.socket has a bad unit file setting.
systemd-journald-audit.socket: Cannot add dependency job, ignoring: Unit systemd-journald-audit.socket has a bad unit file setting.
```

The upstream unit already contains the following, which should make it safe to include regardless:

```ini
[Unit]
ConditionSecurity=audit
ConditionCapability=CAP_AUDIT_READ
```

For reference, this popped up in the context of #[360426](https://redirect.github.com/NixOS/nixpkgs/issues/360426) as well as #[407696](https://redirect.github.com/NixOS/nixpkgs/pull/407696).

Co-authored-by: Bruce Toll <4109762+tollb@users.noreply.github.com>
Signed-off-by: benaryorg <binary@benary.org>
2025-05-18 19:58:59 +00:00
Bruce Toll
22d51e08cf
nixos/tests/systemd-journal: Fix failing tests
Fix regression from https://github.com/NixOS/nixpkgs/pull/379629.
The systemd-journal test has been failing on hydra since 2025-02-10.
See, for instance: https://hydra.nixos.org/build/290855155.

This commit enables auditing, as expected by the tests. It also
addresses an issue where audit messages were getting dropped due to
rate limits.
2025-05-18 19:58:59 +00:00
Cosima Neidahl
3fc0629638
nixos/tests/common/x11.nix: Fix IceWM theme (#406765) 2025-05-18 19:08:43 +02:00
OPNA2608
f66c4ad65f nixos/tests/common/x11.nix: Fix IceWM theme 2025-05-18 10:58:52 +02:00
Atemu
593fa724e2
nixos/tests/vaultwarden: fix UI testing (#408026) 2025-05-17 20:50:26 +02:00
Atemu
daba7cfe73
nixosTests.curl-impersonate: skip failing test (#408000) 2025-05-17 20:39:27 +02:00
networkException
94e7e3f350
nixos/tests/vaultwarden: fix UI testing
This patch fixes a failure in the Selenium UI testing
script by waiting for an element to be clickable.
This allows the Angular to render properly.
2025-05-17 19:03:26 +02:00
Emily
507de69321
sourcehut.*: update (#404203) 2025-05-17 17:33:43 +02:00
emilylange
9266b72424
nixosTests.curl-impersonate: skip failing test
We use a NixOS VM test to execute the upstream tests of curl-impersonate
because they require networking which cannot be mocked easily in the
sandbox.

Of those upstream tests, test_http2_headers spawns nghttpd2, makes
request against it and then tries to parse the logs it emits.
The last step, the parsing of the logs, it extremely fragile and version
dependent. The version of nghttp2 that we carry in nixpkgs is newer than
the one curl-impersonate expects and happens to emit a different log
format.

So to fix the remaining test suite of curl-impersonate, we simply skip
test_http2_headers.
2025-05-17 16:38:55 +02:00
Martin Weinelt
f462e2564d
acme: Add csr option (#376334) 2025-05-17 11:24:08 +02:00
Morgan Jones
727809f534
nixos/k3s: get tests working again
Some of the attributes fetched throw, so tryEval them. Recurse into the
attribute set to pick up all the tests.
2025-05-16 21:34:22 -07:00
Aleksana
d56a9d0b9b
matrix-continuwuity: init at 0.5.0-rc.5; nixos/matrix-continuwuity: init (#400637) 2025-05-17 11:14:53 +08:00
Alois Wohlschlager
9685bc5a05 lixPackageSets.*.lix: test the correct Lix in passthru.tests
Previously always the top-level lix package would be used, which is obviously
not what we want.
2025-05-16 17:55:05 +02:00
Lucas Savva
eeaa42f670
nixos/tests/acme: Add CSR test 2025-05-16 13:09:03 +02:00
lassulus
84049bd248
nixos/syncthing: define and handle encryptionPassword option (#383442) 2025-05-15 19:44:22 +02:00
Jenny
26c6a14a9a
nixos/librenms: seed database in module, not only in test (#406546) 2025-05-15 19:17:41 +02:00
Maximilian Bosch
26126c75df
Merge: Use cacert in Nextcloud (#406252) 2025-05-15 18:50:53 +02:00
Maximilian Bosch
e9f70c9462
nixos/nextcloud: verify that Nextcloud is using the system-wide CA
Nextcloud manages the CA bundle on its own by default, but we patch this
out and replace it with the system-wide bundle.

Since this was originally designed for the objectstore feature, this
test ensures that an S3 behind a reverse proxy with TLS and its own CA
works fine.
2025-05-15 18:19:58 +02:00
Rémi NICOLE
859e55c0e0
NetBox: 4.2.7 -> 4.2.9 + cleanup (#401110) 2025-05-15 11:33:11 +00:00
Leona Maroni
2c3bb1389e
varnish76: drop
will be EOL within 25.05 support window
2025-05-15 09:56:55 +02:00
Matt Christ
ff62fe4136 brscan5: remove deprecated SYSFS udev rule
This patch resolves an issue where systemd-udevd outputs events like:

/nix/store/jm9paymkapbi6pzwbjgmi634vaf2y5va-udev-rules/49-brother-mfp-brscan5-1.0.2-2.rules:17 Invalid key 'SYSFS'.
2025-05-14 18:00:59 -05:00
Yohann Boniface
090d4dfb3a
libxmlb: fix installedTest (#405623) 2025-05-14 23:43:20 +02:00
OPNA2608
66301f51a3 nixosTests.lomiri-filemanager-app: Fix OCR 2025-05-14 23:38:38 +02:00
Cosima Neidahl
527595ee43
nixosTests.{lomiri-*,teleports}: Fix OCR (#406759) 2025-05-14 22:12:56 +02:00
Bobby Rong
3f2e482b29
nixosTests.vscodium: Relax OCR tests again
As long as *some text* displays on the screen everything is fine.

https://hydra.nixos.org/build/297031399/nixlog/9
2025-05-14 20:43:03 +08:00
Minijackson
e152cef13d
nixos/tests/netbox-upgrade: don't require NIXPKGS_ALLOW_INSECURE
Before this change, this NetBox test required NIXPKGS_ALLOW_INSECURE=1,
because of its use of the end-of-line NetBox version.
This meant that the GitHub CI failed to evaluate the tests,
and so didn't run them.
2025-05-14 09:45:09 +02:00
Minijackson
7c727f9f73
nixos/tests/netbox-upgrade: test the 4.1 -> 4.2 upgrade 2025-05-14 09:45:06 +02:00
Jonas Heinrich
002ebbc4de
oncall: init at 2.1.7; nixos/oncall: init (#388723) 2025-05-13 23:21:54 +02:00
Marcin Serwin
fa148f9b48
nixos/sourcehut: adapt to new versions 2025-05-13 19:53:32 +02:00
OPNA2608
41c8686f60 nixosTests.lomiri-docviewer-app: Fix OCR 2025-05-13 17:49:00 +02:00
OPNA2608
22c53f29b2 nixosTests.lomiri-system-settings: Fix OCR 2025-05-13 17:39:46 +02:00
OPNA2608
ad3c2cb9d1 nixosTests.lomiri-clock-app: Fix OCR 2025-05-13 17:14:50 +02:00
Jörg Thalheim
5adbb5f72a
darling: drop (#405727) 2025-05-13 16:35:40 +02:00
Someone
a59b0f1dfd
nvidia-container-toolkit: minor fixups (#405919) 2025-05-13 13:51:43 +00:00
OPNA2608
6ffec69d67 nixosTests.teleports: Fix OCR 2025-05-13 15:28:43 +02:00
OPNA2608
7de0cd47d7 nixosTests.lomiri-music-app: Fix OCR 2025-05-13 15:28:36 +02:00
OPNA2608
e0c6c758a7 nixosTests.lomiri-mediaplayer-app: Fix OCR 2025-05-13 15:28:31 +02:00
OPNA2608
391862e72c nixosTests.lomiri-gallery-app: Fix OCR 2025-05-13 15:28:21 +02:00
OPNA2608
5e6c4ed8ae nixosTests.lomiri-camera-app: Fix OCR 2025-05-13 15:28:13 +02:00
OPNA2608
0e88d93814 nixosTests.lomiri-calendar-app: Fix OCR 2025-05-13 15:28:06 +02:00
Sandro Jäckel
314cfdddb5
nixos/librenms: seed database in module, not only in test
To properly use librenms and create a user, you need the seeded roles
like admin.
2025-05-13 14:24:27 +02:00
Maximilian Bosch
0be521cb0e
Merge: nixos/nextcloud: use LoadCredential to read services.nextcloud.secretFile (#405970) 2025-05-13 13:45:36 +02:00
Nick Cao
475dd3fe95
nixos/stratis: fix test 2025-05-12 19:39:22 -04:00
Christoph Heiss
0a8bcd4699
nvidia-container-toolkit: add myself as maintainer
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2025-05-12 20:41:31 +02:00
rnhmjoj
13accc23b0
nixos/tests/pdns-recursor: test old-settings 2025-05-12 20:27:05 +02:00
Maciej Krüger
2812ff41ee
netdata: 2.4.0 -> 2.5.1 (#404786) 2025-05-12 17:31:40 +02:00
K900
5b99c79903
nixos/udev: verify udev rules with udevadm (#406284) 2025-05-12 12:35:34 +03:00
Vladimír Čunát
de872c968f
tests/playwright-python: fix text to look for (#405196) 2025-05-12 10:47:31 +02:00
Wolfgang Walther
82e519947f
nixos/pgbackrest: add SFTP support 2025-05-12 09:14:38 +02:00
Wolfgang Walther
d5ddb6116f
nixos/pgbackrest: init module 2025-05-12 09:14:37 +02:00