blob: 21163cfbf5632855998f7aa3200933399fec8f8b [file] [log] [blame]
Petr Michalec35277532017-02-28 23:16:58 +01001describe 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/ }
8end