diff --git a/DOCUMENT.md b/DOCUMENT.md index 8c283f8b..b29b14d5 100644 --- a/DOCUMENT.md +++ b/DOCUMENT.md @@ -106,7 +106,7 @@ Available assertion types are listed below: |----------------|------------|-------------|---------| | `equal` | **path**: *string*. The `set` path to assert.
**value**: *any*. The expected value. | Assert the value of specified **path** equal to the **value**. |
equal:
path: metadata.name
value: my-deploy
| | `notEqual` | **path**: *string*. The `set` path to assert.
**value**: *any*. The value expected not to be. | Assert the value of specified **path** NOT equal to the **value**. |
notEqual:
path: metadata.name
value: my-deploy
| -| `matchRegex` | **path**: *string*. The `set` path to assert, the value must be a *string*.
**pattern**: *string*. The regex pattern to match (without quoting `/`). | Assert the value of specified **path** match **pattern**. |
matchRegex:
path: metadata.name
value: -my-chart$
| +| `matchRegex` | **path**: *string*. The `set` path to assert, the value must be a *string*.
**pattern**: *string*. The regex pattern to match (without quoting `/`). | Assert the value of specified **path** match **pattern**. |
matchRegex:
path: metadata.name
pattern: -my-chart$
| | `notMatchRegex` | **path**: *string*. The `set` path to assert, the value must be a *string*.
**pattern**: *string*. The regex pattern NOT to match (without quoting `/`). | Assert the value of specified **path** NOT match **pattern**. |
notMatchRegex:
path: metadata.name
pattern: -my-chat$
| | `contains` | **path**: *string*. The `set` path to assert, the value must be an *array*.
**content**: *any*. The content to be contained. | Assert the array as the value of specified **path** contains the **content**. |
contains:
path: spec.ports
content:
name: web
port: 80
targetPort: 80
protocle:TCP
| | `notContains` | **path**: *string*. The `set` path to assert, the value must be an *array*.
**content**: *any*. The content NOT to be contained. | Assert the array as the value of specified **path** NOT contains the **content**. |
notContains:
path: spec.ports
content:
name: server
port: 80
targetPort: 80
protocle: TCP
|