Updated Branches: refs/heads/marvin_refactor dd838d725 -> 23dd00b04
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 <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/23dd00b0 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/23dd00b0 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/23dd00b0 Branch: refs/heads/marvin_refactor Commit: 23dd00b04a92926c937adc51f3af24c36a91d1b0 Parents: dd838d7 Author: Prasanna Santhanam <[email protected]> Authored: Sun Apr 21 19:40:45 2013 +0530 Committer: Prasanna Santhanam <[email protected]> Committed: Sun Apr 21 19:40:45 2013 +0530 ---------------------------------------------------------------------- tools/marvin/marvin/jsonHelper.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/23dd00b0/tools/marvin/marvin/jsonHelper.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/jsonHelper.py b/tools/marvin/marvin/jsonHelper.py index b0c356f..8316ddb 100644 --- a/tools/marvin/marvin/jsonHelper.py +++ b/tools/marvin/marvin/jsonHelper.py @@ -98,6 +98,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
