Upgrading chef-client in test-kitchen

Is there an easy way to upgrade the chef-client that was installed by knife-test? I’m trying to
write mini-test tests taking adv of :mode, :owner, :group file tests fixed in [CHEF-3235].

I would hate to build them all again with bento. Any suggestions?

John

You should be able to do that using heavywater's omnibus-updater cookbook:

Cheers, Torben
Am 29.09.2012 05:47 schrieb "John Dewey" john@dewey.ws:

Is there an easy way to upgrade the chef-client that was installed by
knife-test? I'm trying to
write mini-test tests taking adv of :mode, :owner, :group file tests fixed
in [CHEF-3235].

I would hate to build them all again with bento. Any suggestions?

John

Do you mean the package installed on the boxes we provide?

I’m planning to update those in the next week with 10.14.4. In the meantime you can update your local base boxes with this procedure:

You can also build a local copy of the boxes from bento too.

On Sep 28, 2012, at 21:47, “John Dewey” <john@dewey.wsmailto:john@dewey.ws> wrote:

Is there an easy way to upgrade the chef-client that was installed by knife-test? I’m trying to
write mini-test tests taking adv of :mode, :owner, :group file tests fixed in [CHEF-3235].

I would hate to build them all again with bento. Any suggestions?

John

Thanks Joshua -

That is exactly what I needed to know.

John

On Saturday, September 29, 2012 at 6:39 AM, Joshua Timberman wrote:

Do you mean the package installed on the boxes we provide?

I'm planning to update those in the next week with 10.14.4. In the meantime you can update your local base boxes with this procedure:

Replace $VAGRANTBOX with box names that should be repackaged with updates. Don't specify it for up, ssh, and package if you're not using a multi-VM vagrantfile · GitHub

You can also build a local copy of the boxes from bento too.

On Sep 28, 2012, at 21:47, "John Dewey" <john@dewey.ws (mailto:john@dewey.ws)> wrote:

Is there an easy way to upgrade the chef-client that was installed by knife-test? I'm trying to
write mini-test tests taking adv of :mode, :owner, :group file tests fixed in [CHEF-3235].

I would hate to build them all again with bento. Any suggestions?

John

On 28/09/12 11:47 PM, John Dewey wrote:

Is there an easy way to upgrade the chef-client that was installed by knife-test? I'm trying to
write mini-test tests taking adv of :mode, :owner, :group file tests fixed in [CHEF-3235].

I would hate to build them all again with bento. Any suggestions?

Also note that a few issues have been resolved in test-kitchen lately
with regards to minitest spec tests, so you'll need to use something
beyond 0.5.4 since by default it installs a fork of minitest-handler
(that issue is fixed post-0.5.4).

Additionally there is another issue fixed in Chef 10.14.4 for backwards
compatibility issue with minitest-chef-handler, but if you use
minitest-chef-handler 0.6.3 it'll work with previous versions as well.

--
Leif Madsen