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
This commit is contained in:
parent
671a3d13c2
commit
a4cd4b6cdd
@ -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
|
||||
-------------------
|
||||
|
Loading…
Reference in New Issue
Block a user