New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/wireguard: init wg-quick #74504
Conversation
@GrahamcOfBorg test wg-quick |
nixos/tests/wireguard/default.nix
Outdated
ipv6.addresses = lib.singleton { | ||
address = "fd00::1"; | ||
prefixLength = 64; | ||
peer0 = { lib, ... }: lib.attrsets.recursiveUpdate ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When updating nixos configurations, it's generally safer to use lib.mkMerge
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I'm curious what the difference is though? I couldn't find any documentation for lib.mkMerge
in the nixpkgs manual...
Thanks @Ma27 for the review :) |
@GrahamcOfBorg test wg-quick |
@Ma27 Is there anything more to do here? |
- Duplicate and adapt the existing default wireguard test for wg-quick - Pull common setup code out into a seperate file
spotted some issues after I asked 馃榿
rebased on master and made the above changes. I think this should be good to go now 馃檪 |
Motivation for this change
While updating
wireguard-tools
in #74347 I missed a new dependency inwg-quick
, and my brief testing ofwg-quick
(executing thewg-quick
binary with no arguments) failed to detect the oversight. Once merged this broke thewg-quick
module (also on stable! 馃槩).This change adds a simple test for the
wg-quick
module to thetests/wireguard
folder, that should hopefully avoid similar situations in the future.Changes:
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @elseym @ericsagnes @Mic92 @globin @Ma27 @iclanzan