Skip to content

Commit

Permalink
Hiera: Test for wrong interpolation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 8, 2024
1 parent 527c28b commit bb652bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions spec/fixtures/hiera/hiera_badkey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ typical:typo::warning1: true
noCamelCase::warning3: true
no-hyphens::warning4: true
:picky::warning5: true
this_is_not_ok:
"%{lookup('this_is_ok'):3306}": []
2 changes: 1 addition & 1 deletion spec/puppet-syntax/hiera_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

it 'returns warnings for invalid keys' do
hiera_yaml = 'hiera_badkey.yaml'
examples = 5
examples = 6
files = fixture_hiera(hiera_yaml)
res = subject.check(files)
(1..examples).each do |n|
Expand Down

0 comments on commit bb652bf

Please sign in to comment.