...
Requirement | Recommended match mode |
|---|---|
Verify several independent configuration lines exist in the source | Loose |
Verify the presence and order of configuration commands in the source | Sequential |
Verify the presence of a configuration blockRequired lines can appear anywhere and in any order | Loose |
Required lines must appear in a specific order, but may have other lines between them | Sequential |
Required lines must appear in a specific order with no lines between them | Strict |
Common use cases:
The following are some example scenarios where each match mode is particularly useful:
...