-
Notifications
You must be signed in to change notification settings - Fork 158
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 #338 from chef/green
Use Chef 14 to avoid license failures in test + use config.rb where we can
- Loading branch information
Showing
9 changed files
with
68 additions
and
55 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Order is important. The last matching pattern has the most precedence. | ||
|
||
* @chef/chef-vault-maintainers | ||
.expeditor/ @chef/jex-team | ||
.expeditor/** @chef/jex-team | ||
*.md @chef/docs-team |
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 |
---|---|---|
@@ -1,14 +1,27 @@ | ||
source "https://rubygems.org/" | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
group :development do | ||
gem "chefstyle", git: "https://github.com/chef/chefstyle.git" | ||
gem "chefstyle" | ||
gem "chef-zero" | ||
gem "rake" | ||
gem "rspec", "~> 3.4" | ||
gem "aruba", "~> 0.6" | ||
gem "simplecov", "~> 0.9" | ||
gem "simplecov-console", "~> 0.2" | ||
gem "chef" | ||
gem "simplecov-console", "~> 0.2.0" | ||
gem "chef", "~> 14.0" # avoids test failures on license acceptance | ||
end | ||
|
||
group :docs do | ||
gem "yard" | ||
gem "redcarpet" | ||
gem "github-markup" | ||
end | ||
|
||
group :debug do | ||
gem "pry" | ||
gem "pry-byebug" | ||
gem "pry-stack_explorer" | ||
gem "rb-readline" | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
When(/^I create a data bag '(.+)' containing the JSON '(.+)'$/) do |bag, json| | ||
write_file "item.json", json | ||
run_simple "knife data bag create #{bag} -z -c knife.rb -d" | ||
run_simple "knife data bag from_file #{bag} -z -c knife.rb item.json" | ||
run_command_and_stop "knife data bag create #{bag} -z -c config.rb -d" | ||
run_command_and_stop "knife data bag from_file #{bag} -z -c config.rb item.json" | ||
end | ||
|
||
Given(/^I create an empty data bag '(.+)'$/) do |databag| | ||
run_simple "knife data bag create #{databag} -z -c knife.rb", false | ||
run_command_and_stop "knife data bag create #{databag} -z -c config.rb", false | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Given(%r{^I create a data bag item '(.+)/(.+)' containing the JSON '(.+)'$}) do |databag, _, json| | ||
write_file "item.json", json | ||
run_simple "knife data bag from file #{databag} item.json -z -c knife.rb", false | ||
run_command_and_stop "knife data bag from file #{databag} item.json -z -c config.rb", false | ||
end | ||
|
||
Given(%r{^I create an encrypted data bag item '(.+)/(.+)' containing the JSON '(.+)' with the secret '(.+)'$}) do |databag, _, json, secret| | ||
write_file "item.json", json | ||
run_simple "knife data bag from file #{databag} item.json -s #{secret} -z -c knife.rb", false | ||
run_command_and_stop "knife data bag from file #{databag} item.json -s #{secret} -z -c config.rb", false | ||
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