|
8 | 8 | it { should be_owned_by 'root' }
|
9 | 9 | it { should be_grouped_into 'root' }
|
10 | 10 | its('mode') { should cmp '0644' }
|
11 |
| - its('content') { should include 'This is another example file from SaltStack template-formula.' } |
12 |
| - its('content') { should include '"added_in_pillar": "pillar_value"' } |
13 |
| - its('content') { should include '"added_in_defaults": "defaults_value"' } |
14 |
| - its('content') { should include '"added_in_lookup": "lookup_value"' } |
15 |
| - its('content') { should include '"config": "/etc/template-formula.conf"' } |
| 11 | + its('content') do |
| 12 | + should include( |
| 13 | + 'This is another example file from SaltStack template-formula.' |
| 14 | + ) |
| 15 | + end |
| 16 | + its('content') { should include('"added_in_pillar": "pillar_value"') } |
| 17 | + its('content') { should include('"added_in_defaults": "defaults_value"') } |
| 18 | + its('content') { should include('"added_in_lookup": "lookup_value"') } |
| 19 | + its('content') { should include('"config": "/etc/template-formula.conf"') } |
16 | 20 | its('content') { should include '"lookup": {"added_in_lookup": "lookup_value",' }
|
17 |
| - its('content') { should include '"pkg": {"name": "' } |
18 |
| - its('content') { should include '"service": {"name": "' } |
19 |
| - its('content') { should include '"tofs": {"files_switch": ["any/path/can/be/used/here", "id", "roles", "osfinger", "os", "os_family"], "source_files": {"template-config-file-file-managed": ["example.tmpl.jinja"], "template-subcomponent-config-file-file-managed": ["subcomponent-example.tmpl.jinja"]}' } |
20 |
| - its('content') { should include '"arch": "amd64"' } |
21 |
| - its('content') { should include '"winner": "pillar"}' } |
22 |
| - its('content') { should include 'winner of the merge: pillar' } |
| 21 | + its('content') { should include('"pkg": {"name": "') } |
| 22 | + its('content') { should include('"service": {"name": "') } |
| 23 | + its('content') do |
| 24 | + should include( |
| 25 | + '"tofs": {"files_switch": ["any/path/can/be/used/here", "id", '\ |
| 26 | + '"roles", "osfinger", "os", "os_family"], "source_files": '\ |
| 27 | + '{"template-config-file-file-managed": ["example.tmpl.jinja"], '\ |
| 28 | + '"template-subcomponent-config-file-file-managed": '\ |
| 29 | + '["subcomponent-example.tmpl.jinja"]}' |
| 30 | + ) |
| 31 | + end |
| 32 | + its('content') { should include('"arch": "amd64"') } |
| 33 | + its('content') { should include('"winner": "pillar"}') } |
| 34 | + its('content') { should include('winner of the merge: pillar') } |
23 | 35 | end
|
24 | 36 | end
|
0 commit comments