-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(inspec): verify the proper loading of “bar” role parameters
- we must have a new top level key “added_in_role_bar” - the “winner” key define in role “bar” must be overrode by pillars.
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
# | ||
# Variables specific to the role "bar" looked up with salt['config.get']('roles'). | ||
# | ||
# This is only for demonstration and testing purpose: | ||
# - we test the presence of parameter "added_in_role_bar" and the | ||
# corresponding value | ||
# - we make test that the "winner" parameter is properly overwritten | ||
# by pillar | ||
--- | ||
strategy: 'overwrite' | ||
values: | ||
added_in_role_bar: 'bar_role_value' | ||
winner: 'role bar' |
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