nim-dagger/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 Debug/extra logging (#509) 2023-08-22 08:35:16 +02:00
contracts Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
erasure Plumbing in conf types (#472) 2023-07-06 16:23:27 -07:00
manifest 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
node [marketplace] Add Reservations Module (#340) 2023-04-04 17:05:16 +10:00
purchasing Cancel and wait for asyncstatemachine futures when stopping (#493) 2023-07-31 15:09:34 +10:00
rest Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
sales Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
storageproofs Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
stores Repostore crash debug (#521) 2023-08-22 08:26:58 +02:00
streams Debug/extra logging (#509) 2023-08-22 08:35:16 +02:00
utils Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
blockexchange.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
blocktype.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
chunker.nim Plumbing in conf types (#472) 2023-07-06 16:23:27 -07:00
clock.nim [clock] waitUntil() completes immediately when block arrives (#475) 2023-07-13 11:19:45 +02:00
codex.nim refactor: merging proving module into sales (#469) 2023-08-21 12:26:43 +02:00
conf.nim refactor: merging proving module into sales (#469) 2023-08-21 12:26:43 +02:00
contracts.nim feat: contract address management (#405) 2023-05-03 09:24:25 +02:00
discovery.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
erasure.nim Improving proc/func formatting consistency (#454) 2023-06-22 08:11:18 -07:00
errors.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
formats.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
manifest.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
market.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
namespaces.nim Add metrics (#478) 2023-07-20 09:56:28 +02:00
node.nim Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
periods.nim Validator (#387) 2023-04-19 15:06:00 +02:00
purchasing.nim Improving proc/func formatting consistency (#454) 2023-06-22 08:11:18 -07:00
rng.nim track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
sales.nim chore: improve logging (#526) 2023-08-28 11:33:44 +02:00
storageproofs.nim Validator (#387) 2023-04-19 15:06:00 +02:00
stores.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
streams.nim adding AsyncStreamWrapper (#110) 2022-06-14 09:19:35 -06:00
systemclock.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
units.nim Plumbing in conf types (#472) 2023-07-06 16:23:27 -07:00
utils.nim Plumbing in conf types (#472) 2023-07-06 16:23:27 -07:00
validation.nim Improving proc/func formatting consistency (#454) 2023-06-22 08:11:18 -07:00