Commit 0526d97
committed
feat: add response header and body assertion steps
Add three new composable step definitions to NextcloudApiContext:
- 'the response header :header should contain :value'
Asserts that the given response header contains the expected substring
(case-insensitive).
- 'the response body should not be empty'
Asserts that the response body is non-empty.
- 'the response body should match the regular expression :pattern'
Asserts that the response body matches the given regex pattern.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent 6dc5a65 commit 0526d97
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
362 | 381 | | |
363 | 382 | | |
364 | 383 | | |
| |||
0 commit comments