mirror of
https://github.com/inspec/inspec
synced 2024-11-26 14:40:26 +00:00
upstart_service: add version mock for ubuntu
This commit is contained in:
parent
f63a8ad1d5
commit
688709356c
2 changed files with 7 additions and 0 deletions
|
@ -151,6 +151,8 @@ class MockLoader
|
|||
'initctl status ssh' => cmd.call('initctl-status-ssh'),
|
||||
# service config for upstart on ubuntu
|
||||
'initctl show-config ssh' => cmd.call('initctl-show-config-ssh'),
|
||||
# upstart version on ubuntu
|
||||
'initctl --version' => cmd.call('initctl--version'),
|
||||
# show ssh service Centos 7
|
||||
'systemctl show --all sshd' => cmd.call('systemctl-show-all-sshd'),
|
||||
'/path/to/systemctl show --all sshd' => cmd.call('systemctl-show-all-sshd'),
|
||||
|
|
5
test/unit/mock/cmd/initctl--version
Normal file
5
test/unit/mock/cmd/initctl--version
Normal file
|
@ -0,0 +1,5 @@
|
|||
initctl (upstart 1.12.1)
|
||||
Copyright (C) 2006-2014 Canonical Ltd., 2011 Scott James Remnant
|
||||
|
||||
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR
|
||||
A PARTICULAR PURPOSE.
|
Loading…
Reference in a new issue