According to related blueprint, installing oslo libraries into a same namespace seems to cause several type of errors. Every occurrence of oslo.foo supported is renamed to oslo_foo. Change-Id: I786b0b824be31c08e6795201bb95553434d8d634 Implements: blueprint 'oslo-incubator/drop-namespace-packages' Closes-Bug: #1409213
Rally Style Commandments
- Step 1: Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
- Step 2: Read on
Rally Specific Commandments
- * [N30x] - Reserved for rules related to
mocklibrary -
- [N301] - Ensure that
assert_*methods frommocklibrary is used correctly - [N302] - Ensure that nonexistent "assert_called" is not used
- [N303] - Ensure that nonexistent "assert_called_once" is not used
- [N301] - Ensure that
- * [N310-N314] - Reserved for rules related to logging
-
- [N310] - Ensure that
rally.common.logis used instead ofrally.openstack.common.log - [N311] - Validate that debug level logs are not translated
- [N312] - Validate correctness of debug on check.
- [N310] - Ensure that
- * [N32x] - Reserved for rules related to assert* methods
-
- [N320] - Ensure that
assertTrue(isinstance(A, B))is not used - [N321] - Ensure that
assertEqual(type(A), B)is not used - [N322] - Ensure that
assertEqual(A, None)andassertEqual(None, A)are not used - [N323] - Ensure that
assertTrue/assertFalse(A in/not in B)are not used with collection contents - [N324] - Ensure that
assertEqual(A in/not in B, True/False)andassertEqual(True/False, A in/not in B)are not used with collection contents
- [N320] - Ensure that
- * [N33x] - Reserved for rules related to Python 3 compatibility
-
- [N330] - Ensure that
dict.iterkeys(),dict.itervalues(),dict.iteritems()anddict.iterlist()are not used - [N331] - Ensure that
basestringis not used - [N332] - Ensure that
StringIO.StringIOis not used - [N333] - Ensure that
urlparseis not used - [N334] - Ensure that
itertools.imapis not used - [N335] - Ensure that
xrangeis not used - [N336] - Ensure that
string.lowercaseandstring.uppercaseare not used - [N337] - Ensure that
next()method on iterator objects is not used - [N338] - Ensure that
+operand is not used to concatenate dict.items()
- [N330] - Ensure that
- [N340] - Ensure that we are importing always
from rally import objects - [N341] - Ensure that we are importing oslo_xyz packages instead of deprecated oslo.xyz ones