23 Commits
Author SHA1 Message Date
Seth House 36057afa5a Add unit test for jq filters that contain a pipe character 2015-09-30 00:22:55 -06:00
Seth House e47201d189 Run shellcheck in addition to the tests 2015-09-20 14:59:22 -06:00
Seth House 93c3f6e0cd Add integration tests for pagination following on _get function 2015-08-29 01:43:55 -06:00
Seth House 2e94400633 Add function to mimic GitHub Link pagination header responses 2015-08-29 00:27:06 -06:00
Seth House f5c6c9e5d2 Fix trap'd exit status code 2015-08-28 23:31:10 -06:00
Seth House 89715d415f Add placeholder for GET requests 2015-08-28 22:07:01 -06:00
Seth House af90039620 Add test for 500 responses 2015-08-28 21:51:33 -06:00
Seth House f07812cf63 Allow special URLs for specific tests 2015-08-28 21:51:15 -06:00
Seth House 4d9ba6ac44 Add integration tests 2015-08-28 21:49:15 -06:00
Seth House b74257cc83 Refactored unit_tests into a reusable test runner function 2015-08-28 20:57:37 -06:00
Seth House 479a76298a Add mock server script that pretends to be GitHub for integration tests 2015-08-28 20:44:39 -06:00
Seth House 0e6579853e Rename octokit.sh to ok.sh
Only officially supported libs should use the 'Octokit' name.
2015-06-11 09:40:27 -06:00
Seth House bfe7676570 Fix bad urlencoded test
We can't rely on the output order here so perform a few searches
instead.
2015-06-10 23:04:04 -06:00
Seth House efab3940ea Fix bad test harness
Not sure how I sleep-walked through this omission...
2015-06-10 22:40:03 -06:00
Seth House 8b543146d4 Add unit test for _format_urlencode 2015-06-10 22:23:50 -06:00
Seth House f6fb5d0472 Fix json output test for unsorted array output
Differ awk implementations will loop through env vars in a different
order so we can't count on that order in this test.
2015-04-11 02:59:50 -06:00
Seth House ae0e930af5 Fix _format_json test that uses jq
Object keys are not getting sorted as expected so let's do it ourselves.
2015-04-11 02:44:07 -06:00
Seth House 2b3011135a Added script to run all tests 2015-04-08 00:30:32 -06:00
Seth House 73348d5675 Added test for deterministically ordered response headers 2015-04-05 12:28:55 -06:00
Seth House d1c681dfce Added test for _filter_json() argument handling 2015-04-05 12:28:27 -06:00
Seth House adc2336c13 Added test for _format_json() when validating result with jq 2015-04-05 11:10:43 -06:00
Seth House 3bc639be3e Added unit test for _format_json() 2015-04-05 11:08:08 -06:00
Seth House e42e4e964c Added unit test stub file 2015-04-05 11:06:56 -06:00