Created
March 15, 2015 09:13
-
-
Save ikuwow/94006236034e0f08da43 to your computer and use it in GitHub Desktop.
'No backend type is specified. Fall back to :exec type.'が大量に出てくる場合の対処法 ref: http://qiita.com/ikuwow/items/abdce2b4118f07241bc8
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
$ kitchen verify | |
-----> Starting Kitchen (v1.3.1) | |
-----> Verifying <default-ubuntu-1410>... | |
Removing /tmp/busser/suites/serverspec | |
Uploading /tmp/busser/suites/serverspec/base_spec.rb (mode=0644) | |
-----> Running serverspec test suite | |
/opt/chef/embedded/bin/ruby -I/tmp/busser/suites/serverspec -I/tmp/busser/gems/gems/rspec-support-3.2.2/lib:/tmp/busser/gems/gems/rspec-core-3.2.2/lib /opt/chef/embedded/bin/rspec --pattern /tmp/busser/suites/serverspec/\*\*/\*_spec.rb --color --format documentation --default-path /tmp/busser/suites/serverspec | |
Command "getenforce" | |
stdout | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
No backend type is specified. Fall back to :exec type. | |
should match "Disabled" | |
Finished in 0.11633 seconds (files took 0.30969 seconds to load) | |
1 example, 0 failures | |
Finished verifying <default-ubuntu-1410> (0m1.87s). |
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
$ serverspec-init | |
Select OS type: | |
1) UN*X | |
2) Windows | |
Select number: 1 | |
Select a backend type: | |
1) SSH | |
2) Exec (local) | |
Select number: |
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
$ kitchen verify | |
-----> Starting Kitchen (v1.3.1) | |
-----> Verifying <default-ubuntu-1410>... | |
Removing /tmp/busser/suites/serverspec | |
Uploading /tmp/busser/suites/serverspec/base_spec.rb (mode=0644) | |
-----> Running serverspec test suite | |
/opt/chef/embedded/bin/ruby -I/tmp/busser/suites/serverspec -I/tmp/busser/gems/gems/rspec-support-3.2.2/lib:/tmp/busser/gems/gems/rspec-core-3.2.2/lib /opt/chef/embedded/bin/rspec --pattern /tmp/busser/suites/serverspec/\*\*/\*_spec.rb --color --format documentation --default-path /tmp/busser/suites/serverspec | |
Command "getenforce" | |
stdout | |
should match "Disabled" | |
Finished in 0.07994 seconds (files took 0.28063 seconds to load) | |
1 example, 0 failures | |
Finished verifying <default-ubuntu-1410> (0m1.58s). | |
-----> Verifying <default-centos-66>... | |
Removing /tmp/busser/suites/serverspec | |
Uploading /tmp/busser/suites/serverspec/base_spec.rb (mode=0644) | |
-----> Running serverspec test suite | |
/opt/chef/embedded/bin/ruby -I/tmp/busser/suites/serverspec -I/tmp/busser/gems/gems/rspec-support-3.2.2/lib:/tmp/busser/gems/gems/rspec-core-3.2.2/lib /opt/chef/embedded/bin/rspec --pattern /tmp/busser/suites/serverspec/\*\*/\*_spec.rb --color --format documentation --default-path /tmp/busser/suites/serverspec | |
Command "getenforce" | |
stdout | |
should match "Disabled" | |
Finished in 0.02523 seconds (files took 0.26327 seconds to load) | |
1 example, 0 failures | |
Finished verifying <default-centos-66> (0m1.52s). | |
-----> Kitchen is finished. (0m4.35s) |
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
require 'serverspec' | |
set :backend, :exec | |
describe command("getenforce") do | |
its(:stdout) { should match 'Disabled' } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment