checks: mock self.inputs.self by default
This commit is contained in:
@@ -16,7 +16,6 @@ nixosLib.runTest (
|
|||||||
name = "service-mycelium";
|
name = "service-mycelium";
|
||||||
|
|
||||||
clan = {
|
clan = {
|
||||||
|
|
||||||
test.useContainers = false;
|
test.useContainers = false;
|
||||||
directory = ./.;
|
directory = ./.;
|
||||||
modules."@clan/mycelium" = ../../clanServices/mycelium/default.nix;
|
modules."@clan/mycelium" = ../../clanServices/mycelium/default.nix;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
name = "service-mycelium";
|
name = "service-mycelium";
|
||||||
|
|
||||||
clan = {
|
clan = {
|
||||||
|
|
||||||
test.useContainers = false;
|
test.useContainers = false;
|
||||||
directory = ./.;
|
directory = ./.;
|
||||||
inventory = {
|
inventory = {
|
||||||
|
|||||||
@@ -149,6 +149,14 @@ in
|
|||||||
modules = [
|
modules = [
|
||||||
clan-core.modules.clan.default
|
clan-core.modules.clan.default
|
||||||
{
|
{
|
||||||
|
self = {
|
||||||
|
inputs = {
|
||||||
|
# Simulate flake: 'self.inputs.self'
|
||||||
|
# Needed because local modules are imported from inputs.self
|
||||||
|
self = config;
|
||||||
|
set_inputs_in_tests_fixture_warning = throw "'self.inputs' within test needs to be set manually. Set 'clan.self.inputs' to mock inputs=`{}`";
|
||||||
|
};
|
||||||
|
};
|
||||||
_prefix = [
|
_prefix = [
|
||||||
"checks"
|
"checks"
|
||||||
"<system>"
|
"<system>"
|
||||||
|
|||||||
Reference in New Issue
Block a user