test-kitchen icon indicating copy to clipboard operation
test-kitchen copied to clipboard

If always_update config is setup - Then only chef update (which does a chef install)

Open clickthisnick opened this issue 2 years ago • 1 comments

Description

Right now if you specify always_update in your kitchen.yml - If the policyfile lock is incorrect such that the command chef install fails, the kitchen tests will fail.

Instead if you are specifying always_update it should just run the chef update command which behind the scenes also does a chef install.

This also makes it faster, currently it is doing chef install then running chef update which also calls install

Issues Resolved

N/A

Type of Change

Feat - this perhaps is a fix

Check List

clickthisnick avatar Feb 13 '23 15:02 clickthisnick

It looks like the tests that are failing are also failing on main: https://github.com/test-kitchen/test-kitchen/pull/1920

clickthisnick avatar Feb 13 '23 16:02 clickthisnick