diff --git a/docs/site/guides/contributing/testing.md b/docs/site/guides/contributing/testing.md index f4b6c39c9..7410fd62d 100644 --- a/docs/site/guides/contributing/testing.md +++ b/docs/site/guides/contributing/testing.md @@ -107,11 +107,13 @@ nix run .#checks.x86_64-linux.service-dummy-test #### Common issues If `update-vars` fails, you may need to ensure that: + - **`clan.directory` is set correctly**: It should point to the directory where you want vars to be generated (typically `clan.directory = ./.;` in your test definition) - **Your test defines machines**: Machines must be defined in `clan.inventory.machines` or through the inventory system - **Machine definitions are complete**: Each machine should have the necessary service configuration that defines the vars generators **If vars are not found during test execution:** + - Verify that `clan.directory` points to the same location where you ran `update-vars` - Check that the `vars/` and `sops/` directories exist in that location - Ensure the generated files match the machines and generators defined in your test