From 2fc2e073efd314f76790524bf63b1b65a0463fc0 Mon Sep 17 00:00:00 2001 From: David Niehues <7667041+DavidNiehues@users.noreply.github.com> Date: Thu, 21 Aug 2025 13:58:34 +0200 Subject: [PATCH] chore(tests): Configure explicit endpoints on all wireguard interfaces for the integration tests --- tests/integration/rpsc-test.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/rpsc-test.nix b/tests/integration/rpsc-test.nix index 715c092..e835837 100644 --- a/tests/integration/rpsc-test.nix +++ b/tests/integration/rpsc-test.nix @@ -182,12 +182,14 @@ in { inherit (staticConfig.peerB) publicKey; allowedIPs = [ "${staticConfig.peerB.innerIp}/32" ]; + endpoint = "peerB:${builtins.toString wgPort}"; presharedKey = "AR/yvSvMAzW6eS27PsRHUMWwC8cLhaD96t42cysxrb0="; } # NOTE: We use mismatching preshared keys on purpose to make the wireguard key exchange fail until the rosenpass key exchange succeeded. ] ++ (lib.optional multiPeer { inherit (staticConfig.peerC) publicKey; allowedIPs = [ "${staticConfig.peerC.innerIp}/32" ]; + endpoint = "peerC:${builtins.toString wgPort}"; presharedKey = "LfWvJCN8h7NhS+JWRG7GMIY20JxUV4WUs7MJ45ZGoCE="; } # NOTE: We use mismatching preshared keys on purpose to make the wireguard key exchange fail until the rosenpass key exchange succeeded. ); @@ -235,6 +237,7 @@ in ++ (lib.optional multiPeer { inherit (staticConfig.peerC) publicKey; allowedIPs = [ "${staticConfig.peerC.innerIp}/32" ]; + endpoint = "peerC:${builtins.toString wgPort}"; presharedKey = "GsYTUd/4Ph7wMy5r+W1no9yGe0UeZlmCPeiyu4tb6yM="; # NOTE: We use mismatching preshared keys on purpose to make the wireguard key exchange fail until the rosenpass key exchange succeeded. });