nim-codex/tests
Eric 37b3d99c3d
Improve integration testing client (CodexClient) and json serialization (#514)
* Improve integration testing client (CodexClient) and json serialization

The current client used for integration testing against the REST endpoints for Codex accepts and passes primitive types. This caused a hard to diagnose bug where a `uint` was not being deserialized correctly.

In addition, the json de/serializing done between the CodexClient and REST client was not easy to read and was not tested.

These changes bring non-primitive types to most of the CodexClient functions, allowing us to lean on the compiler to ensure we're providing correct typings. More importantly, a json de/serialization util was created as a drop-in replacement for the std/json lib, with the main two differences being that field serialization is opt-in (instead of opt-out as in the case of json_serialization) and serialization errors are captured and logged, making debugging serialization issues much easier.

* Update integration test to use nodes=2 and tolerance=1

* clean up
2023-09-01 15:44:41 +10:00
..
codex Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
contracts Slot queue (#455) 2023-07-25 12:50:30 +10:00
fixtures Node setup (#32) 2022-01-10 09:32:56 -06:00
helpers Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
integration Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
checktest.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
config.nims [build] fix: ignore logging when running singular tests (#369) 2023-03-16 15:32:09 +01:00
coverage.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
coverage.nims Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
ethertest.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
examples.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
helpers.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
logging.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
nimlldb.py Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testCodex.nim refactor: merging proving module into sales (#469) 2023-08-21 12:26:43 +02:00
testContracts.nim Validator (#387) 2023-04-19 15:06:00 +02:00
testIntegration.nim Generate proofs when required (#383) 2023-03-27 15:47:25 +02:00