From bf89edc3afbf2c5db582630c8972005bb4dc5593 Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Thu, 5 Aug 2021 12:25:34 +0000 Subject: [PATCH] (Try)fix system tests by adding an alias interface with the right IP System tests do currently not include testing our monitoringvpn wireguard setup, so let's just add the required IP by an alias to the lo interface. --- nixos/modules/tests/private-storage.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/tests/private-storage.nix b/nixos/modules/tests/private-storage.nix index 7cd0100d..5dd0ddd1 100644 --- a/nixos/modules/tests/private-storage.nix +++ b/nixos/modules/tests/private-storage.nix @@ -310,7 +310,8 @@ in { }; # The issuer metrics should be accessible from the monitoring network. - $issuer->succeed('curl --silent --insecure --fail --output /dev/null https://172.23.23.11/metrics'); + $issuer->execute('ifconfig lo:fauxvpn 172.23.23.2/24'); + $issuer->succeed('curl --silent --insecure --fail --output /dev/null https://172.23.23.2/metrics'); # The issuer metrics should NOT be accessible from any other network. $issuer->fail('curl --silent --insecure --fail --output /dev/null https://localhost/metrics'); -- GitLab