mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
Merge pull request #6120 from inspec/vasundhara/clean_warnings_on_verify_pipline
Fix the key duplication error warning in the mock_loader.rb
This commit is contained in:
commit
a0ec675d81
1 changed files with 3 additions and 4 deletions
|
@ -399,9 +399,6 @@ class MockLoader
|
||||||
"cgget -n -r cpuset.cpus carrotking" => cmd.call("cgget-n-r"),
|
"cgget -n -r cpuset.cpus carrotking" => cmd.call("cgget-n-r"),
|
||||||
"cgget -n -r memory.stat carrotking" => cmd.call("cgget-n-r-stat"),
|
"cgget -n -r memory.stat carrotking" => cmd.call("cgget-n-r-stat"),
|
||||||
%{sh -c 'type "cgget"'} => empty.call,
|
%{sh -c 'type "cgget"'} => empty.call,
|
||||||
# x509_certificate
|
|
||||||
%{sh -c 'type "openssl"'} => empty.call,
|
|
||||||
"openssl x509 -noout -purpose -in test_certificate.rsa.crt.pem" => cmd.call("x509-crt-purpose"),
|
|
||||||
# mail_alias
|
# mail_alias
|
||||||
"cat /etc/aliases | grep '^daemon:'" => cmd.call("mail-alias"),
|
"cat /etc/aliases | grep '^daemon:'" => cmd.call("mail-alias"),
|
||||||
# php_config
|
# php_config
|
||||||
|
@ -421,8 +418,10 @@ class MockLoader
|
||||||
"/usr/sbin/auditctl -s | grep pid" => cmd.call("auditctl-s-pid"),
|
"/usr/sbin/auditctl -s | grep pid" => cmd.call("auditctl-s-pid"),
|
||||||
"/usr/sbin/auditctl -l" => cmd.call("auditctl-l"),
|
"/usr/sbin/auditctl -l" => cmd.call("auditctl-l"),
|
||||||
%{sh -c 'type "/usr/sbin/auditctl"'} => empty.call,
|
%{sh -c 'type "/usr/sbin/auditctl"'} => empty.call,
|
||||||
# x509_private_key
|
# x509_certificate
|
||||||
%{sh -c 'type "openssl"'} => empty.call,
|
%{sh -c 'type "openssl"'} => empty.call,
|
||||||
|
"openssl x509 -noout -purpose -in test_certificate.rsa.crt.pem" => cmd.call("x509-crt-purpose"),
|
||||||
|
# x509_private_key
|
||||||
%{type "openssl"} => empty.call,
|
%{type "openssl"} => empty.call,
|
||||||
"openssl rsa -in /home/openssl_activity/bob_private.pem -check -noout" => empty.call,
|
"openssl rsa -in /home/openssl_activity/bob_private.pem -check -noout" => empty.call,
|
||||||
"openssl rsa -in /home/openssl_activity/alice_private.pem -check -noout -passin pass:password@123" => empty.call,
|
"openssl rsa -in /home/openssl_activity/alice_private.pem -check -noout -passin pass:password@123" => empty.call,
|
||||||
|
|
Loading…
Reference in a new issue