Pins rspec-expectations and uri gems to fix compatibility with various legacy versions of Ruby/Chefspec.
Makes the Rocky image pretend to be CentOS. A recent change to https://omnitruck.chef.io/install.sh (which is downloaded by kitchen before running the actual test) made Rocky to be recognized as rocky, not el. The script later tries to download file https://omnitruck.chef.io/stable/chef/metadata?v=16.17.4&p=rocky&pv=8&m=x86_64 (rocky is the platform passed to it) - these metadata files don't exist for Rocky for old Chef versions, even though this has been fix for newer versions of Chef as per https://github.com/chef/omnitruck/issues/600
Fixes the conditions on when we include the security-agent recipe
What does this PR do?
rspec-expectations
anduri
gems to fix compatibility with various legacy versions of Ruby/Chefspec.https://omnitruck.chef.io/install.sh
(which is downloaded by kitchen before running the actual test) made Rocky to be recognized asrocky
, notel
. The script later tries to download filehttps://omnitruck.chef.io/stable/chef/metadata?v=16.17.4&p=rocky&pv=8&m=x86_64
(rocky
is the platform passed to it) - these metadata files don't exist for Rocky for old Chef versions, even though this has been fix for newer versions of Chef as per https://github.com/chef/omnitruck/issues/600