From 213b29a07031d6847480af8e34f70aac8aa3caa3 Mon Sep 17 00:00:00 2001 From: hussainchachuliya Date: Thu, 29 Sep 2016 19:59:03 +0530 Subject: [PATCH] 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 --- HACKING.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HACKING.rst b/HACKING.rst index ed417c9b4..45ed114b6 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 -------------------