[openstack-dev] [puppet] how to run rspec tests? r10k issue

Iury Gregory iurygregory at gmail.com
Fri Feb 19 02:07:35 UTC 2016


Well, since we need to manually run "bundle install", we can pass the path
to where we want the gems but always require an extra argument is not the
best way.

2016-02-18 22:48 GMT-03:00 Matt Fischer <matt at mattfischer.com>:

> I ended up symlinking the r10k binary I have installed to the place it
> wants it to be and it worked. I do have that in my Gemfile. Question is,
> can we make this work without manual steps?
>
> On Thu, Feb 18, 2016 at 4:57 PM, Alex Schultz <aschultz at mirantis.com>
> wrote:
>
>>
>>
>> On Thu, Feb 18, 2016 at 3:26 PM, Matt Fischer <matt at mattfischer.com>
>> wrote:
>>
>>> Is anyone able to share the secret of running spec tests since the r10k
>>> transition? bundle install && bundle exec rake spec have issues because
>>> r10k is not being installed. Since I'm not the only one hopefully this
>>> question will help others.
>>>
>>> +
>>> PUPPETFILE=/etc/puppet/modules/keystone/openstack/puppet-openstack-integration/Puppetfile
>>> + /var/lib/gems/1.9.1/bin/r10k puppetfile install -v
>>> /etc/puppet/modules/keystone/openstack/puppet-openstack-integration/functions:
>>> line 51: /var/lib/gems/1.9.1/bin/r10k: No such file or directory
>>> rake aborted!
>>>
>>
>> I assume you were trying to run the tests on the keystone module so it
>> should have been installed with the bundle install as it is listed in the
>> Gemfile[0].  Are you sure your module is up to date?
>>
>> -Alex
>>
>> [0] https://github.com/openstack/puppet-keystone/blob/master/Gemfile#L26
>>
>>
>>>
>>> __________________________________________________________________________
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> OpenStack-dev-request at 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-request at 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-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


*Att[]'sIury Gregory Melo Ferreira **Master student in Computer Science at
UFCG*
*E-mail:  iurygregory at gmail.com <iurygregory at gmail.com>*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160218/2a770bb0/attachment.html>


More information about the OpenStack-dev mailing list