hacking: Use uuidutils or uuidsentinel to generate UUID

Added hacking check to ensure that UUID is being generated from
oslo_utils.uuidutils or uuidsentinel(in case of test cases)
instead of uuid4().

Change-Id: I73ee63fbd4f451d3aa5dc1a2a734d68c308b4440
This commit is contained in:
hussainchachuliya 2016-09-29 19:59:03 +05:30
parent 48aa351051
commit 213b29a070
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ Nova Specific Commandments
- [N354] String interpolation should be delayed at logging calls.
- [N355] Enforce use of assertTrue/assertFalse
- [N356] Enforce use of assertIs/assertIsNot
- [N357] Use oslo_utils.uuidutils or uuidsentinel(in case of test cases) to
generate UUID instead of uuid4().
Creating Unit Tests
-------------------