mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
replace status field
This commit is contained in:
parent
ca155b48ae
commit
a3a3840e91
2 changed files with 4 additions and 0 deletions
|
|
@ -697,6 +697,7 @@ class ClientV2Test(ClientTestBase):
|
|||
|
||||
self.order = messages.Order(
|
||||
identifiers=(self.authz.identifier, self.authz2.identifier),
|
||||
status=messages.STATUS_PENDING,
|
||||
authorizations=(self.authzr.uri, self.authzr_uri2),
|
||||
finalize='https://www.letsencrypt-demo.org/acme/acct/1/order/1/finalize')
|
||||
self.orderr = messages.OrderResource(
|
||||
|
|
|
|||
|
|
@ -513,6 +513,7 @@ class Order(ResourceBody):
|
|||
"""Order Resource Body.
|
||||
|
||||
:ivar list of .Identifier: List of identifiers for the certificate.
|
||||
:ivar acme.messages.Status status:
|
||||
:ivar list of str authorizations: URLs of authorizations.
|
||||
:ivar str certificate: URL to download certificate as a fullchain PEM.
|
||||
:ivar str finalize: URL to POST to to request issuance once all
|
||||
|
|
@ -521,6 +522,8 @@ class Order(ResourceBody):
|
|||
:ivar .Error error: Any error that occurred during finalization, if applicable.
|
||||
"""
|
||||
identifiers = jose.Field('identifiers', omitempty=True)
|
||||
status = jose.Field('status', decoder=Status.from_json,
|
||||
omitempty=True, default=STATUS_PENDING)
|
||||
authorizations = jose.Field('authorizations', omitempty=True)
|
||||
certificate = jose.Field('certificate', omitempty=True)
|
||||
finalize = jose.Field('finalize', omitempty=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue