From d84535ee1077bdffd178ef9dcb51830183db61eb Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Sun, 21 Apr 2013 19:40:45 +0530 Subject: [PATCH] marvin_refactor: Working around CLOUDSTACK-2126 Marvin deserializes by matching attributes of the response with the responseObject expected. In case the object's attributes don't mirror the response Marvin assumes the response is invalid and can't return a proper first class entity. This makes it difficult for tests to reference the object's attributes in a sensible way. Signed-off-by: Prasanna Santhanam --- tools/marvin/marvin/jsonHelper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/marvin/marvin/jsonHelper.py b/tools/marvin/marvin/jsonHelper.py index 6c56ef9b608..7dfb75ddf13 100644 --- a/tools/marvin/marvin/jsonHelper.py +++ b/tools/marvin/marvin/jsonHelper.py @@ -119,6 +119,8 @@ def finalizeResultObj(result, responseName, responsecls): mirrorObj = True for k,v in value.__dict__.iteritems(): + if k == 'jobstatus': + continue if k not in responsecls.__dict__: mirrorObj = False break