Add JSON Should Contain Sub JSON Keyword 57/99557/1
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 12 Dec 2019 10:07:10 +0000 (11:07 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 12 Dec 2019 10:37:41 +0000 (11:37 +0100)
commitdc6b6c7d9d0cf9e2d0d8f69ba2dd5fca8e010b2e
tree05098ad8c6f6485360848b878490a08463c2776a
parent78600c90d81d85ae0e1183c0610625bb28a6cc5e
Add JSON Should Contain Sub JSON Keyword

This patch provides functionality of "Dictionary Should Contain Sub
Dictionary" Keyword (from Robot Framework "Collections" library) for
JSON. It supports both objects and strings containing JSON.

Added tests were intended to verify no regressions were introduced as
well as corner cases are handled properly.

Issue-ID: SECCOM-261
Change-Id: Id7581d79b93ce0403e97e1bbf47c10e0e166f2ec
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
robotframework-onap/ONAPLibrary/JSONKeywords.py
robotframework-onap/tests/ONAPLibrary/JSONKeywordsTest.py [new file with mode: 0644]
robotframework-onap/tests/runner.py