nim-codex/tests/codex
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
..
blockexchange Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
helpers Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
merkletree Merkle tree construction (#504) 2023-08-15 13:23:35 +02:00
sales refactor: merging proving module into sales (#469) 2023-08-21 12:26:43 +02:00
storageproofs Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
stores [repostore] Retrieve empty blocks (#513) 2023-08-21 12:51:04 +10:00
utils Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
examples.nim feat: collateral per slot (#390) 2023-04-14 11:04:17 +02:00
helpers.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testasyncheapqueue.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testasyncstreamwrapper.nim Tests for AsyncStreamWrapper (#463) 2023-06-30 14:18:58 +02:00
testblockexchange.nim Blocks leak and inflight for pending blocks (#315) 2022-11-15 00:12:05 -06:00
testchunking.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testerasure.nim [repostore] Retrieve empty blocks (#513) 2023-08-21 12:51:04 +10:00
testmanifest.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testmerkletree.nim Merkle tree construction (#504) 2023-08-15 13:23:35 +02:00
testnode.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testpurchasing.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testsales.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
teststorageproofs.nim Upload authenticators (#108) 2022-05-25 20:29:31 -06:00
teststores.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
teststorestream.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testsystemclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testutils.nim Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
testvalidation.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00