codex-storage / cs-codex-dist-tests

Distributed System Tests for Nim-Codex
4 stars 4 forks source link

Improve handling of non-200 REST responses #46

Closed emizzle closed 1 year ago

emizzle commented 1 year ago

Currently, non-200 responses from the codex REST api will crash tests as the response is non-json.

Response codes should be inspected and an exception thrown if non-200. This exception should bubble up to the tests, so the exception could be caught, and tested for, in the tests.