Commit Graph

35 Commits

Author SHA1 Message Date
Jérémy Lecour 5cbc2cbf42 Split client and server parts 2022-04-03 11:28:59 +02:00
Jérémy Lecour 960dd97d68 Tell sed to follow symlinks 2022-03-27 10:14:07 +02:00
Jérémy Lecour a658e2aa7f use new firewall file path 2022-03-18 15:23:33 +01:00
Jérémy Lecour c38ec89010 Add tests for bkctld-archive 2021-06-29 17:25:35 +02:00
Jérémy Lecour a50991226c bkctld-rename: rename a jail and all its incs and configuration… 2021-06-29 17:25:35 +02:00
Jérémy Lecour 21f4544016 Install default check_policy file on init 2021-02-22 09:36:53 +01:00
Jérémy Lecour eecd105d33 improve readability 2021-02-08 17:20:56 +01:00
Jérémy Lecour a41eb2a218 test: bkctld check-incs shouldn't fail without incs_policy file
Currently it does, because we "stat" a blank file (issue #43).
2021-02-08 14:16:08 +01:00
Jérémy Lecour b7cddcac27 tests: clean jail configuration after each test 2021-02-08 14:13:10 +01:00
Jérémy Lecour 1a52f012a6 bkctld: new inc-lock and inc-unlock command 2020-11-28 10:46:57 +01:00
Jérémy Lecour a7dc09bb46 New test : All incs are removed by 'rm' with empty inc policy 2020-11-13 15:47:06 +01:00
Jérémy Lecour 76a298c042 bkctld-rm: delete empty jails in incs directory 2020-11-13 15:33:18 +01:00
Jérémy Lecour f9018738b9 tests: use FORCE flag to remove jail in tests 2020-11-13 15:32:19 +01:00
Jérémy Lecour 0ad1e8d342 Split check into check-jails and check-setup
bkctld-check-setup checks if the partition is mounted and writable, if 
firewall is configured and if all jails are started
2020-07-10 14:34:06 +02:00
Jérémy Lecour 1cbb982d02 extract functions in test helpers 2020-04-25 10:29:00 +02:00
Jérémy Lecour 18e5173600 remove obsolete test 2020-04-19 11:24:13 +02:00
Jérémy Lecour f7e8324ba5 Embed check-incs and check-last-incs in bkctld 2020-04-18 10:29:21 +02:00
Jérémy Lecour e14ca8dff3 Bad firewall now returns a simple Warning 2020-04-11 08:53:41 +02:00
Jérémy Lecour e1208ed2b8 shellcheck improvements for bats tests 2020-04-08 16:49:27 +02:00
Jérémy Lecour e5997400cd bkctld-check: verify that firewall rules are sourced 2020-04-08 12:26:59 +02:00
Jérémy Lecour 5a90ae8a16 bkctld-ip: fail when trying to add an IP when there is no AllowUsers 2020-04-08 00:31:55 +02:00
Jérémy Lecour 86111acfea tests clarifications 2020-04-05 11:53:44 +02:00
Jérémy Lecour 5937a2d7aa Split tests in a few files and add many tests for incs and checks 2020-04-05 11:42:11 +02:00
Jérémy Lecour f6665c646b tests: use test helpers + add many test cases 2020-04-05 01:32:39 +02:00
Jérémy Lecour 4bf1ccecae Add test for incs_policy config file 2020-04-02 18:28:15 +02:00
Jérémy Lecour 4ef7ab2dde Fix tests 2020-04-02 14:51:09 +02:00
Jérémy Lecour 4c2480906f adaptation des scripts de test 2020-04-02 13:32:14 +02:00
Victor LABORIE b1905eeffe Rewrite bats test 2019-01-08 11:01:17 +01:00
Victor LABORIE ce674490f7 Add bats test for generate jails with different times 2018-05-30 18:33:36 +02:00
Victor LABORIE dcba6d5634 Merge check_nrpe into bkctld check subcommand 2018-05-30 16:39:26 +02:00
Victor LABORIE d27bbbc0f5 Rewrite bats tests 2018-03-28 15:11:49 +02:00
Victor LABORIE d430740383 Add bats test for NRPE check 2018-03-15 12:41:54 +01:00
Victor LABORIE 8bfa8e18dd Add basics tests with bats 2018-03-05 16:16:18 +01:00
Victor LABORIE 506b1e94f9 Use run command for bats test 2018-03-05 15:43:36 +01:00
Victor LABORIE 72993de1c2 Use bats for unit test with Vagrant 2018-03-05 15:29:08 +01:00