Skip to content

Commit

Permalink
Merge pull request #117 from SUSE-Enceladus/gce-services
Browse files Browse the repository at this point in the history
Update GCE services test.
  • Loading branch information
rjschwei authored Aug 14, 2018
2 parents 51ab296 + 7b06d44 commit 4a9379f
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions usr/share/lib/ipa/tests/SLES/GCE/test_sles_gce_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@


@pytest.mark.parametrize('name', [
('google-accunts-daemon.service'),
('google-clock-skew-daemon.service'),
('google-instance-setup.service'),
('google-ip-forwarding-daemon.service'),
('google-shutdown-scripts.service'),
('google-startup-scripts.service'),
'google-accounts-daemon.service',
'google-clock-skew-daemon.service',
'google-network-daemon.service',
'google-shutdown-scripts.service'
])
def test_sles_gce_services(check_service, name):
def test_sles_gce_running_services(check_service, name):
assert check_service(name)


@pytest.mark.parametrize('name', [
'google-instance-setup.service',
'google-startup-scripts.service',
'google-shutdown-scripts.service' # Exits but remains active
])
def test_sles_gce_one_shot_services(host, name):
service = host.service(name)
assert service.is_enabled

output = host.run(
"systemctl show -p Result {0} | sed 's/Result=//g'".format(name)
)
assert output.stdout.strip() == 'success'

0 comments on commit 4a9379f

Please sign in to comment.