Oslo team is recommending everyone to use the direct imports and
not use the Oslo namespaces. So switch all our code to use oslo_*
instead of "from oslo." or "import oslo" or "from oslo"
NOTE: some of the tests still have mocks referring to oslo.utils
@mock.patch('oslo.utils.timeutils.utcnow')
as the tests break otherwise. We should do this later.
Closes-bug: #1419385
Change-Id: I8e3fbeb833cddc3f55674a0e781ffe69d5033ad4
newer hacking has rules for the following:
H105 Don't use author tags
H238 old style class declaration, use new style (inherit from `object`)
W292 no newline at end of file
So we need to clean them up and stop ignoring them
Change-Id: I12b995cf87d6bc0938298f397b41a4693627bb4b
The auth.py file does a couple of things, It contains keystone authentication
and to set request context. So this split up to two files.
After this commit, request hook should be included in hooks.py.
Related-Bug: #1406539
Change-Id: I1754da40383976e48f6fd4ca23911717f918f9bb
'auth_url', 'auth_token_info' and 'trust_id' is required to create heatclient.
So this commit added these.
Change-Id: If17c87770f2e4d93dae5e1262faa5b44cc5cfdef
There are no PUBLIC_ENDPOINTS in our ReST API. THis was copied from
Solum which does have some public endpoints. As a result, just remove
all of the public endpoints. Now auth is done on every API call.
Also it is helpful to install the authentication wrapper.
Change-Id: I197f690ef6f2ea0756503ee2d44fb721e840f256