upstart_service: add version mock for ubuntu

This commit is contained in:
Stephan Renatus 2016-02-05 12:01:33 +01:00 committed by Christoph Hartmann
parent f63a8ad1d5
commit 688709356c
2 changed files with 7 additions and 0 deletions

View file

@ -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'),

View 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.