Fossil

History of test/json.test of 5ad7038fa33a7416
Login

History of test/json.test of 5ad7038fa33a7416

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file test/json.test at check-in 5ad7038fa33a7416

2025-10-03
17:31
Fix spelling errors found by the Debian QA tools. ... (file: [df2765c633] check-in: [7db623e5eb] user: danield branch: trunk, size: 29659)
2024-04-25
13:34
Fix json-cap-POSTenv-name, json-cap-POSTenv-notsetup tests ... (file: [4dbfd9bfa3] check-in: [17c01c549e] user: juef branch: branch-2.24, size: 29661)
2024-01-10
09:39
No need to re-open repository in json tests. ... (file: [6328ffc677] check-in: [41c35fb6e2] user: preben branch: testing-improvements, size: 29660)
08:29
Merge in trunk to include recent test changes. ... (file: [8de9cbb61b] check-in: [383087bfab] user: preben branch: testing-improvements, size: 29684)
2023-12-11
20:43
Set FOSSIL_USER in json tests to sort user related output consistently if run as a different user. Eases test result comparisons. ... (file: [ae4d37a02b] check-in: [68ae97d456] user: preben branch: testing-improvements, size: 29686)
2023-11-26
16:48
Fix json tests that no longer reflects default capabilities for anonymous. ... (file: [76bb839ddc] check-in: [9ba74ae04e] user: preben branch: test-fixes-2.24, size: 29373)
2021-04-02
03:56
Improve an error message in the 'json' test file. ... (file: [ef5f080b4c] check-in: [e4f854db78] user: mistachkin branch: trunk, size: 29375)
03:38
Fixes to the 'json' test file. ... (file: [f3da057299] check-in: [e9def3b785] user: mistachkin branch: trunk, size: 29322)
2020-06-14
15:28
Robustify a few things in the JSON subsystem integration and get JSON tests passing. ... (file: [a8efcb06d1] check-in: [a588e55fe7] user: mistachkin branch: trunk, size: 29310)
2020-06-13
01:25
Remove superfluous 'then' from the test suite. Also, enhance -verbose when used for merge tests. ... (file: [8a5df3803e] check-in: [3c7825278b] user: mistachkin branch: trunk, size: 28364)
2020-06-12
23:10
Another test correction. ... (file: [92f3c204f4] check-in: [051428f439] user: mistachkin branch: jsonTestsPass, size: 29315)
22:25
Missed the other one. ... (file: [d10022ad97] check-in: [8ca633e0ae] user: mistachkin branch: jsonTestsPass, size: 29151)
22:08
Attempt to make sure the 'SSH_CONNECTION' environment variable is ignored during the JSON tests. ... (file: [136d0ee872] check-in: [51792cf5c7] user: mistachkin branch: jsonTestsPass, size: 29132)
21:07
Handle missing 'json' Tcl package gracefully. ... (file: [7f1780f858] check-in: [e3297200e5] user: mistachkin branch: jsonTestsPass, size: 29113)
2020-06-11
23:06
More JSON test adjustments. ... (file: [162b36981e] check-in: [ad0679cabf] user: mistachkin branch: jsonTestsPass, size: 29009)
22:38
Experimental changes to get JSON tests passing. ... (file: [57162b7db6] check-in: [2e4238368e] user: mistachkin branch: jsonTestsPass, size: 28628)
2017-03-16
23:20
Clean up JSON tests and tweak use of catch in the test framework. ... (file: [6f77d48c30] check-in: [9e5f06deae] user: rberteig branch: trunk, size: 28369)
00:38
In json.test, look for the empty file artifact using its new SHA3 hash explicitly. This allows json-artifact-file and related tests to pass, and eliminates a cascade of false failures that had crashed the test harness. ... (file: [b0347ec874] check-in: [5ad7038fa3] user: rberteig branch: trunk, size: 27541)
2017-03-08
20:05
Fixed isses in the JSON and wiki test cases exposed by regressions in fossil-2.0. ... (file: [e75cac26fb] check-in: [5ee57d84b0] user: rberteig branch: rkb-2.0-tests, size: 27405)
2016-10-05
08:10
The changes in [b045d0774ed48936] are too far reaching. Instead, add a -keepNewline option and use it where appropriate. ... (file: [cbf45320d2] check-in: [561402f2e0] user: mistachkin branch: trunk, size: 27401)
2016-03-03
18:49
Centralize early-return handling from the tests, always calling the test cleanup (which is harmless if not needed). ... (file: [65f8333164] check-in: [b01a51f43a] user: mistachkin branch: testerCleanup, size: 27392)
2016-03-02
20:43
Rename the test suite procedure 'repo_init' to 'test_setup'. ... (file: [76e2e8d9a1] check-in: [413921cca0] user: mistachkin branch: testerCleanup, size: 27354)
06:45
More work... ... (file: [e4b63adf6f] check-in: [29f0328cd9] user: mistachkin branch: testerCleanup, size: 27352)
2016-02-07
23:22
Further enhance the 'sqlite3' command and make use of it in the json test. ... (file: [3c1f84db38] check-in: [f9c14d7d6d] user: mistachkin branch: trunk, size: 27257)
23:22
Make the read-only json test work on Windows. ... (file: [a0924ac976] check-in: [938122da85] user: mistachkin branch: trunk, size: 27291)
22:55
Use the 'hasfeature' TH1 command to test if JSON was included at compile-time. ... (file: [fc142c03f3] check-in: [09a46c2873] user: mistachkin branch: trunk, size: 27233)
04:15
Defer requiring json loading until after it is determined that fossil json works. ... (file: [f76fd35ccd] check-in: [5d700c7d85] user: andybradford branch: trunk, size: 27248)
2016-02-06
22:41
Fixed json.test problem with fossil configured without --json. Removed the knownBug marker from the test json-wiki-diff-diff since [08197f96] fixed the bug it identified. ... (file: [5c790e8202] check-in: [c35152a5d4] user: rberteig branch: trunk, size: 27248)
2016-02-02
02:32
Minor tweaks in a few test cases, placeholder for cases to exercise documented error codes. ... (file: [23361eb3a8] check-in: [9f45c8b6e0] user: rberteig branch: rberteig-json-test, size: 27051)
2016-01-30
01:45
Cover simple case of /json/user/save to create a new user. Consider covering various other ways that endpoint can be used, as well as CLI vs GET and POST. Current case is CLI based. This case completes coverage of the basic features provided by all documented JSON endpoints. ... (file: [3c14e7a5e0] check-in: [1571e4c278] user: rberteig branch: rberteig-json-test, size: 21623)
01:30
Add support for POST in JSON over HTTP. Test /json/cap with various ways of delivering an authToken to cover the rest of the Authentication category basic functionality. NOTE that supplying the authToken in the POSTed JSON request envelope does not appear to work. Passing it in a cookie or in a GET parameter does work as expected. ... (file: [a6a140ed59] check-in: [479aadb1d2] user: rberteig branch: rberteig-json-test, size: 21223)
00:43
Added test case for /json/diff/UUID_V1/UUID_V2. Note that this case passes and clearly does diff the versions in the expected order. ... (file: [d568ed2c1c] check-in: [f28e771369] user: rberteig branch: rberteig-json-test, size: 19333)
2016-01-29
23:46
Add test case for issue with a read-only fossil repository causing confusing results for the JSON API over HTTP. ... (file: [d2de8ad023] check-in: [dc042c6a62] user: rberteig branch: rberteig-json-test, size: 18574)
23:40
Add cookie support to fossil_http_json, as well as extra args passed through to fossil_maybe_answer so -expectError can be used. Tweak some comments. Note doc revision eliminating /json/timeline/ci, which clears a previous knownBug. Cache a usable login cookie for both anonymous and user U1 for later use. ... (file: [3ec743f624] check-in: [a9edb60a5f] user: rberteig branch: rberteig-json-test, size: 17396)
02:37
Added more coverage of /json, leaving /json/login, /json/diff, and /json/user/save uncovered, and finding surprises with /json/wiki/diff, /json/timeline/ci, and /json/tag/cancel. All implemented coverage is of the best documented and easiest tested paths through each feature. Tests for edge cases and failure paths are not yet in place, nor are complete tests for full expected values in most cases. ... (file: [24815909bd] check-in: [c2c49b3543] user: rberteig branch: rberteig-json-test, size: 17113)
2016-01-28
20:21
Added /json/whoami from CLI, changed /json/cap to only care that it worked from CLI since capabilities are sort of meaningless in CLI mode. Added checks for caps provided to each logged in user by /json/login from its own results. Starting on /json/branch/list. All tests pass except known bugs and TODOs. ... (file: [f2f1a7c1a2] check-in: [bab84bd742] user: rberteig branch: rberteig-json-test, size: 12018)
02:53
Also test /json/wiki/preview, /json/g, /json/rebuild, /json/resultCodes, /json/anonymousPassword, /json/login for both anonymous and a normal user. Note that test for /json/cap is a work in progress since the CLI ingores any auth tokens and always acts with all caps. ... (file: [13332f45eb] check-in: [9b8b051899] user: rberteig branch: rberteig-json-test, size: 10705)
01:19
Refactoring in the json tests. Add coverage of /json/wiki. Note discrepency between documentation and execution of /json/wiki/diff. ... (file: [7ee8233f31] check-in: [cb611ffc9b] user: rberteig branch: rberteig-json-test, size: 8363)
2016-01-27
00:44
Update copyright date to this year since the JSON tests are new this year. Fix indentation of Tcl to match established convention. Add test of JSON API version to reflect earliest I expect to pass these tests. Document block of Version and HAI, and add version for consistency. ... (file: [37b95450f8] check-in: [c4f8d88fd9] user: Ross branch: rberteig-json-test, size: 5489)
2016-01-26
01:46
Place a cornerstone for scaffolding of the test cases for the fossil json command and related REST API. This begins with an extension to fossil_maybe_answer in tester.tcl that adds a -expectError option to flag invocations of fossil that are expected to exit with error status and not log it when -quiet is in effect. The new file json.test has the first few test cases for fossil json, all of which are currently passing. ... (file: [e32706f8d9] check-in: [95080f47e2] user: Ross branch: rberteig-json-test, size: 5203)