-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update docs and output of matcher * Update docs and output of matcher
- Loading branch information
1 parent
2e27ed3
commit 7e70e27
Showing
9 changed files
with
83 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# v4 migration | ||
|
||
|
||
## Array matchers (e.g. user.groups) no longer allows duplicates | ||
|
||
Goss v0.3.X allowed: | ||
|
||
```yaml | ||
user: | ||
root: | ||
exists: true | ||
groups: | ||
- root | ||
- root | ||
- root | ||
``` | ||
Goss v0.4.x, will fail with the above as group "root" is only in the slice once. However, with goss v0.4.x the array may contain | ||
matchers. The test below is valid for v0.4.x but not valid for v0.3.x | ||
```yaml | ||
user: | ||
root: | ||
exists: true | ||
groups: | ||
- have-prefix: r | ||
``` | ||
## rpm now contains the full EVR version | ||
To enable the ability to compare RPM versions in the future, The version matching of rpm has changed | ||
from: | ||
``` | ||
rpm -q --nosignature --nohdrchk --nodigest --qf '%{VERSION}\n' package_name | ||
``` | ||
|
||
to: | ||
|
||
``` | ||
rpm -q --nosignature --nohdrchk --nodigest --qf '%|EPOCH?{%{EPOCH}:}:{}|%{VERSION}-%{RELEASE}\n' package_name | ||
``` | ||
|
||
## file.contains -> file.contents | ||
|
||
File contains attribute has been renamed to file.contents | ||
|
||
from: | ||
|
||
```yaml | ||
file: | ||
/tmp/foo: | ||
exists: true | ||
contains: [] | ||
``` | ||
to: | ||
``` | ||
file: | ||
/tmp/foo: | ||
exists: true | ||
contents: [] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters