From a4cd4b6cdd1d0346e05d9d9d81f835bdd859fcbd Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Mon, 9 Mar 2015 02:19:32 +0000 Subject: [PATCH] Add a hacking rule for consistent HTTP501 message There is raise_feature_not_supported() for returning a HTTP501 response with consistent error message, and this patch adds a rule for enforcing to use the method on v2.1 API. Partially implements blueprint v2-on-v3-api Change-Id: I06f254fd9c8d8b6aac4ed135c6c407f3a993431f --- HACKING.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/HACKING.rst b/HACKING.rst index 97cf0f9d0..42a0a4581 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -50,6 +50,7 @@ Nova Specific Commandments - [N338] Change assertEqual(A in B, True), assertEqual(True, A in B), assertEqual(A in B, False) or assertEqual(False, A in B) to the more specific assertIn/NotIn(A, B) +- [N339] Check common raise_feature_not_supported() is used for v2.1 HTTPNotImplemented response. Creating Unit Tests -------------------