When you test your cookbook in Chef Test Kitchen and get the following error, delete the “Policyfile.rb” from your Chef cookbook directory.
$$$$$$ You must set your run_list in your policyfile instead of kitchen config. The run_list your config will be ignored. $$$$$$ Ignored run_list: ["recipe[...::...]"] Preparing dna.json Exporting cookbook dependencies from Policyfile /tmp/... Error: Invalid lockfile data Reason: (ChefDK::DependencyConflict) Cookbook ... (...) has dependency constraints that cannot be met by the existing cookbook set: Cookbook ... isn't included in the existing cookbook set.