Re: [openstack-dev] [Puppet] Requirements for running puppet unit tests?

2018-07-03 Thread Dmitry Tantsur

On 07/02/2018 08:57 PM, Lars Kellogg-Stedman wrote:
On Thu, Jun 28, 2018 at 8:04 PM, Lars Kellogg-Stedman > wrote:


What is required to successfully run the rspec tests?


On the odd chance that it might be useful to someone else, here's the Docker 
image I'm using to successfully run the rspec tests for puppet-keystone:


https://github.com/larsks/docker-image-rspec

Available on docker hub  as larsks/rspec.


Nice, thanks! Last time I tried the tests my ruby was too new, so I'll give this 
a try.




Cheers,

--
Lars Kellogg-Stedman mailto:l...@redhat.com>>



__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Puppet] Requirements for running puppet unit tests?

2018-07-02 Thread Lars Kellogg-Stedman
On Thu, Jun 28, 2018 at 8:04 PM, Lars Kellogg-Stedman 
wrote:

> What is required to successfully run the rspec tests?


On the odd chance that it might be useful to someone else, here's the
Docker image I'm using to successfully run the rspec tests for
puppet-keystone:

  https://github.com/larsks/docker-image-rspec

Available on docker hub  as larsks/rspec.

Cheers,

-- 
Lars Kellogg-Stedman 
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Puppet] Requirements for running puppet unit tests?

2018-06-28 Thread Lars Kellogg-Stedman
Hey folks,

I'm looking for some guidance on how to successfully run rspec tests
for openstack puppet modules (specifically, puppet-keystone).  I
started with CentOS 7, but running the 'bundle install command' told
me:

  Gem::InstallError: public_suffix requires Ruby version >= 2.1.
  An error occurred while installing public_suffix (3.0.2), and Bundler cannot 
continue.
  Make sure that `gem install public_suffix -v '3.0.2'` succeeds before 
bundling.

So I tried it on my Fedora 28 system, and while the 'bundle install'
completed successfully, running `bundle exec rake lint` told me:

  $ bundle exec rake lint
  
/home/lars/vendor/bundle/ruby/2.4.0/gems/puppet-2.7.26/lib/puppet/util/monkey_patches.rb:93:
 warning: constant ::Fixnum is deprecated
  rake aborted!
  NoMethodError: undefined method `<<' for nil:NilClass

...followed by a traceback.

So then I tried it on Ubuntu 18.04, and the bundle install fails with:

  Gem::RuntimeRequirementNotMetError: grpc requires Ruby version < 2.5, >= 2.0. 
The current ruby
  version is 2.5.0.
  An error occurred while installing grpc (1.7.0), and Bundler cannot continue.

And finally I tried Ubuntu 17.10.  The bundle install completed
successfully, but the 'rake lint' failed with:

  $ bundle exec rake lint
  
/home/lars/vendor/bundle/ruby/2.3.0/gems/puppet-2.7.26/lib/puppet/defaults.rb:164:
 warning: key :queue_type is duplicated and overwritten on line 165
  rake aborted!
  can't modify frozen Symbol

What is required to successfully run the rspec tests?

-- 
Lars Kellogg-Stedman  | larsks @ {irc,twitter,github}
http://blog.oddbit.com/|

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev