Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from RoboticCheese/jdh-make-safer-for-concurrency
Use a class Mutex to not run multiple driver instances concurrently
- Loading branch information
Showing
16 changed files
with
145 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
test/fixtures/cookbooks/kitchen-localhost-test/recipes/create_file.rb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Encoding: UTF-8 | ||
# | ||
# Cookbook Name:: kitchen-localhost-test | ||
# Recipe:: create_file | ||
# | ||
|
||
file '/tmp/testing_kitchen_localhost' do | ||
content 'This file generated by Chef' | ||
action :create | ||
end |
11 changes: 0 additions & 11 deletions
11
test/fixtures/cookbooks/kitchen-localhost-test/recipes/default.rb
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
test/fixtures/cookbooks/kitchen-localhost-test/recipes/delete_file.rb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Encoding: UTF-8 | ||
# | ||
# Cookbook Name:: kitchen-localhost-test | ||
# Recipe:: delete_file | ||
# | ||
|
||
file '/tmp/testing_kitchen_localhost' do | ||
action :delete | ||
end |
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
test/integration/delete_file/serverspec/localhost/file_spec.rb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Encoding: UTF-8 | ||
|
||
require 'spec_helper' | ||
|
||
describe file('/tmp/testing_kitchen_localhost') do | ||
it 'does not exist' do | ||
expect(subject).not_to be_file | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../create_file/serverspec/spec_helper.rb |