Testing Puppet dsl functions

66 views
Skip to first unread message

Alessandro Franceschi

unread,
Feb 15, 2016, 6:12:39 AM2/15/16
to Puppet Users
Hi all,
I've started with some excitement to play with functions written in Puppet DSL, very simple things for the moment that do their work as expected: 

still I'm having issues with Travis and rspec Travis tests:

I'm getting errors when checking manifests syntax with rake validate (they do not appear with a puppet parser validate).
A full output is pasted below or available here: https://travis-ci.org/example42/puppet-tp/builds/109317800

Any hint or link to relevant info?

Thank you
al

$ bundle exec rake validate spec SPEC_OPTS='--format documentation'

Blacksmith needed only to push to the Forge

ruby -c lib/puppet/application/tp.rb

Syntax OK

ruby -c lib/puppet/commons/cache.rb

Syntax OK

ruby -c lib/puppet/face/tp.rb

Syntax OK

ruby -c lib/puppet/parser/functions/bool2ensure.rb

Syntax OK

ruby -c lib/puppet/parser/functions/tp_content.rb

Syntax OK

ruby -c lib/puppet/parser/functions/tp_lookup.rb

Syntax OK

ruby -c lib/puppet/parser/functions/tp_pick.rb

Syntax OK

---> syntax:manifests

Internal Error: Puppet Context ':loaders' missing - cannot define any functions

Internal Error: Puppet Context ':loaders' missing - cannot define any functions

Internal Error: Puppet Context ':loaders' missing - cannot define any functions

Internal Error: Puppet Context ':loaders' missing - cannot define any functions

rake aborted!

/home/travis/.rvm/gems/ruby-2.1.4/gems/puppet-syntax-2.1.0/lib/puppet-syntax/tasks/puppet-syntax.rb:47:in `block (2 levels) in initialize'

/home/travis/.rvm/gems/ruby-2.1.4/gems/puppetlabs_spec_helper-1.0.1/lib/puppetlabs_spec_helper/rake_tasks.rb:257:in `block in <top (required)>'

/home/travis/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `eval'

/home/travis/.rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `<main>'

Tasks: TOP => syntax => syntax:manifests

(See full trace by running task with --trace)

Henrik Lindberg

unread,
Feb 15, 2016, 8:20:22 AM2/15/16
to puppet...@googlegroups.com
Known issue with puppet parser validate command PUP-5895 for which there
is a PR open right now.

Will be fixed in Puppet 4.4.0.

- henrik


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Reply all
Reply to author
Forward
0 new messages