- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Re: Meet test-kitchen
- Date: Fri, 17 Aug 2012 17:03:43 -0600
Ohai,
On Aug 17, 2012, at 4:52 PM, Akzhan Abdulin
<
>
wrote:
>
BTW, is it helps to test selfmade cookbooks too?
Totally! We consider our own cookbooks to be self-made, after all :).
>
Interesting... Will try to convert my old vagrant/chef solutions to test my
>
code.
If you have existing baseboxes that you want to use instead of the ones
provided by bento, or used by default in test-kitchen, put this in your
test/kitchen/Kitchenfile:
platform :platform_to_test do
version "its version" do
box "name-of-existing-box"
box_url "where it can be downloaded but not used if it exists"
end
end
For example, I had an existing vagrant box:
% vagrant box list
precise64
So I have just this in my Kitchenfile:
platform :ubuntu do
version "12.04" do
box "precise64"
box_url "
https://s3.amazonaws.com/mybucket/precise64.box
end
end
(the url is made up, I built it locally)
--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman
Archive powered by MHonArc 2.6.16.