Created
August 4, 2016 21:57
-
-
Save tas50/4a8e5719aa0b3e65971fd877f325d403 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MBP:~/dev/chef-cookbooks/sudo (testing_updates) kitchen verify create-ubuntu-1204 | |
| -----> Starting Kitchen (v1.10.2) | |
| -----> Verifying <create-ubuntu-1204>... | |
| Use `/Users/tsmith/dev/chef-cookbooks/sudo/test/integration/create` for testing | |
| Target: ssh://[email protected]:2222 | |
| ✔ | |
| ✔ | |
| Summary: 7 successful, 0 failures, 0 skipped | |
| The test: | |
| describe file('/etc/sudoers.d/bob') do | |
| it { should be_file } | |
| it { should be_owned_by 'root' } | |
| its('group') { should eq 'root' } | |
| its('mode') { should eq 288 } | |
| end | |
| describe file('/etc/sudoers.d/tomcat') do | |
| it { should be_file } | |
| it { should be_owned_by 'root' } | |
| its('group') { should eq 'root' } | |
| its('mode') { should eq 288 } | |
| its('content') { should match(/^%tomcat ALL=\(app_user\) \/etc\/init.d\/tomcat restart$\n^%tomcat ALL=\(app_user\) \/etc\/init.d\/tomcat stop$\n^%tomcat ALL=\(app_user\) \/etc\/init.d\/tomcat start$/m) } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment