Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

9 行
414B

  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