Commit Graph

16 Commits

Author SHA1 Message Date
d0570c1edb Move test.sh to bin/ and allow test_cli.sh to take absolute path to whck 2022-02-21 15:02:01 +01:00
9fca3d5736 Add better testing for web endpoints 2022-02-21 00:40:25 +01:00
f0cd857305 Rename test_tests.sh to test_tests_cli.sh
Also allow it to be run from its folder (by looking for ../bin/cli)
2022-02-21 00:39:21 +01:00
9025ef5eef Don't error for stuff that should be allowed to fail (checking missing path) 2022-02-21 00:38:17 +01:00
eab07ba4d8 Prevent some race condition making test fail sometime
Saving the webhook to /tmp was sometimes not finished before curl was caused,
resulting in an empty payload -> validation error
Passing via STDIN could be an alternative...
2022-02-21 00:27:26 +01:00
9f17e49114 Move cli building script to bin/
Add convenience try for pwd as repo to test when calling test_tests.sh without arguments
2022-02-20 21:48:05 +01:00
d07f677eab Add specification/testing info about the CLI interface for whck
Add a skeleton for web spec/testing info and for setup documentation
2022-02-20 20:44:50 +01:00
24bfd29c0f Add test_tests.sh which runs tests from various setups
Checks that absolute and relative links work
Fix an error in test_cli.sh which produced the error:
ERROR test_cli.sh failed from spec/tests folder with implicit ../../cli
2022-02-20 20:31:33 +01:00
9b18c0e162 Be more flexible about paths to call the test suite 2022-02-20 20:15:38 +01:00
71804c4b3a Test webhook endpoint with whck 2022-02-20 17:33:36 +01:00
7eb833a59e WIP: Include tests for CLI whck
Web tests for endpoints.php are probably broken at this point. Will be fixed in a later commit.
2022-02-19 00:03:02 +01:00
a72ceda21c Mock notify always succeeds 2020-10-03 12:54:08 -04:00
b01656134c Sleep a while when request fails 2020-09-30 10:22:58 -04:00
304fd9429d Update frontmatter 2020-09-30 10:15:25 -04:00
1693ec91b5 Load webhook template from bats test dir 2020-09-30 09:10:49 -04:00
e81a3b4b25 First commit 2020-09-29 12:37:55 +02:00