mirror of
https://github.com/go-acme/lego.git
synced 2024-12-13 13:48:45 +02:00
42941ccea6
- Packages - Isolate code used by the CLI into the package `cmd` - (experimental) Add e2e tests for HTTP01, TLS-ALPN-01 and DNS-01, use [Pebble](https://github.com/letsencrypt/pebble) and [challtestsrv](https://github.com/letsencrypt/boulder/tree/master/test/challtestsrv) - Support non-ascii domain name (punnycode) - Check all challenges in a predictable order - No more global exported variables - Archive revoked certificates - Fixes revocation for subdomains and non-ascii domains - Disable pending authorizations - use pointer for RemoteError/ProblemDetails - Poll authz URL instead of challenge URL - The ability for a DNS provider to solve the challenge sequentially - Check all nameservers in a predictable order - Option to disable the complete propagation Requirement - CLI, support for renew with CSR - CLI, add SAN on renew - Add command to list certificates. - Logs every iteration of waiting for the propagation - update DNSimple client - update github.com/miekg/dns
86 lines
1.5 KiB
Go
86 lines
1.5 KiB
Go
package vegadns
|
|
|
|
const tokenResponseMock = `
|
|
{
|
|
"access_token":"699dd4ff-e381-46b8-8bf8-5de49dd56c1f",
|
|
"token_type":"bearer",
|
|
"expires_in":3600
|
|
}
|
|
`
|
|
|
|
const domainsResponseMock = `
|
|
{
|
|
"domains":[
|
|
{
|
|
"domain_id":1,
|
|
"domain":"example.com",
|
|
"status":"active",
|
|
"owner_id":0
|
|
}
|
|
]
|
|
}
|
|
`
|
|
|
|
const recordsResponseMock = `
|
|
{
|
|
"status":"ok",
|
|
"total_records":2,
|
|
"domain":{
|
|
"status":"active",
|
|
"domain":"example.com",
|
|
"owner_id":0,
|
|
"domain_id":1
|
|
},
|
|
"records":[
|
|
{
|
|
"retry":"2048",
|
|
"minimum":"2560",
|
|
"refresh":"16384",
|
|
"email":"hostmaster.example.com",
|
|
"record_type":"SOA",
|
|
"expire":"1048576",
|
|
"ttl":86400,
|
|
"record_id":1,
|
|
"nameserver":"ns1.example.com",
|
|
"domain_id":1,
|
|
"serial":""
|
|
},
|
|
{
|
|
"name":"example.com",
|
|
"value":"ns1.example.com",
|
|
"record_type":"NS",
|
|
"ttl":3600,
|
|
"record_id":2,
|
|
"location_id":null,
|
|
"domain_id":1
|
|
},
|
|
{
|
|
"name":"_acme-challenge.example.com",
|
|
"value":"my_challenge",
|
|
"record_type":"TXT",
|
|
"ttl":3600,
|
|
"record_id":3,
|
|
"location_id":null,
|
|
"domain_id":1
|
|
}
|
|
]
|
|
}
|
|
`
|
|
|
|
const recordCreatedResponseMock = `
|
|
{
|
|
"status":"ok",
|
|
"record":{
|
|
"name":"_acme-challenge.example.com",
|
|
"value":"my_challenge",
|
|
"record_type":"TXT",
|
|
"ttl":3600,
|
|
"record_id":3,
|
|
"location_id":null,
|
|
"domain_id":1
|
|
}
|
|
}
|
|
`
|
|
|
|
const recordDeletedResponseMock = `{"status": "ok"}`
|