Skip to content

Commit

Permalink
Workaround CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Dec 1, 2021
1 parent a4c53bc commit d46aa9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/helpers/acceptance/tests/hiera_shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ class { 'elasticsearch': ensure => 'absent', oss => #{v[:oss]} }
end

describe 'with hieradata' do
nodename = SecureRandom.hex(10)
# Remove leading 0: 01234567 is valid octal, but 89abcdef is not and the
# serialisation will cause trouble for the test suite (quoting the value?).
nodename = SecureRandom.hex(10).sub(%r{^0+}, '')
include_examples(
'hiera tests with',
es_config.merge('node.name' => nodename)
Expand Down

0 comments on commit d46aa9f

Please sign in to comment.