zuul-jobs/roles/upload-logs-gcs/library/test-fixtures
James E. Blair a488ed2cdc Add a test that exercises the GCS Credentials class
We subclass the GCS Credentials class.  We can't completely test
it without either hitting the live Google cloud or substantial
mocking, but we should be able to exercise most of the functionality
we typically use.  Do that by asking it to load a token from disk
and assert that it adds that token to a fake request headers
dictionary.

This also corrects a "problem" detected by the test.  The current
super() call uses the python3 form, which is fine in that all current
uses of this code are using python3, but we still run python27 tests
on this repo, so we'll use the python2/python3 compat syntax.

Change-Id: Ifa4209617f4be52008b6294ebd10f0deb9bd6a51
2020-07-16 13:30:13 -07:00
..
artifacts Add upload-logs-gcs role 2020-02-03 16:02:15 -08:00
links Add upload-logs-gcs role 2020-02-03 16:02:15 -08:00
logs Add upload-logs-gcs role 2020-02-03 16:02:15 -08:00
auth.json Add a test that exercises the GCS Credentials class 2020-07-16 13:30:13 -07:00