From 198a3bea231883251ef00596ddda625f33219efd Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Mon, 9 Mar 2015 02:19:32 +0000 Subject: 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(+) (limited to 'HACKING.rst') diff --git a/HACKING.rst b/HACKING.rst index 97cf0f9d03..42a0a4581d 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 ------------------- -- cgit v1.2.1