[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#952022: ruby-puppet-syntax: FTBFS: ERROR: Test "ruby2.7" failed: LoadError:



Package: src:ruby-puppet-syntax
Followup-For: Bug #952022

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

The formentioned issue can probably be closed by applying this patch:

- --- a/lib/rspec-puppet/support.rb
+++ b/lib/rspec-puppet/support.rb
@@ -440,7 +440,7 @@
     end
 
     def escape_special_chars(string)
- -      string.gsub!(/\$/, "\\$")
+      string.gsub(/\$/, "\\$")
       string
     end

But then there are new errors (see below). I'll stop here and leave this to
someone more experienced. So if anyone wants to go on, please feel free to do
so.

Regards, Daniel



Failures:

  1) escape is expected to contain File[/tmp/escape] with content =~ /\$MSG foo/
     Failure/Error: Puppet::Resource::Catalog.indirection.find(node.name, :use_node => node)

     Puppet::ParseErrorWithIssue:
       Could not parse for environment rp_env: Illegal variable name, The given name 'MSG' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ (line: 52, column: 31) on node (node's fully qualified domain name)
     # ./lib/rspec-puppet/adapters.rb:84:in `catalog'
     # ./lib/rspec-puppet/adapters.rb:162:in `catalog'
     # ./lib/rspec-puppet/support.rb:415:in `build_catalog_without_cache'
     # ./lib/rspec-puppet/support.rb:426:in `block in build_catalog'
     # ./lib/rspec-puppet/cache.rb:17:in `get'
     # ./lib/rspec-puppet/support.rb:425:in `build_catalog'
     # ./lib/rspec-puppet/support.rb:90:in `block in load_catalogue'
     # ./lib/rspec-puppet/support.rb:376:in `with_vardir'
     # ./lib/rspec-puppet/support.rb:83:in `load_catalogue'
     # ./lib/rspec-puppet/example/class_example_group.rb:7:in `catalogue'
     # ./lib/rspec-puppet/support.rb:12:in `block in subject'
     # ./lib/rspec-puppet/matchers/create_generic.rb:84:in `matches?'
     # ./spec/classes/escape_spec.rb:6:in `block (2 levels) in <top (required)>'

  2) escape::def is expected to contain File[/tmp/bla] with content =~ /bar \$BLA/
     Failure/Error: Puppet::Resource::Catalog.indirection.find(node.name, :use_node => node)

     Puppet::ParseErrorWithIssue:
       Could not parse for environment rp_env: Illegal variable name, The given name 'BLA' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ (line: 52, column: 43) on node (node's fully qualified domain name)
     # ./lib/rspec-puppet/adapters.rb:84:in `catalog'
     # ./lib/rspec-puppet/adapters.rb:162:in `catalog'
     # ./lib/rspec-puppet/support.rb:415:in `build_catalog_without_cache'
     # ./lib/rspec-puppet/support.rb:426:in `block in build_catalog'
     # ./lib/rspec-puppet/cache.rb:17:in `get'
     # ./lib/rspec-puppet/support.rb:425:in `build_catalog'
     # ./lib/rspec-puppet/support.rb:90:in `block in load_catalogue'
     # ./lib/rspec-puppet/support.rb:376:in `with_vardir'
     # ./lib/rspec-puppet/support.rb:83:in `load_catalogue'
     # ./lib/rspec-puppet/example/define_example_group.rb:7:in `catalogue'
     # ./lib/rspec-puppet/support.rb:12:in `block in subject'
     # ./lib/rspec-puppet/matchers/create_generic.rb:84:in `matches?'
     # ./spec/defines/escape_def_spec.rb:7:in `block (2 levels) in <top (required)>'




- -- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAl54zT4ACgkQS80FZ8KW
0F16iRAAhCzC8ny3ofA8J3tjEAQ2/E+bP8FR7fH+WmGxvKhkdNMpZPMpsrjHvgu8
8A434pd+E4wzAAPbnmcuv6iNSqJS9KVU4pkaTXEpSdgGaa+9WqUO6I0adBC2kZ0Y
mjQa4/sLiWCjd5vLsqgG2idNwhMQLUc3AxIBTdBHRJSsPB0pYRfv3iRUSKT4m1Te
Wd4YsW9W7pyUmCNkEfmnEMLzOnkkIqA8a/+JJPRYhPUD+eTIBIWBB2DAZLQKbgwt
eMfwkIlvo5AlE916t9B6iPZRt2ScEXseJp7DGUBa/wxXFj0HIwq5qi5EgPHgAKQO
v4g23yU9dApPImIowTK0obsHkUuy6fu/aA3uePtVyC6dprwJIw8+E7VAQJG+awuz
E3/mMZzj5PAMYg1pb/EgSFifRY1kRb68vtmOZ+kch9opgIKt//MG8iaX//f9O4o0
XwR/YLgcmYLUp+UhPUevW+vhVUR5Z/rUk3YXrD+8SASmzAimxYfQcOvv+2hPlNTh
GBis3FDKztnXuUhBt+cRMr+ISnJiIzhh7hviwgBO7E6/8wow/UDX5pwwVvzc71Ad
sgtFVFxRdeXn1XxI0zJem1vHJXh6nNr2I7FZv8sI7hGaPKlT3o+wsF5P+VusDzFR
NggIa0eEl8EC5PjJcMTyVND8wRysYC9XE1e6CxZleq6VEtfqefI=
=E+Lb
-----END PGP SIGNATURE-----


Reply to: