File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 66lint :
77 name : yamllint
88platforms :
9+ - name : ubuntu-trusty
10+ image : ubuntu-upstart
11+ command : /sbin/init
12+ privileged : True
913 - name : ubuntu-xenial
10- image : solita/ubuntu-systemd:latest
14+ image : solita/ubuntu-systemd
1115 command : /sbin/init
1216 privileged : True
1317 capabilities :
Original file line number Diff line number Diff line change @@ -26,8 +26,14 @@ def test_sssd_service_state(host):
2626
2727
2828def test_sshd_service_state (host ):
29- assert host .service ('sshd' ).is_enabled
30- assert host .service ('sshd' ).is_running
29+ ssh_service_name = {
30+ 'centos' : 'sshd' ,
31+ 'ubuntu' : 'ssh'
32+ }
33+ assert host .service (
34+ ssh_service_name [host .system_info .distribution ]).is_enabled
35+ assert host .service (
36+ ssh_service_name [host .system_info .distribution ]).is_running
3137
3238
3339def test_ssh_access (host ):
Original file line number Diff line number Diff line change 1515
1616- name : sshd | ensure sshd service is enabled
1717 service :
18- name : sshd
18+ name : " {{ sssd_ldap_ssh_service }} "
1919 enabled : true
20+
21+ - name : sshd | ensure sshd service is started
22+ service :
23+ name : " {{ sssd_ldap_ssh_service }}"
24+ state : started
You can’t perform that action at this time.
0 commit comments