Commit Graph

25 Commits

Author SHA1 Message Date
southerntofu 66332ae7b1 Update forgehook tests for new folder hierarchy 2022-02-24 00:13:28 +01:00
southerntofu e6830b3eed Rename spec/ submodule to specs 2022-02-23 23:51:23 +01:00
southerntofu f638f402c5 Update forgecheck (CLI) tests 2022-02-23 23:38:16 +01:00
southerntofu ebaacae60d The big change: split docs/tests into subfolder
This repo will become the main repository for all forgesuite tests
2022-02-23 22:47:17 +01:00
southerntofu 2f3d4dd03e Remove TODOs that were freshly implemented/fixed
Add TODO section with some stuff todo
2022-02-22 19:02:24 +01:00
southerntofu 88a3c6100c Allow to run whck tests from endpoints.php repository (or anything with a whck submodule) 2022-02-22 18:59:34 +01:00
southerntofu e6dddb240e test_web.sh: Use bin/cli from whck submodule when direct path not passed as $2 2022-02-22 18:58:35 +01:00
southerntofu 92bfbff77e Remove some old stuff from README
Leftover from copypasta
2022-02-22 18:00:30 +01:00
southerntofu 39fbf8eea7 A more complete README. Setup section still missing
Details about conventions for CLI (whck) and WWW (endpoints.php) validators.
Instructions to run the test suite
2022-02-22 17:50:53 +01:00
southerntofu 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
southerntofu 9fca3d5736 Add better testing for web endpoints 2022-02-21 00:40:25 +01:00
southerntofu 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
southerntofu 9025ef5eef Don't error for stuff that should be allowed to fail (checking missing path) 2022-02-21 00:38:17 +01:00
southerntofu 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
southerntofu 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
southerntofu 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
southerntofu 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
southerntofu 9b18c0e162 Be more flexible about paths to call the test suite 2022-02-20 20:15:38 +01:00
southerntofu 71804c4b3a Test webhook endpoint with whck 2022-02-20 17:33:36 +01:00
southerntofu 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
southerntofu a72ceda21c Mock notify always succeeds 2020-10-03 12:54:08 -04:00
southerntofu b01656134c Sleep a while when request fails 2020-09-30 10:22:58 -04:00
southerntofu 304fd9429d Update frontmatter 2020-09-30 10:15:25 -04:00
southerntofu 1693ec91b5 Load webhook template from bats test dir 2020-09-30 09:10:49 -04:00
southerntofu e81a3b4b25 First commit 2020-09-29 12:37:55 +02:00