Fix wrong unit tests
This commit is contained in:
@@ -38,8 +38,5 @@ eval {
|
|||||||
rest
|
rest
|
||||||
# implementation
|
# implementation
|
||||||
./module.nix
|
./module.nix
|
||||||
|
|
||||||
# Explicit output, usually defined by flake-parts
|
|
||||||
{ options.nixosConfigurations = lib.mkOption { type = lib.types.raw; }; }
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,8 +17,10 @@
|
|||||||
initialized = inputs.nixpkgs.legacyPackages.x86_64-linux.runCommand "minimal-clan-flake" { } ''
|
initialized = inputs.nixpkgs.legacyPackages.x86_64-linux.runCommand "minimal-clan-flake" { } ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -r ${path}/* $out
|
cp -r ${path}/* $out
|
||||||
mkdir -p $out/machines/foo
|
rm $out/inventory.json
|
||||||
echo '{ "nixpkgs": { "hostPlatform": "x86_64-linux" } }' > $out/machines/foo/settings.json
|
|
||||||
|
# TODO: Instead create a machine by calling the API, this wont break in future tests and is much closer to what the user performs
|
||||||
|
echo '{ "machines": { "foo": { "name": "foo" } } }' > $out/inventory.json
|
||||||
'';
|
'';
|
||||||
evaled = (import "${initialized}/flake.nix").outputs {
|
evaled = (import "${initialized}/flake.nix").outputs {
|
||||||
self = evaled // {
|
self = evaled // {
|
||||||
|
|||||||
Reference in New Issue
Block a user