summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorhussainchachuliya <hussain.chachuliya@nttdata.com>2016-09-29 19:59:03 +0530
committerhussainchachuliya <hussain.chachuliya@nttdata.com>2016-11-29 11:49:24 +0530
commita862aa0f3d81ea63e1d00d57f1163b2bde70cfd8 (patch)
treeba3241b00ede3f3017c5bcf009b67bbdf4ed4246 /HACKING.rst
parentfd99bd7e9bbabb0cb206a1323f9f9aec8c21627d (diff)
downloadnova-a862aa0f3d81ea63e1d00d57f1163b2bde70cfd8.tar.gz
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
Diffstat (limited to 'HACKING.rst')
-rw-r--r--HACKING.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst
index ed417c9b46..45ed114b60 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -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
-------------------