add `total_pages` to stubbed responses
The functionality within the `ListZonesContext` uses the `TotalPages`
value to determine how many times it needs to enumerate the zones.
Without this, it doesn't at all and results in no zones being found.
@@ -333,7 +333,8 @@ func TestZoneIDByNameWithNonUniqueZonesWithoutOrgID(t *testing.T) {
"page": 1,
"per_page": 20,
"count": 1,
- "total_count": 2000
+ "total_count": 2000,
+ "total_pages": 1
}
}
`)
@@ -470,7 +471,8 @@ func TestZoneIDByNameWithNonUniqueZonesWithOrgId(t *testing.T) {
"page": 1,
"per_page": 20,
"count": 1,
- "total_count": 2000
+ "total_count": 2000,
+ "total_pages": 1
}
}
`)
@@ -609,7 +611,8 @@ func TestZoneIDByNameWithIDN(t *testing.T) {
"page": 1,
"per_page": 20,
"count": 1,
- "total_count": 2000
+ "total_count": 2000,
+ "total_pages": 1
}
}
`)
