1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

DIGITALOCEAN: Abide by rate limits (#934)

* Implement exponential back-off
This commit is contained in:
Tom Limoncelli
2020-11-12 10:53:44 -05:00
committed by GitHub
parent 724d5ff6c7
commit ba08e718b7
2 changed files with 67 additions and 6 deletions

View File

@ -743,8 +743,8 @@ func makeTests(t *testing.T) []*TestGroup {
// Notes:
// - Gandi: page size is 100, therefore we test with 99, 100, and 101
// - NS1: free acct only allows 50 records, therefore we skip
// - DigitalOcean: fails due to rate limiting, not page limits.
not("NS1", "DIGITALOCEAN"),
// - DIGITALOCEAN: page size is 100 (default: 20)
not("NS1"),
tc("99 records", manyA("rec%04d", "1.2.3.4", 99)...),
tc("100 records", manyA("rec%04d", "1.2.3.4", 100)...),
tc("101 records", manyA("rec%04d", "1.2.3.4", 101)...),