summary refs log tree commit diff
path: root/nixos/tests/all-tests.nix
diff options
context:
space:
mode:
authorCRTified <carl.schneider+github@ruhr-uni-bochum.de>2020-07-01 00:02:56 +0200
committerCRTified <carl.schneider+github@ruhr-uni-bochum.de>2020-07-01 00:08:55 +0200
commitc684398c6afaf90d9dc86466ca36e4ea3263d77f (patch)
tree6f23155192f60b955ab85c436c40e0806039e438 /nixos/tests/all-tests.nix
parentdb5bbef31fa05b9634fa6ea9a5afbea463da88ea (diff)
downloadnixpkgs-c684398c6afaf90d9dc86466ca36e4ea3263d77f.tar
nixpkgs-c684398c6afaf90d9dc86466ca36e4ea3263d77f.tar.gz
nixpkgs-c684398c6afaf90d9dc86466ca36e4ea3263d77f.tar.bz2
nixpkgs-c684398c6afaf90d9dc86466ca36e4ea3263d77f.tar.lz
nixpkgs-c684398c6afaf90d9dc86466ca36e4ea3263d77f.tar.xz
nixpkgs-c684398c6afaf90d9dc86466ca36e4ea3263d77f.tar.zst
nixpkgs-c684398c6afaf90d9dc86466ca36e4ea3263d77f.zip
nixos/system/boot/initrd-openvpn: Add openvpn options for initrd
nixos/tests/initrd-openvpn: Add test for openvpn in the initramfs

The module in this commit adds new options that allows the
integration of an OpenVPN client into the initrd.
This can be used e.g. to remotely unlock LUKS devices.

This commit also adds two tests for `boot.initrd.network.openvpn`.
The first one is a basic test to validate that a failing connection
does not prevent the machine from booting.

The second test validates that this module actually creates a valid
openvpn connection.
For this, it spawns three nodes:

  - The client that uses boot.initrd.network.openvpn
  - An OpenVPN server that acts as gateway and forwards a port
    to the client
  - A node that is external to the OpenVPN network

The client connects to the OpenVPN server and spawns a netcat instance
that echos a value to every client.
Afterwards, the external node checks if it receives this value over the
forwarded port on the OpenVPN gateway.
Diffstat (limited to 'nixos/tests/all-tests.nix')
-rw-r--r--nixos/tests/all-tests.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index debc60a21d0..94fba23675d 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -150,6 +150,7 @@ in
   incron = handleTest ./incron.nix {};
   influxdb = handleTest ./influxdb.nix {};
   initrd-network-ssh = handleTest ./initrd-network-ssh {};
+  initrd-network-openvpn = handleTest ./initrd-network-openvpn {};
   initrdNetwork = handleTest ./initrd-network.nix {};
   installer = handleTest ./installer.nix {};
   iodine = handleTest ./iodine.nix {};