当md5sum属性添加到文件资源类型时? Serverspec的版本报告md5sum未找到。
describe file ('/etc/sysctl.conf' ) do
it { should be_file }
its(:md5sum) { should eq '07a47f3db13458ebc93b334973cc8720' }
its(:sha256sum) { should eq 'd63896fa456d47dde634c592d46d1d39cb6183fdbc450a2581b6f12d977ee2d1' }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
Failure/Error: its(:md5sum) { should eq '07a47f3db13458ebc93b334973cc8720' }
NoMethodError: undefined method `md5sum' for File "/etc/sysctl.conf":Serverspec::Type::File
apt-cache show ruby-serverspec
Package: ruby-serverspec
Version: 1.14.0-2