Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Jan 13, 2025
1 parent 8e7fa72 commit e62bf94
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ def _test_enroll(data_key: JWK, x509_key: PrivateKey, requested_name: str | None
assert response.status_code == status.HTTP_200_OK
node_certificate = response.json()
print(json.dumps(node_certificate, indent=4))
assert node_certificate["x509_certificate"] == enrollment_response["x509_certificate"]
assert isinstance(node_certificate["x509_certificate_serial_number"], str)
assert node_certificate["x509_certificate_serial_number"] == enrollment_response["x509_certificate_serial_number"]
assert (
node_certificate["x509_certificate_not_valid_after"] == enrollment_response["x509_certificate_not_valid_after"]
)

#####################
# Get node public key
Expand Down

0 comments on commit e62bf94

Please sign in to comment.