| Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 1 | describe command('grep "" /etc/sudoers.d/*') do |
| 2 | its('stdout') { should_not match /sudogroup0/ } | ||||
| 3 | its('stdout') { should match /salt-ops ALL=\(DBA\) NOPASSWD/ } | ||||
| 4 | its('stdout') { should match /sudogroup2.*localhost=/ } | ||||
| 5 | its('stdout') { should match /db-ops.*less/ } | ||||
| 6 | its('stdout') { should_not match /sudogroup0/ } | ||||
| 7 | its('stdout') { should_not match /sudogroup1 .* !SUDO_RESTRICTED_SU/ } | ||||
| 8 | end | ||||