| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
The point of Client.quotas is to return actual quota information, which is why the values are converted to ints. The kind key in the server response is irrelevant to the caller: we should just exclude it. |
Sorry, something went wrong.
|
That makes sense, of course. However, I have two concerns:
|
Sorry, something went wrong.
|
@ojengwa Since the API is versioned, the response shouldn't change over time. Also the kind is just a marker for the schema, so it will never change. |
Sorry, something went wrong.
|
@ojengwa Thanks for the updates!
return dict([(key, int(value))
for key, value in resp['quota'].items()
if key != 'kind'])
|
Sorry, something went wrong.
|
I guess that works. Have being scratching my head tryna figure out why the kind field shows up in my local tests but not when the test is run on the CI server. |
Sorry, something went wrong.
|
Uncommitted local changes? The files changed page shows only the one file. |
Sorry, something went wrong.
|
Nope. There's nothing to change again in the test case. |
Sorry, something went wrong.
|
The KeyError only occurred on Travis. Actually, it was strange. When I examine the return value from Client#quotas locally, I get the kind as a key of the response object as well as a subfield of response['quota'] and the tests ran. But on Travis, it raises a KeyError because it can't find the 'kind' key as a subfield of response['quota'] when trying to call resp['quota'].pop('kind'). |
Sorry, something went wrong.
|
Still unaddressed AFAICT:
|
Sorry, something went wrong.
fix failing tests remove typing from expected value remove schema marker from dns#quotas return value update test specs for dns.Client#quotas remove schema marker from dns#quotas return value update test specs for dns.Client#quotas remove schema marker from dns#quotas return value fix failing tests for dns#quotas return value conditional skipping of the `kind` key
|
I have squashed the commits. |
Sorry, something went wrong.
|
I don't see how that could work since we are already filtering out kind from the Client#quotas output.
|
Sorry, something went wrong.
Sorry, something went wrong.
Fix minor typos found via internal cl/713764938 Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
Provides numerous tweaks to correct for failing tests in prerelease testing.
chore: fix failing system tests due to version upgrade of urllib3. [2.6.0](https://urllib3.readthedocs.io/en/stable/changelog.html#id1) of urllib3 added security fixes for compressed data reads, which caused issues from #1642 to #1649 This PR temporarily mitigates failing system test to unblock other PRs. Actual fix will be tracked in b/466813444
| Back | FazBrowse Home | New Git URL |
I documented the error in the issue.