Remove deprecated `Resource` fields.
This commit is contained in:
parent
addb3b8683
commit
65f64a92ba
|
|
@ -1854,11 +1854,9 @@ func makeRevokeRequestJSON(reason *revocation.Reason) ([]byte, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
revokeRequest := struct {
|
revokeRequest := struct {
|
||||||
Resource string `json:"resource"`
|
|
||||||
CertificateDER core.JSONBuffer `json:"certificate"`
|
CertificateDER core.JSONBuffer `json:"certificate"`
|
||||||
Reason *revocation.Reason `json:"reason"`
|
Reason *revocation.Reason `json:"reason"`
|
||||||
}{
|
}{
|
||||||
Resource: "revoke-cert",
|
|
||||||
CertificateDER: certBlock.Bytes,
|
CertificateDER: certBlock.Bytes,
|
||||||
Reason: reason,
|
Reason: reason,
|
||||||
}
|
}
|
||||||
|
|
@ -2026,10 +2024,8 @@ func TestRevokeCertificateAlreadyRevoked(t *testing.T) {
|
||||||
test.Assert(t, certBlock != nil, "Failed to decode PEM")
|
test.Assert(t, certBlock != nil, "Failed to decode PEM")
|
||||||
|
|
||||||
revokeRequest := struct {
|
revokeRequest := struct {
|
||||||
Resource string `json:"resource"`
|
|
||||||
CertificateDER core.JSONBuffer `json:"certificate"`
|
CertificateDER core.JSONBuffer `json:"certificate"`
|
||||||
}{
|
}{
|
||||||
Resource: "revoke-cert",
|
|
||||||
CertificateDER: certBlock.Bytes,
|
CertificateDER: certBlock.Bytes,
|
||||||
}
|
}
|
||||||
revokeRequestJSON, err := json.Marshal(revokeRequest)
|
revokeRequestJSON, err := json.Marshal(revokeRequest)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue