Created
December 11, 2014 18:57
-
-
Save neilhwatson/20dcb107ee27929273c3 to your computer and use it in GitHub Desktop.
Testing EFL with serverspec
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
| vm.swappiness = 67 | |
| cd test/masterfiles; cf-agent -Kf ./promises.cf -D 019_efl_test | |
| cd test/serverspec; rspec spec/localhost/019_efl_test_spec.rb | |
| . | |
| Finished in 0.04985 seconds | |
| 1 example, 0 failures | |
| /sbin/sysctl vm.swappiness='60' | |
| vm.swappiness = 60 | |
| cat test/serverspec/spec/localhost/019_efl_test_spec.rb | |
| require 'spec_helper' | |
| describe "019 efl test" do | |
| context linux_kernel_parameter( 'vm.swappiness' ) do | |
| its(:value) { should eq 63 } | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment