switch systemd-journald for sshd for arch service test

the running tests run second because of alphabetical order, and stopping sshd
does not kill off the running connection, so we know that sshd has to be on
arch for us to connect, so stop it with dead and start it back with running.

It is also not possible to stop the systemd-journald process without shutting
down the full machine.
This commit is contained in:
Daniel Wallace 2018-01-19 15:16:01 -07:00
parent 7bc60c56d4
commit 0ba39a7108
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ class ServiceModuleTest(ModuleCase):
if os_family == 'RedHat':
self.service_name = 'crond'
elif os_family == 'Arch':
self.service_name = 'systemd-journald'
self.service_name = 'sshd'
cmd_name = 'systemctl'
elif os_family == 'MacOS':
self.service_name = 'org.ntp.ntpd'

View file

@ -31,7 +31,7 @@ class ServiceTest(ModuleCase, SaltReturnAssertsMixin):
if os_family == 'RedHat':
self.service_name = 'crond'
elif os_family == 'Arch':
self.service_name = 'systemd-journald'
self.service_name = 'sshd'
cmd_name = 'systemctl'
elif os_family == 'MacOS':
self.service_name = 'org.ntp.ntpd'