tests/clightning-plugins: enable active plugin test for trustedcoin

This commit is contained in:
Erik Arvstedt 2023-06-25 11:08:56 +02:00
parent 57455eb897
commit 7640c69d79
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -45,12 +45,16 @@ let
services.clightning.extraConfig = mkIf config.test.noConnections "disable-dns";
test.data.clightning-plugins = let
plugins = config.services.clightning.plugins;
removed = [ "commando" "trustedcoin" ];
removed = [
# Only defined via `obsolete-options.nix`
"commando"
];
available = subtractLists removed (builtins.attrNames plugins);
enabled = builtins.filter (plugin: plugins.${plugin}.enable) available;
nbPkgs = config.nix-bitcoin.pkgs;
pluginPkgs = nbPkgs.clightning-plugins // {
clboss.path = "${plugins.clboss.package}/bin/clboss";
trustedcoin.path = "${plugins.trustedcoin.package}/bin/trustedcoin";
};
in map (plugin: pluginPkgs.${plugin}.path) enabled;