Skip to content

Commit

Permalink
Merge pull request #138 from quintush/feature/SetupNewRelease
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
quintush committed Nov 1, 2021
2 parents 59cdba0 + 81c4d9e commit a12ec70
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
0.2.8 / 2021-11-01
==================
- Add support for Macosx arm64 (credits to: @svobol13)
- Add support for new assertion, containsDocument (credits to: @cyrus-mc)
- Add releasename validation (credits to: @jainbhavya65)
- Fixed reloading the project to prevent unwanted side-effects (credits to: @armingerten, resolves #111)
- Fixed pre-processing rendered data before comparison (credits to: @wenhulove333)
- Update packages to lates version

0.2.7 / 2021-07-26
==================
- Added samples for contains mapping (resolves #107)
Expand Down
2 changes: 2 additions & 0 deletions DOCUMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ Available assertion types are listed below:
| `isKind` | **of**: *String*. Expected `kind` of manifest. | Assert the `kind` value **of** manifest, is equilevant to:<br/><pre>equal:<br/> path: kind<br/> value: ...<br/> | <pre>isKind:<br/> of: Deployment</pre> |
| `isAPIVersion` | **of**: *string*. Expected `apiVersion` of manifest. | Assert the `apiVersion` value **of** manifest, is equilevant to:<br/><pre>equal:<br/> path: apiVersion<br/> value: ...<br/> | <pre>isAPIVersion:<br/> of: v2</pre> |
| `hasDocuments` | **count**: *int*. Expected count of documents rendered. | Assert the documents count rendered by the `template` specified. The `documentIndex` option is ignored here. | <pre>hasDocuments:<br/> count: 2</pre> |
| `containsDocument` | **kind**: *string*. Expected `kind` of manifest.<br/> **apiVersion**: *string*. Expected `apiVersion` of manifest.<br/>**name**: *string, optional*. The value of the `metadata.name`.<br/>**namespace**: *string, optional*. The value of the `metadata.namespace`. | Asserts the documents rendered by the `kind` and `apiVersion` specified. | <pre>containsDocument:<br/> kind: Deployment<br/> apiVersion: apps/v1<br/> name:foo<br/> namespace: bar</pre> |
| `matchSnapshot` | **path**: *string*. The `set` path for snapshot. | Assert the value of **path** is the same as snapshotted last time. Check [doc](./README.md#snapshot-testing) below. | <pre>matchSnapshot:<br/> path: spec</pre> |
| `matchSnapshotRaw` | | Assert the value in the NOTES.txt is the same as snapshotted last time. Check [doc](./README.md#snapshot-testing) below. | <pre>matchSnapshotRaw: {}<br/></pre> |
| `failedTemplate` | **errorMessage**: *string*. The (human readable) `errorMessage` that should occur. | Assert the value of **errorMessage** is the same as the human readable template error. | <pre>failedTemplate:<br/> errorMessage: Required value<br/></pre> |


### Antonym and `not`

Notice that there are some antonym assertions, the following two assertions actually have same effect:
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.organization=quintush

# This is the name and version displayed in the SonarCloud UI.
sonar.projectName=helm-unittest
sonar.projectVersion=0.2.7
sonar.projectVersion=0.2.8

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Define all sources and exclude test-, and vendor files.
Expand Down

0 comments on commit a12ec70

Please sign in to comment.