Skip to content

Commit 67999a1

Browse files
committed
Add more specific example and information
1 parent 569062d commit 67999a1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

docs/05-References/054-testcase-reference.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
389395
spec:

0 commit comments

Comments
 (0)