Skip to content

Investigate test suite failure in CI #93

@robin-nitrokey

Description

@robin-nitrokey

Occasionally, the test suite fails in the CI in the test_state_restore test case because /system/restore returns the status code 400. #86 adds some helpers for debugging this issue if it occurs again.

Example: https://github.com/Nitrokey/nethsm-sdk-py/actions/runs/6903983089/job/18783758581?pr=84

E           nethsm.client.exceptions.ApiException: (400)
E           Reason: Bad Request
E           HTTP response headers: HTTPHeaderDict({'content-type': 'application/json', 'vary': 'Accept, Accept-Encoding, Accept-Charset, Accept-Language', 'Cache-control': 'no-cache', 'Date': 'Fri, 17 Nov 2023 12:31:52 GMT', 'content-length': '28'})
E           HTTP response body: b'{"message":"Malformed data"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions