I’m currently testing whyrun on a few cookbooks with Chef 10.14.0.rc.0.
apt_repository “zend” do
package “zendserverce” do
On this whyrun breaks:
- Whyrun not supported for apt_repository[zend], bypassing load. (Skipped:
whyrun not supported by provider Chef::Provider::AptRepository)
(up to date)
FATAL: Chef::Exceptions: package[zendserverce] (bjtest::default
line 20) had an error: Chef::Exceptions: No version specified, and
no candidate version available for zend-server-ce-php-5.3
I understand why this breaks, but is this intended or future work ?
package “htop” otherwise assumed to be installed correctly (only because
the standard ubuntu apt-repo was already added
and whyrun can find the package via an apt package search) .
I think whyrun should do the same (except the apt package search) with
packages that are in an apt-repo that isn’t already added/activated.
(assume the apt-repo is correctly added and the package is in the repo and
is able to install)
I have many cookbooks which add custom repo’s and I think there are also
many public cookbooks with custom repo’s.
At the moment you can’t test this cookbooks with whyrun.