Remove deprecated `Resource` fields.

This commit is contained in:
Daniel 2017-08-30 12:28:15 -04:00
parent addb3b8683
commit 65f64a92ba
No known key found for this signature in database
GPG Key ID: 08FB2BFC470E75B4
1 changed files with 0 additions and 4 deletions

View File

@ -1854,11 +1854,9 @@ func makeRevokeRequestJSON(reason *revocation.Reason) ([]byte, error) {
return nil, err
}
revokeRequest := struct {
Resource string `json:"resource"`
CertificateDER core.JSONBuffer `json:"certificate"`
Reason *revocation.Reason `json:"reason"`
}{
Resource: "revoke-cert",
CertificateDER: certBlock.Bytes,
Reason: reason,
}
@ -2026,10 +2024,8 @@ func TestRevokeCertificateAlreadyRevoked(t *testing.T) {
test.Assert(t, certBlock != nil, "Failed to decode PEM")
revokeRequest := struct {
Resource string `json:"resource"`
CertificateDER core.JSONBuffer `json:"certificate"`
}{
Resource: "revoke-cert",
CertificateDER: certBlock.Bytes,
}
revokeRequestJSON, err := json.Marshal(revokeRequest)