[openstack-dev] [qa][tempest] Where to do response body validation

Christopher Yeoh cbkyeoh at gmail.com
Thu Mar 13 07:06:01 UTC 2014


On Thu, 13 Mar 2014 08:17:50 +0200
Valeriy Ponomaryov <vponomaryov at mirantis.com> wrote:

> I disagree to moving this logic to "tempest/services/*". The idea of
> these modules - assemble requests and return responses. Testing and
> verification should be wrapped over it. Either base class or tests,
> it depends on situation...
> 

So I can't think of situation where the Nova API would
be returning a success code and the format of the response (which is
all we'd really be checking) is not valid. We can test at a higher
level, but it means calling the validation from quite a few spots
(everywhere the client is called) rather than just in one spot.

Chris



More information about the OpenStack-dev mailing list