The piece of Puppet code the spec testing is complaining about is here:

----------8< snip
8<-------------------------------------------------------------------------

  $servers = ntp_unpackservers(
    query_facts("is_ntp_server=true and sitename = ${sitename}",'ipaddress')
  )

----------8< snip
8<-------------------------------------------------------------------------

and the error I'm seeing is:

----------8< snip
8<-------------------------------------------------------------------------

     Puppet::Error:
       undefined method `collect' for "ipaddress":String at /home/<my
account>/puppet-module-src/ntp/spec/fixtures/modules/ntp/manifests/client.pp:8
on node redacted

----------8< snip
8<-------------------------------------------------------------------------

so the question is what defines "collect?"

The code sniglet is a query of PuppetDB that works well in our test and
production environments but I'm having issues trying to convince RSpec it's
working.

Thoughts? Suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAArvnv3ivnqNoQk2dFzuD3YYpy4p9YBY_XpCZUgc2wTT4vNsWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to