File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,9 @@ spec:
115115
116116# # Assertions
117117
118- Following are currently supported assertions.
118+ Following are currently supported assertions. Variable or values supplied in the `actual` field must contain JSON.
119+
120+ [TBD] will support other data interchange format.
119121
120122# ## AssertEqual
121123
@@ -357,6 +359,10 @@ spec:
357359 ...
358360 asserts:
359361 - { type: AssertMapContains, actual: $StudentObject, expected: 10 }
362+
363+ - type: AssertMapContains
364+ actual: $StudentObject
365+ expected: {'teacher': {'id': 11, 'name': 'Some one'}}
360366` ` `
361367
362368# ## AssertMapHasKey
@@ -383,7 +389,7 @@ spec:
383389
384390# ## AssertMapKeyCount
385391
386- Checks if data given in `actual` is a JSON object or dictionary. If so, does it have same number of key given in `expected`.
392+ Checks if data given in `actual` is a JSON object or dictionary. If so, does it have same number of keys given in `expected`.
387393
388394` ` ` yaml
389395spec:
You can’t perform that action at this time.
0 commit comments