Commit Graph

305 Commits

Author SHA1 Message Date
13a6386004 add integration test for webui 2023-08-24 14:09:19 +02:00
b16f314c80 clan-config: add option --quiet
All checks were successful
build / test (pull_request) Successful in 25s
2023-08-23 12:25:02 +02:00
999fbe0d89 clan-config: add readme
Some checks failed
build / test (pull_request) Failing after 24s
Also add capability of reading an option value
2023-08-23 01:01:07 +02:00
780fd881c3 clan-config: fix tests 2023-08-22 21:17:47 +00:00
48686591d8 clan-config: improve and add flake-parts module for clan-config 2023-08-22 21:17:47 +00:00
52d6798315 clan-config: stop using jsonschema at all for CLI
All checks were successful
build / test (pull_request) Successful in 19s
- instead use options.json coming from nixosOptionsDoc
2023-08-15 15:48:17 +02:00
348e503789 clan-config: get rid of jsonschema dependency
All checks were successful
build / test (pull_request) Successful in 27s
2023-08-15 13:29:48 +02:00
51f40a4f09 test_update_cli: also test --help
All checks were successful
build / test (pull_request) Successful in 20s
2023-08-11 17:11:47 +02:00
a096d8ddcc clan-cli: add update command
All checks were successful
build / test (pull_request) Successful in 28s
2023-08-11 16:10:25 +02:00
c9b77e5927 clan-cli/tests/clan_flake: add flake.nix 2023-08-11 16:10:12 +02:00
8bf809d0ec clan-cli/sshd: fix pytest warnings 2023-08-11 16:10:12 +02:00
2a31b1d65b add host_group fixture 2023-08-11 16:10:12 +02:00
b3a665cb19 clan-cli/ssh: rename Group -> HostGroup 2023-08-11 16:10:12 +02:00
0a9b914ad5 clan-config: improve jsonschema arg parsing
All checks were successful
build / test (pull_request) Successful in 21s
- output json to stdout after success
- expect args in the style: `foo.bar = baz`
- handle different input types
- cast input types on best effort basis
- throw meaningful errors
2023-08-11 00:05:52 +02:00
d04278e9b1 clan-config: add tests 2023-08-10 21:17:17 +02:00
2fa0c38625 Merge pull request 'add test for remote ssh commands' (#115) from Mic92-mic92 into main
All checks were successful
build / test (push) Successful in 29s
2023-08-10 09:05:48 +00:00
a17baa4861 add test for remote ssh commands
All checks were successful
build / test (pull_request) Successful in 28s
2023-08-10 11:05:05 +02:00
dd9f1820a5 Merge pull request 'add test for local commands' (#114) from Mic92-mic92 into main
All checks were successful
build / test (push) Successful in 23s
2023-08-09 14:24:06 +00:00
f8f9cd457a add test for local commands
All checks were successful
build / test (pull_request) Successful in 21s
2023-08-09 16:23:15 +02:00
7262208a4c clanLib.jsonschema: move tests from pkgs/clan-cli
All checks were successful
build / test (pull_request) Successful in 26s
2023-08-09 16:05:33 +02:00
9438a9eb5f clan-config: move jsonschema lib to clanLib 2023-08-09 16:05:33 +02:00
d977499ffe rename cli tests to have a common suffix
All checks were successful
build / test (pull_request) Successful in 25s
rename test_import_sops -> test_import_sops
2023-08-09 15:54:27 +02:00
8fea55da32 move ssh cli to cli submodule
Some checks failed
build / test (pull_request) Failing after 23s
2023-08-09 15:46:34 +02:00
daf1058312 clan-cli: fix secrets test
All checks were successful
build / test (pull_request) Successful in 37s
2023-08-09 10:50:48 +02:00
68905fc233 don't add user to a secret if they already can access the secret
Some checks failed
build / test (pull_request) Failing after 21s
If the user is part of a group we don't need to add them explicitly
2023-08-09 10:17:30 +02:00
2988532909 allow to set groups/admins/users when setting secrets
All checks were successful
build / test (pull_request) Successful in 20s
2023-08-08 19:40:35 +02:00
6f9aaef56a add option to import sops secrets with groups,users,machines,prefixes
All checks were successful
build / test (pull_request) Successful in 25s
2023-08-08 18:46:37 +02:00
d8c2df2e72 add test for import-sops command
All checks were successful
build / test (pull_request) Successful in 24s
2023-08-08 16:28:38 +02:00
0533948085 fix rotating keys with sops
All checks were successful
build / test (push) Successful in 8s
2023-08-08 13:44:15 +02:00
b88ac7a2bf clan-config: init
All checks were successful
build / test (push) Successful in 20s
- nixos-modules to jsonschema converter
- nix unit testing via adisbladis/nix-unit
- clan config: configuration CLI for nixos-modules
2023-08-02 20:04:16 +02:00
dab483339a test list/remove secret 2023-08-02 12:00:32 +00:00
658c76336f add secrets integration
clan-cli: also depend on age for secrets
2023-08-02 09:19:14 +00:00
6e7c34cd5c tests/clan-flake: yield flake path rather than homedir
All checks were successful
build / test (push) Successful in 13s
2023-07-28 15:01:37 +02:00
bc7dada58c tests/clan_flake: fix fixture name
All checks were successful
build / test (push) Successful in 12s
2023-07-28 13:47:32 +02:00
29c711db30 add clan_flake fixture to setup a temporary clan
All checks were successful
build / test (push) Successful in 12s
2023-07-28 12:54:49 +02:00
88a2c2656a get_clan_flake_toplevel: fix check
All checks were successful
build / test (push) Successful in 12s
2023-07-28 12:36:01 +02:00
5e5fbfcf06 write test for get_clan_flake_toplevel 2023-07-28 10:22:25 +00:00
df6e94b20e move environment to helpers module
This fixes registering pytest plugins
2023-07-28 10:22:25 +00:00
b4ba9c70cd move moc_env to module 2023-07-26 15:22:52 +02:00
09cc79867d cli: get optional deps from our own flake
All checks were successful
build / test (push) Successful in 10s
This ensures we actually test if all those binaries build
2023-07-26 09:31:49 +02:00
83005a6795 cli: use nixpkgs in nix shell in pure mode
This avoids nixpkgs config and overlay provided by the user.
Also enables caching in nix.
2023-07-26 09:31:49 +02:00
9aa75336b7 cli: use nix_shell also in ssh.py 2023-07-26 06:53:33 +00:00
a6e8e08dec add module to generate zerotier configuration 2023-07-25 19:13:24 +02:00
1183ac9618 clan-cli: format
All checks were successful
build / test (push) Successful in 14s
2023-07-25 15:43:45 +02:00
310bdacb9d clan-cli/ssh: add tests + fixes 2023-07-25 15:16:05 +02:00
a3bcb93f2f clan-cli: split out ssh subcommand, add more tests 2023-07-24 21:15:39 +02:00
0b654c7434 apply treefmt
All checks were successful
build / test (push) Successful in 11s
2023-07-21 14:11:46 +02:00
DavHau
7223b25ac6 clan-cli: fix tests
Some checks failed
build / test (push) Failing after 4s
2023-07-21 14:07:38 +02:00
b7cf89dba8 clan-cli: add missing typing 2023-07-21 13:50:46 +02:00
DavHau
e806b5549d clan-cli: enable mypy for tests
Some checks failed
build / test (push) Failing after 8s
2023-07-21 13:43:29 +02:00
7f937077cf clan-cli/tests: fixup imports 2023-07-21 13:30:49 +02:00
3ce01871e5 fix black and ruff checks 2023-07-21 13:03:51 +02:00
926de547e2 clan-cli/tests: reformat 2023-07-21 12:48:26 +02:00
DavHau
4c4ff01b64 clan-cli: write some unit tests 2023-07-21 11:19:03 +02:00
DavHau
9906d12384 clan-cli: initialize python project from template
clan-cli: remove unnecessary unit test file

clan-cli: fix shell.nix too stateful

clan-cli: remove conftest.py

clan-cli: fix flake-module.nix
2023-07-21 11:19:03 +02:00