From 778ae4ade046430e89eb5db0f02c336f1fdd93ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 30 Nov 2021 17:48:14 -1000 Subject: [PATCH] Workaround CI failure --- spec/helpers/acceptance/tests/hiera_shared_examples.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/helpers/acceptance/tests/hiera_shared_examples.rb b/spec/helpers/acceptance/tests/hiera_shared_examples.rb index 93d9434ba..b06dfe998 100644 --- a/spec/helpers/acceptance/tests/hiera_shared_examples.rb +++ b/spec/helpers/acceptance/tests/hiera_shared_examples.rb @@ -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)