Commit Graph

23 Commits

Author SHA1 Message Date
casperklein c4c3c3065a add test: check if cronfile has a valid syntax
Signed-off-by: casperklein <casperklein@users.noreply.github.com>
2025-04-04 19:16:10 +02:00
yubiuser 4abe9094c6 PEP8 requires all lowser case
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-18 23:52:37 +01:00
yubiuser 0020492a5b Add test to output FTL's version information
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-18 23:43:24 +01:00
Adam Warner af8863a156 Clean Shutdown test: Remove check for the "Shutting down..." line in FTL log as this is now only printed when debug logging is on
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2024-09-13 18:36:47 +01:00
Christian König 99f459e30f Using grep instead of tailing FTL.log as func.stdout only captures a few lines
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-06-30 23:30:22 +02:00
Adam Warner 24006c7a00 Address comments.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2024-03-11 18:14:26 +00:00
Christian König f31b4694c8 Delimter for array type FTLCONF_ values is ;
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-29 20:55:41 +00:00
Adam Warner b8a717f925 Re-do tests to account for FTLCONF_ changes. Add new tests for web password
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-22 17:42:29 +01:00
Adam Warner 374f6f2537 Add in a test to kill start.sh and then ensure that pihole-FTL is gracefully exited.
We add in some sleeps to ensure that the log file is being written to before we check it
Log entry tests are based on many different passes of running this locally with all sorts of timeouts and sleeps, this seems to be the most consistent

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 23:31:39 +01:00
Adam Warner b41d50b94f Remove volume mount from tests, this causes issues with gravity not being able to read an adlist file symlinked to /dev/null
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 22:57:35 +01:00
Adam Warner b56b8d03c4 black formatted some tests
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 21:18:10 +01:00
Adam Warner f09b0d68bb Add tests for UID/GID switching
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-26 08:31:29 +01:00
Adam Warner 4c8f4613dd test names should match the regular expression ^[a-z_][a-z0-9_]*$. Apparently
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-24 18:37:46 +01:00
Adam Warner 3208c4042d Strip out no longer relevant tests/test fixtures (persist_docker, for example has not been used in a long time) , begin building test library from ground up.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-24 18:11:33 +01:00
Nathan Gaberel 54d179c24b Bind lighttpd to $WEB_BIND_ADDR by default.
Signed-off-by: Nathan Gaberel <nathan@gnab.fr>
2023-01-21 18:06:05 -08:00
RD WebDesign 8872c2b393 Fix config filename on the test
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-15 17:50:28 -03:00
Daniel 4da66313f4 Remove old test dependencies, updated ones still being used. Introduce Black formatter 2022-09-17 04:28:01 +00:00
Adam Warner 97f81bae21 Shuffle some files around, change dependencies to make output clearer, change ::: for [i] to further clarify output.
Allow for  PH_VERBOSE to set -x on all scripts that it would be useful for

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2022-08-29 13:17:22 +01:00
Adam Warner 473117e8a8 Rename start and gravity scripts to match their service names
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2022-08-29 11:50:19 +01:00
Adam Warner e6d4c3091f Move all scripts to /usr/local/bin to simplify dockerfile
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2022-08-29 11:48:07 +01:00
Adam Warner cb38190b50 FTLCONF_REPLY_ADDR4/6 are now deprecated. Use FTLCONF_LOCAL_IPV4/6 instead
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2022-08-22 21:42:29 +01:00
Adam Warner e75e3800a2 make sure that setup_FTL_ProcessDNSSettings is the last thing called, else user set environment variables will be overridden when it sources setupVars.conf
Some additional tweaks
2022-07-19 18:22:49 +01:00
Adam Warner 1d59f257ff Reorganise the repository
Simplify the test suite now that we use buildx to build the final image
Remove tests that were never run/skipped in previous runs (same number of tests passing as were before)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2022-07-15 17:43:09 +01:00