test-kitchen 1.20.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitattributes +0 -0
- data/.github/ISSUE_TEMPLATE.md +0 -0
- data/.gitignore +0 -0
- data/.kitchen.ci.yml +0 -0
- data/.kitchen.dokken.yml +0 -0
- data/.kitchen.proxy.yml +1 -1
- data/.rubocop.yml +1 -1
- data/.travis.yml +6 -2
- data/.yardopts +0 -0
- data/Berksfile +0 -0
- data/CHANGELOG.md +26 -0
- data/CONTRIBUTING.md +0 -0
- data/ECOSYSTEM.md +0 -0
- data/Gemfile +6 -2
- data/Gemfile.proxy_tests +0 -0
- data/Guardfile +0 -0
- data/LICENSE +0 -0
- data/MAINTAINERS.md +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/appveyor.yml +4 -3
- data/features/kitchen_action_commands.feature +0 -0
- data/features/kitchen_command.feature +0 -0
- data/features/kitchen_console_command.feature +0 -0
- data/features/kitchen_defaults.feature +2 -2
- data/features/kitchen_diagnose_command.feature +0 -0
- data/features/kitchen_help_command.feature +0 -0
- data/features/kitchen_init_command.feature +19 -39
- data/features/kitchen_list_command.feature +3 -3
- data/features/kitchen_login_command.feature +0 -0
- data/features/kitchen_sink_command.feature +0 -0
- data/features/kitchen_test_command.feature +0 -0
- data/features/step_definitions/gem_steps.rb +0 -12
- data/features/step_definitions/git_steps.rb +0 -0
- data/features/step_definitions/output_steps.rb +0 -0
- data/features/support/env.rb +0 -0
- data/lib/kitchen.rb +0 -0
- data/lib/kitchen/base64_stream.rb +0 -0
- data/lib/kitchen/cli.rb +15 -11
- data/lib/kitchen/collection.rb +0 -0
- data/lib/kitchen/color.rb +0 -0
- data/lib/kitchen/command.rb +1 -1
- data/lib/kitchen/command/action.rb +0 -0
- data/lib/kitchen/command/console.rb +0 -0
- data/lib/kitchen/command/diagnose.rb +0 -0
- data/lib/kitchen/command/doctor.rb +0 -0
- data/lib/kitchen/command/exec.rb +0 -0
- data/lib/kitchen/command/list.rb +0 -0
- data/lib/kitchen/command/login.rb +0 -0
- data/lib/kitchen/command/package.rb +0 -0
- data/lib/kitchen/command/sink.rb +0 -0
- data/lib/kitchen/command/test.rb +0 -0
- data/lib/kitchen/config.rb +1 -1
- data/lib/kitchen/configurable.rb +0 -0
- data/lib/kitchen/data_munger.rb +10 -10
- data/lib/kitchen/diagnostic.rb +0 -0
- data/lib/kitchen/driver.rb +0 -0
- data/lib/kitchen/driver/base.rb +0 -0
- data/lib/kitchen/driver/dummy.rb +0 -0
- data/lib/kitchen/driver/exec.rb +1 -1
- data/lib/kitchen/driver/proxy.rb +1 -1
- data/lib/kitchen/driver/ssh_base.rb +0 -0
- data/lib/kitchen/errors.rb +0 -0
- data/lib/kitchen/generator/init.rb +1 -36
- data/lib/kitchen/instance.rb +0 -0
- data/lib/kitchen/lazy_hash.rb +1 -1
- data/lib/kitchen/loader/yaml.rb +31 -6
- data/lib/kitchen/logger.rb +1 -1
- data/lib/kitchen/logging.rb +0 -0
- data/lib/kitchen/login_command.rb +0 -0
- data/lib/kitchen/metadata_chopper.rb +0 -0
- data/lib/kitchen/platform.rb +0 -0
- data/lib/kitchen/provisioner.rb +0 -0
- data/lib/kitchen/provisioner/base.rb +0 -0
- data/lib/kitchen/provisioner/chef/berkshelf.rb +23 -19
- data/lib/kitchen/provisioner/chef/common_sandbox.rb +0 -0
- data/lib/kitchen/provisioner/chef/librarian.rb +25 -21
- data/lib/kitchen/provisioner/chef/policyfile.rb +23 -18
- data/lib/kitchen/provisioner/chef_apply.rb +2 -2
- data/lib/kitchen/provisioner/chef_base.rb +3 -2
- data/lib/kitchen/provisioner/chef_solo.rb +1 -1
- data/lib/kitchen/provisioner/chef_zero.rb +0 -0
- data/lib/kitchen/provisioner/dummy.rb +0 -0
- data/lib/kitchen/provisioner/shell.rb +0 -0
- data/lib/kitchen/rake_tasks.rb +0 -0
- data/lib/kitchen/shell_out.rb +0 -0
- data/lib/kitchen/ssh.rb +0 -0
- data/lib/kitchen/state_file.rb +0 -0
- data/lib/kitchen/suite.rb +0 -0
- data/lib/kitchen/thor_tasks.rb +0 -0
- data/lib/kitchen/transport.rb +0 -0
- data/lib/kitchen/transport/base.rb +0 -0
- data/lib/kitchen/transport/dummy.rb +0 -0
- data/lib/kitchen/transport/exec.rb +0 -0
- data/lib/kitchen/transport/ssh.rb +0 -0
- data/lib/kitchen/transport/winrm.rb +11 -5
- data/lib/kitchen/util.rb +0 -0
- data/lib/kitchen/verifier.rb +0 -0
- data/lib/kitchen/verifier/base.rb +0 -0
- data/lib/kitchen/verifier/busser.rb +0 -0
- data/lib/kitchen/verifier/dummy.rb +0 -0
- data/lib/kitchen/verifier/shell.rb +0 -0
- data/lib/kitchen/version.rb +1 -1
- data/lib/vendor/hash_recursive_merge.rb +0 -0
- data/spec/kitchen/base64_stream_spec.rb +0 -0
- data/spec/kitchen/cli_spec.rb +0 -0
- data/spec/kitchen/collection_spec.rb +0 -0
- data/spec/kitchen/color_spec.rb +0 -0
- data/spec/kitchen/config_spec.rb +0 -0
- data/spec/kitchen/configurable_spec.rb +0 -0
- data/spec/kitchen/data_munger_spec.rb +0 -0
- data/spec/kitchen/diagnostic_spec.rb +0 -0
- data/spec/kitchen/driver/base_spec.rb +0 -0
- data/spec/kitchen/driver/dummy_spec.rb +0 -0
- data/spec/kitchen/driver/exec_spec.rb +0 -0
- data/spec/kitchen/driver/proxy_spec.rb +0 -0
- data/spec/kitchen/driver/ssh_base_spec.rb +0 -0
- data/spec/kitchen/driver_spec.rb +0 -0
- data/spec/kitchen/errors_spec.rb +0 -0
- data/spec/kitchen/instance_spec.rb +0 -0
- data/spec/kitchen/lazy_hash_spec.rb +0 -0
- data/spec/kitchen/loader/yaml_spec.rb +43 -0
- data/spec/kitchen/logger_spec.rb +6 -1
- data/spec/kitchen/logging_spec.rb +0 -0
- data/spec/kitchen/login_command_spec.rb +0 -0
- data/spec/kitchen/metadata_chopper_spec.rb +0 -0
- data/spec/kitchen/platform_spec.rb +0 -0
- data/spec/kitchen/provisioner/base_spec.rb +0 -0
- data/spec/kitchen/provisioner/chef/policyfile_spec.rb +0 -0
- data/spec/kitchen/provisioner/chef_apply_spec.rb +0 -0
- data/spec/kitchen/provisioner/chef_base_spec.rb +6 -6
- data/spec/kitchen/provisioner/chef_solo_spec.rb +0 -0
- data/spec/kitchen/provisioner/chef_zero_spec.rb +0 -0
- data/spec/kitchen/provisioner/dummy_spec.rb +0 -0
- data/spec/kitchen/provisioner/shell_spec.rb +0 -0
- data/spec/kitchen/provisioner_spec.rb +0 -0
- data/spec/kitchen/shell_out_spec.rb +0 -0
- data/spec/kitchen/ssh_spec.rb +0 -0
- data/spec/kitchen/state_file_spec.rb +0 -0
- data/spec/kitchen/suite_spec.rb +0 -0
- data/spec/kitchen/transport/base_spec.rb +0 -0
- data/spec/kitchen/transport/exec_spec.rb +0 -0
- data/spec/kitchen/transport/ssh_spec.rb +0 -0
- data/spec/kitchen/transport/winrm_spec.rb +22 -13
- data/spec/kitchen/transport_spec.rb +0 -0
- data/spec/kitchen/util_spec.rb +0 -0
- data/spec/kitchen/verifier/base_spec.rb +0 -0
- data/spec/kitchen/verifier/busser_spec.rb +0 -0
- data/spec/kitchen/verifier/dummy_spec.rb +0 -0
- data/spec/kitchen/verifier/shell_spec.rb +0 -0
- data/spec/kitchen/verifier_spec.rb +0 -0
- data/spec/kitchen_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/support/powershell_max_size_spec.rb +0 -0
- data/support/busser_install_command.ps1 +0 -0
- data/support/busser_install_command.sh +0 -0
- data/support/chef-client-fail-if-update-handler.rb +0 -0
- data/support/chef_base_init_command.ps1 +0 -0
- data/support/chef_base_init_command.sh +0 -0
- data/support/chef_base_install_command.ps1 +0 -0
- data/support/chef_base_install_command.sh +0 -0
- data/support/chef_zero_prepare_command_legacy.ps1 +0 -0
- data/support/chef_zero_prepare_command_legacy.sh +0 -0
- data/support/download_helpers.sh +0 -0
- data/support/dummy-validation.pem +0 -0
- data/templates/driver/CHANGELOG.md.erb +0 -0
- data/templates/driver/Gemfile.erb +0 -0
- data/templates/driver/README.md.erb +0 -0
- data/templates/driver/Rakefile.erb +0 -0
- data/templates/driver/driver.rb.erb +0 -0
- data/templates/driver/gemspec.erb +0 -0
- data/templates/driver/gitignore.erb +0 -0
- data/templates/driver/license_apachev2.erb +0 -0
- data/templates/driver/license_lgplv3.erb +0 -0
- data/templates/driver/license_mit.erb +0 -0
- data/templates/driver/license_reserved.erb +0 -0
- data/templates/driver/tailor.erb +0 -0
- data/templates/driver/travis.yml.erb +0 -0
- data/templates/driver/version.rb.erb +0 -0
- data/templates/init/chefignore.erb +0 -0
- data/templates/init/kitchen.yml.erb +2 -2
- data/test-kitchen.gemspec +1 -1
- data/test/cookbooks/test_cookbook/metadata.rb +0 -0
- data/test/cookbooks/test_cookbook/recipes/default.rb +0 -0
- data/test/integration/default/default_spec.rb +0 -0
- data/testing_windows.md +0 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 6a64cdfeef17eb4bf2664343fc237a76facb5f7178837ee1423a878288f1fac8
|
|
4
|
+
data.tar.gz: 89335cce9a50a5a4eb8f0231bf49dd31a565441015bd3c340a8f83687207f618
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f74ae850e51a4d39d405df6765de9a1ad80bdd5bf4b80ae92e9c854dc466ab7c6d4b374f35b038cecf8a80c69093633462ff0fe583a7d97646af1b616b801538
|
|
7
|
+
data.tar.gz: 4a46163d28150ffae39ca473783bb82e9e415b5235ae70e988746bd4eb1956db43a151a958dc848c51b4dd219e48bfffd8a29a49ea6c957c8bec849e88dfef08
|
data/.gitattributes
CHANGED
|
File without changes
|
data/.github/ISSUE_TEMPLATE.md
CHANGED
|
File without changes
|
data/.gitignore
CHANGED
|
File without changes
|
data/.kitchen.ci.yml
CHANGED
|
File without changes
|
data/.kitchen.dokken.yml
CHANGED
|
File without changes
|
data/.kitchen.proxy.yml
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
|
@@ -5,8 +5,8 @@ services: docker
|
|
|
5
5
|
language: ruby
|
|
6
6
|
|
|
7
7
|
rvm:
|
|
8
|
-
- 2.3
|
|
9
|
-
- 2.4.
|
|
8
|
+
- 2.3.6
|
|
9
|
+
- 2.4.3
|
|
10
10
|
- ruby-head
|
|
11
11
|
|
|
12
12
|
|
|
@@ -26,6 +26,10 @@ branches:
|
|
|
26
26
|
|
|
27
27
|
matrix:
|
|
28
28
|
include:
|
|
29
|
+
- rvm: 2.5.0
|
|
30
|
+
before_install:
|
|
31
|
+
# https://github.com/travis-ci/travis-ci/issues/8978
|
|
32
|
+
- gem update --system
|
|
29
33
|
- rvm: 2.4
|
|
30
34
|
# To run the proxy tests we need additional gems than what Test Kitchen normally uses
|
|
31
35
|
# for testing
|
data/.yardopts
CHANGED
|
File without changes
|
data/Berksfile
CHANGED
|
File without changes
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v1.21.0](https://github.com/test-kitchen/test-kitchen/tree/v1.21.0) (2018-04-16)
|
|
4
|
+
[Full Changelog](https://github.com/test-kitchen/test-kitchen/compare/v1.20.0...v1.21.0)
|
|
5
|
+
|
|
6
|
+
**Release Notes:**
|
|
7
|
+
|
|
8
|
+
### Configuration UX improvements
|
|
9
|
+
|
|
10
|
+
Having the kitchen configuration file be hidden has always been a bit odd and so we're moving to using `kitchen.yml` over `.kitchen.yml`.
|
|
11
|
+
This also applies to `kitchen.local.yml` and we've made the change backwards compatible so you're not forced to move over right away. Additionally, we've added support for the environment variables `KITCHEN_YML` and KITCHEN_LOCAL_YML` again preserving compatibility if you're using the `*_YAML` forms.
|
|
12
|
+
|
|
13
|
+
**Merged pull requests:**
|
|
14
|
+
|
|
15
|
+
- Support `\*\_YML` for env vars too, for better UX [\#1398](https://github.com/test-kitchen/test-kitchen/pull/1398) ([coderanger](https://github.com/coderanger))
|
|
16
|
+
- allow winrm-fs 1.2.0 [\#1396](https://github.com/test-kitchen/test-kitchen/pull/1396) ([gtmanfred](https://github.com/gtmanfred))
|
|
17
|
+
- added KITCHEN\_YML [\#1392](https://github.com/test-kitchen/test-kitchen/pull/1392) ([jjasghar](https://github.com/jjasghar))
|
|
18
|
+
- Rubocop appeasement [\#1379](https://github.com/test-kitchen/test-kitchen/pull/1379) ([robbkidd](https://github.com/robbkidd))
|
|
19
|
+
- don't add drivers to a project's Gemfile during init [\#1378](https://github.com/test-kitchen/test-kitchen/pull/1378) ([robbkidd](https://github.com/robbkidd))
|
|
20
|
+
- halt if visible & hidden default configs are both present [\#1377](https://github.com/test-kitchen/test-kitchen/pull/1377) ([robbkidd](https://github.com/robbkidd))
|
|
21
|
+
- Update and fix appveyor [\#1373](https://github.com/test-kitchen/test-kitchen/pull/1373) ([cheeseplus](https://github.com/cheeseplus))
|
|
22
|
+
- Support IPv6 addresses for WinRM [\#1371](https://github.com/test-kitchen/test-kitchen/pull/1371) ([jzinn](https://github.com/jzinn))
|
|
23
|
+
- honor root\_path for location of chef installer script [\#1369](https://github.com/test-kitchen/test-kitchen/pull/1369) ([robbkidd](https://github.com/robbkidd))
|
|
24
|
+
- Prefer kitchen.yml to .kitchen.yml [\#1363](https://github.com/test-kitchen/test-kitchen/pull/1363) ([thommay](https://github.com/thommay))
|
|
25
|
+
- Support yaml alias [\#1359](https://github.com/test-kitchen/test-kitchen/pull/1359) ([limitusus](https://github.com/limitusus))
|
|
26
|
+
- Adding Ruby 2.5, updating other versions [\#1348](https://github.com/test-kitchen/test-kitchen/pull/1348) ([cheeseplus](https://github.com/cheeseplus))
|
|
27
|
+
- Update CentOS 7 / Ubuntu to the latest versions [\#1289](https://github.com/test-kitchen/test-kitchen/pull/1289) ([tas50](https://github.com/tas50))
|
|
28
|
+
|
|
3
29
|
## [v1.20.0](https://github.com/test-kitchen/test-kitchen/tree/v1.20.0) (2018-01-19)
|
|
4
30
|
[Full Changelog](https://github.com/test-kitchen/test-kitchen/compare/v1.19.2...v1.20.0)
|
|
5
31
|
|
data/CONTRIBUTING.md
CHANGED
|
File without changes
|
data/ECOSYSTEM.md
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
@@ -31,6 +31,10 @@ end
|
|
|
31
31
|
|
|
32
32
|
instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
|
|
33
33
|
|
|
34
|
-
#
|
|
35
|
-
#
|
|
34
|
+
# To avoid bringing in development or test dependencies that are not
|
|
35
|
+
# absolutely needed, if you want to load tools not present in the gemspec
|
|
36
|
+
# or this Gemfile, add those additional dependencies into a Gemfile.local
|
|
37
|
+
# file which is ignored by this repository.
|
|
38
|
+
# rubocop:disable Security/Eval
|
|
36
39
|
eval(IO.read(__FILE__ + ".local"), binding) if File.exist?(__FILE__ + ".local")
|
|
40
|
+
# rubocop:enable Security/Eval
|
data/Gemfile.proxy_tests
CHANGED
|
File without changes
|
data/Guardfile
CHANGED
|
File without changes
|
data/LICENSE
CHANGED
|
File without changes
|
data/MAINTAINERS.md
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
data/appveyor.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
version: "master-{build}"
|
|
2
2
|
|
|
3
|
-
os:
|
|
3
|
+
os: Visual Studio 2017
|
|
4
4
|
platform:
|
|
5
5
|
- x64
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ environment:
|
|
|
12
12
|
SSL_CERT_FILE: c:\projects\test_kitchen\certs.pem
|
|
13
13
|
|
|
14
14
|
matrix:
|
|
15
|
-
- ruby_version: "
|
|
15
|
+
- ruby_version: "24-x64"
|
|
16
16
|
|
|
17
17
|
clone_folder: c:\projects\test_kitchen
|
|
18
18
|
clone_depth: 1
|
|
@@ -31,9 +31,10 @@ install:
|
|
|
31
31
|
- set SSL_CERT_FILE=c:\projects\test_kitchen\certs.pem
|
|
32
32
|
- gem update --system || gem update --system || gem update --system
|
|
33
33
|
- update_rubygems
|
|
34
|
+
- gem install bundler --force
|
|
34
35
|
- ruby --version
|
|
35
36
|
- gem --version
|
|
36
|
-
-
|
|
37
|
+
- bundle --version
|
|
37
38
|
|
|
38
39
|
build_script:
|
|
39
40
|
- bundle install --without guard integration
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -29,10 +29,10 @@ Feature: Test Kitchen defaults
|
|
|
29
29
|
verifier: dummy
|
|
30
30
|
|
|
31
31
|
platforms:
|
|
32
|
-
- name: ubuntu-
|
|
32
|
+
- name: ubuntu-16.04
|
|
33
33
|
|
|
34
34
|
suites:
|
|
35
35
|
- name: default
|
|
36
36
|
"""
|
|
37
37
|
When I successfully run `kitchen list`
|
|
38
|
-
Then the output should match /^default-ubuntu-
|
|
38
|
+
Then the output should match /^default-ubuntu-1604\s+Dummy\s+Dummy\s+Dummy\s+Ssh\s+\<Not Created\>\s+\<None\>$/
|
|
File without changes
|
|
File without changes
|
|
@@ -3,9 +3,6 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
3
3
|
As an operator
|
|
4
4
|
I want to run a command to initialize my project
|
|
5
5
|
|
|
6
|
-
Background:
|
|
7
|
-
Given a sandboxed GEM_HOME directory named "kitchen-init"
|
|
8
|
-
|
|
9
6
|
@spawn
|
|
10
7
|
Scenario: Displaying help
|
|
11
8
|
When I run `kitchen help init`
|
|
@@ -23,8 +20,10 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
23
20
|
Then the exit status should be 0
|
|
24
21
|
And a directory named "test/integration/default" should exist
|
|
25
22
|
And the file ".gitignore" should contain ".kitchen/"
|
|
23
|
+
And the file ".gitignore" should contain "kitchen.local.yml"
|
|
26
24
|
And the file ".gitignore" should contain ".kitchen.local.yml"
|
|
27
|
-
And the file "
|
|
25
|
+
And the file "kitchen.yml" should exist:
|
|
26
|
+
And the file "kitchen.yml" should contain:
|
|
28
27
|
"""
|
|
29
28
|
driver:
|
|
30
29
|
name: vagrant
|
|
@@ -43,10 +42,6 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
43
42
|
"""
|
|
44
43
|
gem "test-kitchen"
|
|
45
44
|
"""
|
|
46
|
-
And the file "Gemfile" should contain:
|
|
47
|
-
"""
|
|
48
|
-
gem "kitchen-vagrant"
|
|
49
|
-
"""
|
|
50
45
|
And the output should contain "You must run `bundle install'"
|
|
51
46
|
|
|
52
47
|
Scenario: Running init with an existing Gemfile appends to the Gemfile
|
|
@@ -62,7 +57,6 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
62
57
|
source "https://rubygems.org"
|
|
63
58
|
|
|
64
59
|
gem "test-kitchen"
|
|
65
|
-
gem "kitchen-vagrant"
|
|
66
60
|
|
|
67
61
|
"""
|
|
68
62
|
And the output should contain "You must run `bundle install'"
|
|
@@ -82,10 +76,8 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
82
76
|
source "https://rubygems.org"
|
|
83
77
|
|
|
84
78
|
gem 'test-kitchen'
|
|
85
|
-
gem "kitchen-vagrant"
|
|
86
79
|
|
|
87
80
|
"""
|
|
88
|
-
And the output should contain "You must run `bundle install'"
|
|
89
81
|
|
|
90
82
|
Scenario: Running init with a Gemfile containing the driver gem does not
|
|
91
83
|
re-append
|
|
@@ -108,24 +100,12 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
108
100
|
"""
|
|
109
101
|
And the output should not contain "You must run `bundle install'"
|
|
110
102
|
|
|
111
|
-
Scenario: Running init with multiple drivers appends to the Gemfile
|
|
112
|
-
Given an empty file named "Gemfile"
|
|
113
|
-
When I successfully run `kitchen init --driver=kitchen-bluebox kitchen-wakka`
|
|
114
|
-
Then the file "Gemfile" should contain:
|
|
115
|
-
"""
|
|
116
|
-
gem "kitchen-bluebox"
|
|
117
|
-
"""
|
|
118
|
-
And the file "Gemfile" should contain:
|
|
119
|
-
"""
|
|
120
|
-
gem "kitchen-wakka"
|
|
121
|
-
"""
|
|
122
|
-
And the output should contain "You must run `bundle install'"
|
|
123
|
-
|
|
124
103
|
Scenario: Running init with multiple driver sets the plugin_driver to the
|
|
125
104
|
first driver given
|
|
126
105
|
Given an empty file named "Gemfile"
|
|
127
106
|
When I successfully run `kitchen init --driver=kitchen-bluebox kitchen-wakka`
|
|
128
|
-
Then the file "
|
|
107
|
+
Then the file "kitchen.yml" should exist
|
|
108
|
+
Then the file "kitchen.yml" should contain:
|
|
129
109
|
"""
|
|
130
110
|
driver:
|
|
131
111
|
name: bluebox
|
|
@@ -135,26 +115,26 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
135
115
|
dummy driver
|
|
136
116
|
Given an empty file named "Gemfile"
|
|
137
117
|
When I successfully run `kitchen init --no-driver`
|
|
138
|
-
Then the file "
|
|
118
|
+
Then the file "kitchen.yml" should contain:
|
|
139
119
|
"""
|
|
140
120
|
driver:
|
|
141
121
|
name: dummy
|
|
142
122
|
"""
|
|
143
123
|
|
|
144
124
|
Scenario: Running init without a provisioner sets the default provisioner
|
|
145
|
-
to chef_solo in
|
|
125
|
+
to chef_solo in kitchen.yml
|
|
146
126
|
Given an empty file named "Gemfile"
|
|
147
127
|
When I successfully run `kitchen init --no-driver`
|
|
148
|
-
Then the file "
|
|
128
|
+
Then the file "kitchen.yml" should contain:
|
|
149
129
|
"""
|
|
150
130
|
provisioner:
|
|
151
131
|
name: chef_solo
|
|
152
132
|
"""
|
|
153
133
|
|
|
154
|
-
Scenario: Running init with a provisioner sets the provisioner in
|
|
134
|
+
Scenario: Running init with a provisioner sets the provisioner in kitchen.yml
|
|
155
135
|
Given an empty file named "Gemfile"
|
|
156
136
|
When I successfully run `kitchen init --no-driver --provisioner=chef_zero`
|
|
157
|
-
Then the file "
|
|
137
|
+
Then the file "kitchen.yml" should contain:
|
|
158
138
|
"""
|
|
159
139
|
provisioner:
|
|
160
140
|
name: chef_zero
|
|
@@ -206,7 +186,7 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
206
186
|
support "centos"
|
|
207
187
|
"""
|
|
208
188
|
When I successfully run `kitchen init`
|
|
209
|
-
Then the file "
|
|
189
|
+
Then the file "kitchen.yml" should contain exactly:
|
|
210
190
|
"""
|
|
211
191
|
---
|
|
212
192
|
driver:
|
|
@@ -216,8 +196,8 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
216
196
|
name: chef_solo
|
|
217
197
|
|
|
218
198
|
platforms:
|
|
219
|
-
- name: ubuntu-
|
|
220
|
-
- name: centos-7
|
|
199
|
+
- name: ubuntu-16.04
|
|
200
|
+
- name: centos-7
|
|
221
201
|
|
|
222
202
|
suites:
|
|
223
203
|
- name: default
|
|
@@ -230,7 +210,7 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
230
210
|
Scenario: Running init with an empty file metadata.rb sets an empty run list
|
|
231
211
|
Given an empty file named "metadata.rb"
|
|
232
212
|
When I successfully run `kitchen init`
|
|
233
|
-
Then the file "
|
|
213
|
+
Then the file "kitchen.yml" should contain exactly:
|
|
234
214
|
"""
|
|
235
215
|
---
|
|
236
216
|
driver:
|
|
@@ -240,8 +220,8 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
240
220
|
name: chef_solo
|
|
241
221
|
|
|
242
222
|
platforms:
|
|
243
|
-
- name: ubuntu-
|
|
244
|
-
- name: centos-7
|
|
223
|
+
- name: ubuntu-16.04
|
|
224
|
+
- name: centos-7
|
|
245
225
|
|
|
246
226
|
suites:
|
|
247
227
|
- name: default
|
|
@@ -253,7 +233,7 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
253
233
|
Scenario: Running init with no metadata.rb file sets an empty run list
|
|
254
234
|
Given a file named "metadata.rb" does not exist
|
|
255
235
|
When I successfully run `kitchen init`
|
|
256
|
-
Then the file "
|
|
236
|
+
Then the file "kitchen.yml" should contain exactly:
|
|
257
237
|
"""
|
|
258
238
|
---
|
|
259
239
|
driver:
|
|
@@ -263,8 +243,8 @@ Feature: Add Test Kitchen support to an existing project
|
|
|
263
243
|
name: chef_solo
|
|
264
244
|
|
|
265
245
|
platforms:
|
|
266
|
-
- name: ubuntu-
|
|
267
|
-
- name: centos-7
|
|
246
|
+
- name: ubuntu-16.04
|
|
247
|
+
- name: centos-7
|
|
268
248
|
|
|
269
249
|
suites:
|
|
270
250
|
- name: default
|
|
@@ -117,16 +117,16 @@ Feature: Listing Test Kitchen instances
|
|
|
117
117
|
provisioner: chef_solo
|
|
118
118
|
|
|
119
119
|
platforms:
|
|
120
|
-
- name: ubuntu-
|
|
120
|
+
- name: ubuntu-16.04
|
|
121
121
|
|
|
122
122
|
suites:
|
|
123
123
|
- name: gdb01-master
|
|
124
124
|
- name: logdb01-master
|
|
125
125
|
"""
|
|
126
|
-
When I successfully run `kitchen list gdb01-master-ubuntu-
|
|
126
|
+
When I successfully run `kitchen list gdb01-master-ubuntu-1604 --bare`
|
|
127
127
|
Then the output should contain exactly:
|
|
128
128
|
"""
|
|
129
|
-
gdb01-master-ubuntu-
|
|
129
|
+
gdb01-master-ubuntu-1604
|
|
130
130
|
|
|
131
131
|
"""
|
|
132
132
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,18 +3,6 @@
|
|
|
3
3
|
require "tmpdir"
|
|
4
4
|
require "pathname"
|
|
5
5
|
|
|
6
|
-
Given(/^a sandboxed GEM_HOME directory named "(.*?)"$/) do |name|
|
|
7
|
-
backup_envvar("GEM_HOME")
|
|
8
|
-
backup_envvar("GEM_PATH")
|
|
9
|
-
|
|
10
|
-
@aruba_timeout_seconds = 30
|
|
11
|
-
|
|
12
|
-
gem_home = Pathname.new(Dir.mktmpdir(name))
|
|
13
|
-
aruba.environment["GEM_HOME"] = gem_home.to_s
|
|
14
|
-
aruba.environment["GEM_PATH"] = [gem_home.to_s, ENV["GEM_PATH"]].join(":")
|
|
15
|
-
@cleanup_dirs << gem_home
|
|
16
|
-
end
|
|
17
|
-
|
|
18
6
|
Then(/^a gem named "(.*?)" is installed with version "(.*?)"$/) do |name, version|
|
|
19
7
|
unbundlerize do
|
|
20
8
|
run_simple(
|
|
File without changes
|
|
File without changes
|
data/features/support/env.rb
CHANGED
|
File without changes
|
data/lib/kitchen.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/lib/kitchen/cli.rb
CHANGED
|
@@ -67,9 +67,9 @@ module Kitchen
|
|
|
67
67
|
super
|
|
68
68
|
$stdout.sync = true
|
|
69
69
|
@loader = Kitchen::Loader::YAML.new(
|
|
70
|
-
project_config: ENV["KITCHEN_YAML"],
|
|
71
|
-
local_config: ENV["KITCHEN_LOCAL_YAML"],
|
|
72
|
-
global_config: ENV["KITCHEN_GLOBAL_YAML"]
|
|
70
|
+
project_config: ENV["KITCHEN_YAML"] || ENV["KITCHEN_YML"],
|
|
71
|
+
local_config: ENV["KITCHEN_LOCAL_YAML"] || ENV["KITCHEN_LOCAL_YML"],
|
|
72
|
+
global_config: ENV["KITCHEN_GLOBAL_YAML"] || ENV["KITCHEN_GLOBAL_YML"]
|
|
73
73
|
)
|
|
74
74
|
@config = Kitchen::Config.new(
|
|
75
75
|
loader: @loader
|
|
@@ -306,16 +306,20 @@ module Kitchen
|
|
|
306
306
|
D
|
|
307
307
|
tasks["init"].options = Kitchen::Generator::Init.class_options
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
class << self
|
|
310
|
+
private
|
|
310
311
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
312
|
+
# Ensure the any failing commands exit non-zero.
|
|
313
|
+
#
|
|
314
|
+
# @return [true] you die always on failure
|
|
315
|
+
# @api private
|
|
316
|
+
def exit_on_failure?
|
|
317
|
+
true
|
|
318
|
+
end
|
|
317
319
|
end
|
|
318
320
|
|
|
321
|
+
private
|
|
322
|
+
|
|
319
323
|
# @return [Logger] the common logger
|
|
320
324
|
# @api private
|
|
321
325
|
def logger
|
|
@@ -393,7 +397,7 @@ module Kitchen
|
|
|
393
397
|
#
|
|
394
398
|
# @api private
|
|
395
399
|
def ensure_initialized
|
|
396
|
-
yaml = ENV["KITCHEN_YAML"] || ".kitchen.yml"
|
|
400
|
+
yaml = ENV["KITCHEN_YAML"] || ENV["KITCHEN_YML"] || ".kitchen.yml"
|
|
397
401
|
|
|
398
402
|
if options[:auto_init] && !File.exist?(yaml)
|
|
399
403
|
banner "Invoking init as '#{yaml}' file is missing"
|