* Cleanup
gam,py:
In show sakays, only mark USER-MANAGED keys as current: true/false
gapi/__init__.py:
pylint cleanup: import order, indentation
gapi/errors.py:
pylint cleanup: import order, unused import, indentation
Recognize 502 Bad Gateway/Gateway Timeout: treat as retryable errors
This last change does not directly handle the refresh problem in Issue #1063 but in my version this seems to be the right solution to the 502 gateways errors
* In show sakeys, indicate whcij key was used to authenticate
* Show all sakeys by default
* Include unused import
* Remove unused import, fix unit tests
* When rotating an sakey, only delete the existing key, no others
* Make sakeys retention explicit
* Fix bug
* Rotate, local key generation default
* Allow explicit specification of retain_none in rotate sakeys
It is still the default value.
* Move file utilities and add tests
Separates common file operations into their own component with
appropriate unit tests.
* Remove use of unittest.mock.mock_open
Its behavior is slightly different across Python 3.5, 3.6, and 3.7
making it difficult to test across Python versions.
* Move callGAPIItems and add unit tests
* Move the page-related call() methods and add tests
Continues work on jay0lee/GAM#147
* Account for rand addition that rounds to 1.0
In this case, sleep time could be equal to 61
* Begin breaking apart gam.py into logical pieces
Start with one of the deepest parts of the stack, Google API request execution calls and associated errors. Critical information printing functions and application control logic are also broken out into their own components.
This change also adds unit tests for migrated content and makes code more PEP8 compliant.
This commit starts work on jay0lee/GAM#147
* Add unit tests to Travis config
* Swap assert_called_once() with assertEqual() and Mock.call_count
Makes tests compatible with Python 3.5. assert_called_once() is only available in Python 3.6+
Updated `gam delete labels` to process labels in reverse hierarchial order to avoid deleting a parent label before all of its child labels are deleted.