Remove remaining reference to gettextutils and remove the module,
as it no longer exists in oslo-incubator. Also remove timeutils
for the same reason, it's not referenced by any remaining code.
Convert the encode/decode functions from oslo-incubator to use
oslo.utils encodeutils, as the incubator functions are now
Also syncs oslo-incubator to 62394a3 to purge usage of strutils
from the openstack/common modules.
Note includes oslo fix https://review.openstack.org/#/c/133290/
which we need or the python3 tests won't pass.
Added `patch` method that uses mock.patch (similar to `patchobject`)
- NOTE: this shadows `testtools.TestCase.patch` method that uses
simple monkey-patching in favor of mock-based patching,
relevant comment added in the code.
Also oslotest dependency is added.
flake8 has support for cyclomatic complexity (Mccabe) currently our
worst offender has a complexity of 18 (25 is considered very bad). So
set our max-complexity to 20 so we keep our complexity in a great shape.
The standalone auth_password middleware expects 'X-Auth-Url' header
in the request. The recent version of heatclient doesn't pass the
required header which is retrieved from the option '--os-auth-url',
though we explicitly specify it in the commandline. Let's pass the
argument 'auth_url' and get heatclient working in standalone mode.
For resources like ResourceGroup, the output parameters are not
validated during stack creation. When a stack has an output parameter
which accesses an incorrect attribute of a resource, the output-show
command returns the string 'null'.
This fix instead returns an error indicating the incorrect attribute
introduced 'existing' keyword to stack-udpate command that became effectively
required argument to stack.update method of the client's Python API,
breaking backward compatibility.