-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match ListDNSRecords per_page value to the API's
As outlined in github.com//pull/1169, when no pagination options are passed in to ListDNSRecords, autopagination is performed. However, the current PerPage value doesn't match that of the official API. This commit makes both values match. A new test is also implemented that more explicitly tests the auto pagination behaviour. Signed-off-by: Artur Rodrigues <[email protected]>
- Loading branch information
Artur Rodrigues
committed
Jan 9, 2023
1 parent
63d7aa8
commit f1a4010
Showing
4 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"success": true, | ||
"errors": [], | ||
"messages": [], | ||
"result": [ | ||
{ | ||
"id": "372e67954025e0ba6aaa6d586b9e0b59", | ||
"type": "A", | ||
"name": "example.com", | ||
"content": "198.51.100.4", | ||
"proxiable": true, | ||
"proxied": true, | ||
"ttl": 120, | ||
"locked": false, | ||
"zone_id": "d56084adb405e0b7e32c52321bf07be6", | ||
"zone_name": "example.com", | ||
"created_on": "2014-01-01T05:20:00Z", | ||
"modified_on": "2014-01-01T05:20:00Z", | ||
"data": {}, | ||
"meta": { | ||
"auto_added": true, | ||
"source": "primary" | ||
}, | ||
"tags": [ | ||
"tag1", | ||
"tag2extended" | ||
] | ||
} | ||
], | ||
"result_info": { | ||
"count": 1, | ||
"page": 1, | ||
"per_page": 1, | ||
"total_count": 2, | ||
"total_pages": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"success": true, | ||
"errors": [], | ||
"messages": [], | ||
"result": [ | ||
{ | ||
"id": "372e67954025e0ba6aaa6d586b9e0b59", | ||
"type": "A", | ||
"name": "www.example.com", | ||
"content": "198.51.100.4", | ||
"proxiable": true, | ||
"proxied": true, | ||
"ttl": 120, | ||
"locked": false, | ||
"zone_id": "d56084adb405e0b7e32c52321bf07be6", | ||
"zone_name": "example.com", | ||
"created_on": "2014-01-01T05:20:00Z", | ||
"modified_on": "2014-01-01T05:20:00Z", | ||
"data": {}, | ||
"meta": { | ||
"auto_added": true, | ||
"source": "primary" | ||
}, | ||
"tags": [ | ||
"tag1", | ||
"tag2extended" | ||
] | ||
} | ||
], | ||
"result_info": { | ||
"count": 1, | ||
"page": 2, | ||
"per_page": 1, | ||
"total_count": 2, | ||
"total_pages": 2 | ||
} | ||
} |