test-kitchen 1.23.3 → 1.23.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/version.rb +1 -1
- data/support/chef-client-zero.rb +1 -1
- metadata +5 -324
- data/.gitattributes +0 -3
- data/.github/ISSUE_TEMPLATE.md +0 -56
- data/.github/lock.yml +0 -1
- data/.gitignore +0 -38
- data/.gitmodules +0 -0
- data/.kitchen.appveyor.yml +0 -25
- data/.kitchen.dokken.yml +0 -31
- data/.kitchen.proxy.yml +0 -27
- data/.rubocop.yml +0 -5
- data/.travis.yml +0 -57
- data/.yardopts +0 -3
- data/Berksfile +0 -3
- data/CHANGELOG.md +0 -1510
- data/CONTRIBUTING.md +0 -14
- data/ECOSYSTEM.md +0 -93
- data/Gemfile +0 -40
- data/Gemfile.proxy_tests +0 -4
- data/Guardfile +0 -42
- data/MAINTAINERS.md +0 -29
- data/README.md +0 -138
- data/RELEASE_NOTES.md +0 -167
- data/Rakefile +0 -77
- data/appveyor.yml +0 -47
- data/docs/CONTRIBUTING.md +0 -8
- data/docs/LICENSE +0 -22
- data/docs/README.md +0 -78
- data/docs/archetypes/default.md +0 -6
- data/docs/config.toml +0 -36
- data/docs/content/docs/_index.md +0 -5
- data/docs/content/docs/drivers/_index.md +0 -27
- data/docs/content/docs/drivers/azurerm.md +0 -44
- data/docs/content/docs/drivers/vagrant.md +0 -39
- data/docs/content/docs/getting-started/00-introduction.md +0 -14
- data/docs/content/docs/getting-started/01-installing.md +0 -64
- data/docs/content/docs/getting-started/02-getting-help.md +0 -59
- data/docs/content/docs/getting-started/03-creating-cookbook.md +0 -46
- data/docs/content/docs/getting-started/04-kitchen-yml.md +0 -56
- data/docs/content/docs/getting-started/05-instances.md +0 -79
- data/docs/content/docs/getting-started/06-writing-recipe.md +0 -21
- data/docs/content/docs/getting-started/07-running-converge.md +0 -134
- data/docs/content/docs/getting-started/08-manually-verifying.md +0 -55
- data/docs/content/docs/getting-started/09-writing-test.md +0 -49
- data/docs/content/docs/getting-started/10-running-verify.md +0 -120
- data/docs/content/docs/getting-started/11-running-test.md +0 -168
- data/docs/content/docs/getting-started/12-adding-platform.md +0 -206
- data/docs/content/docs/getting-started/13-adding-feature.md +0 -30
- data/docs/content/docs/getting-started/14-adding-suite.md +0 -60
- data/docs/content/docs/getting-started/15-adding-test.md +0 -66
- data/docs/content/docs/getting-started/16-adding-recipe.md +0 -53
- data/docs/content/docs/getting-started/17-excluding-platforms.md +0 -101
- data/docs/content/docs/getting-started/18-next-steps.md +0 -23
- data/docs/content/docs/getting-started/_index.md +0 -5
- data/docs/content/docs/provisioners/_index.md +0 -36
- data/docs/content/docs/provisioners/chef.md +0 -69
- data/docs/content/docs/provisioners/shell.md +0 -31
- data/docs/content/docs/reference/_index.md +0 -5
- data/docs/content/docs/reference/configuration.md +0 -53
- data/docs/content/docs/reference/examples.md +0 -97
- data/docs/content/docs/reference/faq.md +0 -58
- data/docs/content/docs/reference/fixtures.md +0 -32
- data/docs/content/docs/reference/glossary.md +0 -34
- data/docs/content/docs/reference/lifecycle-hooks.md +0 -68
- data/docs/content/docs/reference/reboots.md +0 -24
- data/docs/content/docs/verifiers/_index.md +0 -14
- data/docs/content/docs/verifiers/inspec.md +0 -44
- data/docs/content/docs/verifiers/serverspec.md +0 -20
- data/docs/static/images/chef-logo.png +0 -0
- data/docs/static/images/chef-logo.svg +0 -1
- data/docs/static/images/github-banner.png +0 -0
- data/docs/static/images/github-banner.svg +0 -71
- data/docs/static/images/kitchen-logo.png +0 -0
- data/docs/static/images/logo-block.svg +0 -222
- data/docs/static/images/logo.png +0 -0
- data/docs/static/images/logos-group.png +0 -0
- data/docs/static/images/terminal-1.png +0 -0
- data/docs/static/images/terminal-1.svg +0 -589
- data/docs/static/images/terminal-2.png +0 -0
- data/docs/static/images/terminal-2.svg +0 -235
- data/docs/static/images/terminal-3.png +0 -0
- data/docs/static/images/terminal-3.svg +0 -439
- data/docs/static/index.html +0 -59
- data/docs/static/javascripts/all.js +0 -348
- data/docs/static/javascripts/vendor/foundation.min.js +0 -4
- data/docs/static/javascripts/vendor/jquery.min.js +0 -5
- data/docs/static/javascripts/vendor/what-input.js +0 -336
- data/docs/static/stylesheets/site.css +0 -4667
- data/docs/themes/kitchen/layouts/_default/baseof.html +0 -53
- data/docs/themes/kitchen/layouts/_default/list.html +0 -4
- data/docs/themes/kitchen/layouts/_default/redirect.html +0 -10
- data/docs/themes/kitchen/layouts/_default/single.html +0 -6
- data/docs/themes/kitchen/layouts/partials/core/head.html +0 -6
- data/docs/themes/kitchen/layouts/partials/kitchen/footer.html +0 -18
- data/docs/themes/kitchen/layouts/partials/kitchen/head.html +0 -4
- data/docs/themes/kitchen/layouts/partials/kitchen/header.html +0 -26
- data/docs/themes/kitchen/layouts/partials/search-docs.html +0 -3
- data/docs/themes/kitchen/layouts/partials/sidebar.html +0 -33
- data/docs/themes/kitchen/layouts/shortcodes/button.html +0 -1
- data/docs/themes/kitchen/layouts/shortcodes/codeblock.html +0 -8
- data/docs/themes/kitchen/layouts/shortcodes/cta.html +0 -5
- data/docs/themes/kitchen/layouts/shortcodes/danger.html +0 -1
- data/docs/themes/kitchen/layouts/shortcodes/example_fqdn.html +0 -1
- data/docs/themes/kitchen/layouts/shortcodes/info.html +0 -1
- data/docs/themes/kitchen/layouts/shortcodes/ol-styled.html +0 -3
- data/docs/themes/kitchen/layouts/shortcodes/success.html +0 -1
- data/docs/themes/kitchen/layouts/shortcodes/tip.html +0 -1
- data/docs/themes/kitchen/layouts/shortcodes/warning.html +0 -1
- data/docs/themes/kitchen/static/css/kitchen.css +0 -10
- data/docs/themes/kitchen/static/css/kitchen.css.map +0 -7
- data/docs/themes/kitchen/static/fonts/Muli-Bold.ttf +0 -0
- data/docs/themes/kitchen/static/fonts/Muli-Regular.ttf +0 -0
- data/docs/themes/kitchen/static/fonts/Muli-SemiBold.ttf +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-brands-400.eot +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-brands-400.svg +0 -1104
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-brands-400.ttf +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-brands-400.woff +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-brands-400.woff2 +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-regular-400.eot +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-regular-400.svg +0 -372
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-regular-400.ttf +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-regular-400.woff +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-regular-400.woff2 +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-solid-900.eot +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-solid-900.svg +0 -1896
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-solid-900.ttf +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-solid-900.woff +0 -0
- data/docs/themes/kitchen/static/fonts/fontawesome/fa-solid-900.woff2 +0 -0
- data/docs/themes/kitchen/static/images/chef-logo-light.svg +0 -36
- data/docs/themes/kitchen/static/images/chef-logo-white.svg +0 -38
- data/docs/themes/kitchen/static/images/chef-logo.svg +0 -37
- data/docs/themes/kitchen/static/images/favicon.ico +0 -0
- data/docs/themes/kitchen/static/js/scripts-all.js +0 -7
- data/docs/themes/kitchen/static/js/source/chef-hugo.js +0 -116
- data/docs/themes/kitchen/static/js/source/omnitruck.js +0 -82
- data/docs/themes/kitchen/static/js/source/segment.js +0 -52
- data/docs/themes/kitchen/static/sass/_buttons.scss +0 -161
- data/docs/themes/kitchen/static/sass/_core.scss +0 -24
- data/docs/themes/kitchen/static/sass/_forms.scss +0 -14
- data/docs/themes/kitchen/static/sass/_mixins.scss +0 -133
- data/docs/themes/kitchen/static/sass/_typography.scss +0 -34
- data/docs/themes/kitchen/static/sass/_variables.scss +0 -82
- data/docs/themes/kitchen/static/sass/kitchen.scss +0 -7
- data/docs/themes/kitchen/static/sass/kitchen/_footer.scss +0 -50
- data/docs/themes/kitchen/static/sass/kitchen/_header.scss +0 -187
- data/docs/themes/kitchen/static/sass/kitchen/_homepage.scss +0 -27
- data/docs/themes/kitchen/static/sass/kitchen/_utility-bar.scss +0 -173
- data/docs/themes/kitchen/static/sass/partials/_alerts.scss +0 -32
- data/docs/themes/kitchen/static/sass/partials/_bg.scss +0 -19
- data/docs/themes/kitchen/static/sass/partials/_blurbs.scss +0 -25
- data/docs/themes/kitchen/static/sass/partials/_callout.scss +0 -15
- data/docs/themes/kitchen/static/sass/partials/_cards.scss +0 -54
- data/docs/themes/kitchen/static/sass/partials/_dropdown.scss +0 -77
- data/docs/themes/kitchen/static/sass/partials/_grid.scss +0 -87
- data/docs/themes/kitchen/static/sass/partials/_padding.scss +0 -73
- data/docs/themes/kitchen/static/sass/partials/_sidebar.scss +0 -71
- data/docs/themes/kitchen/static/sass/partials/_tabs.scss +0 -125
- data/docs/themes/kitchen/static/sass/typography/_chroma.scss +0 -366
- data/docs/themes/kitchen/static/sass/typography/_code.scss +0 -72
- data/docs/themes/kitchen/static/sass/typography/_headers.scss +0 -90
- data/docs/themes/kitchen/static/sass/typography/_links.scss +0 -127
- data/docs/themes/kitchen/static/sass/typography/_lists.scss +0 -155
- data/docs/themes/kitchen/static/sass/typography/_prose.scss +0 -29
- data/docs/themes/kitchen/static/sass/typography/_text.scss +0 -221
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_animated.scss +0 -20
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_bordered-pulled.scss +0 -20
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_core.scss +0 -16
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_fixed-width.scss +0 -6
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_icons.scss +0 -992
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_larger.scss +0 -23
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_list.scss +0 -18
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_mixins.scss +0 -57
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_rotated-flipped.scss +0 -23
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_screen-reader.scss +0 -5
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_stacked.scss +0 -31
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/_variables.scss +0 -1005
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/fa-brands.scss +0 -21
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/fa-regular.scss +0 -22
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/fa-solid.scss +0 -23
- data/docs/themes/kitchen/static/sass/vendor/fontawesome/fontawesome.scss +0 -16
- data/docs/themes/kitchen/theme.toml +0 -8
- data/features/kitchen_action_commands.feature +0 -164
- data/features/kitchen_command.feature +0 -16
- data/features/kitchen_console_command.feature +0 -35
- data/features/kitchen_defaults.feature +0 -38
- data/features/kitchen_diagnose_command.feature +0 -96
- data/features/kitchen_help_command.feature +0 -16
- data/features/kitchen_init_command.feature +0 -254
- data/features/kitchen_list_command.feature +0 -140
- data/features/kitchen_login_command.feature +0 -62
- data/features/kitchen_sink_command.feature +0 -30
- data/features/kitchen_test_command.feature +0 -88
- data/features/step_definitions/gem_steps.rb +0 -24
- data/features/step_definitions/git_steps.rb +0 -5
- data/features/step_definitions/output_steps.rb +0 -5
- data/features/support/env.rb +0 -74
- data/spec/kitchen/base64_stream_spec.rb +0 -74
- data/spec/kitchen/cli_spec.rb +0 -54
- data/spec/kitchen/collection_spec.rb +0 -76
- data/spec/kitchen/color_spec.rb +0 -51
- data/spec/kitchen/config_spec.rb +0 -434
- data/spec/kitchen/configurable_spec.rb +0 -1113
- data/spec/kitchen/data_munger_spec.rb +0 -2800
- data/spec/kitchen/diagnostic_spec.rb +0 -128
- data/spec/kitchen/driver/base_spec.rb +0 -132
- data/spec/kitchen/driver/dummy_spec.rb +0 -193
- data/spec/kitchen/driver/exec_spec.rb +0 -75
- data/spec/kitchen/driver/proxy_spec.rb +0 -127
- data/spec/kitchen/driver/ssh_base_spec.rb +0 -1136
- data/spec/kitchen/driver_spec.rb +0 -106
- data/spec/kitchen/errors_spec.rb +0 -317
- data/spec/kitchen/instance_spec.rb +0 -1372
- data/spec/kitchen/lazy_hash_spec.rb +0 -113
- data/spec/kitchen/lifecycle_hooks_spec.rb +0 -171
- data/spec/kitchen/loader/yaml_spec.rb +0 -787
- data/spec/kitchen/logger_spec.rb +0 -425
- data/spec/kitchen/logging_spec.rb +0 -56
- data/spec/kitchen/login_command_spec.rb +0 -67
- data/spec/kitchen/metadata_chopper_spec.rb +0 -79
- data/spec/kitchen/platform_spec.rb +0 -88
- data/spec/kitchen/provisioner/base_spec.rb +0 -393
- data/spec/kitchen/provisioner/chef/policyfile_spec.rb +0 -140
- data/spec/kitchen/provisioner/chef_apply_spec.rb +0 -131
- data/spec/kitchen/provisioner/chef_base_spec.rb +0 -1565
- data/spec/kitchen/provisioner/chef_solo_spec.rb +0 -602
- data/spec/kitchen/provisioner/chef_zero_spec.rb +0 -1013
- data/spec/kitchen/provisioner/dummy_spec.rb +0 -96
- data/spec/kitchen/provisioner/shell_spec.rb +0 -623
- data/spec/kitchen/provisioner_spec.rb +0 -101
- data/spec/kitchen/shell_out_spec.rb +0 -146
- data/spec/kitchen/ssh_spec.rb +0 -584
- data/spec/kitchen/state_file_spec.rb +0 -122
- data/spec/kitchen/suite_spec.rb +0 -61
- data/spec/kitchen/transport/base_spec.rb +0 -140
- data/spec/kitchen/transport/exec_spec.rb +0 -79
- data/spec/kitchen/transport/ssh_spec.rb +0 -1317
- data/spec/kitchen/transport/winrm_spec.rb +0 -1320
- data/spec/kitchen/transport_spec.rb +0 -106
- data/spec/kitchen/util_spec.rb +0 -250
- data/spec/kitchen/verifier/base_spec.rb +0 -346
- data/spec/kitchen/verifier/busser_spec.rb +0 -580
- data/spec/kitchen/verifier/dummy_spec.rb +0 -96
- data/spec/kitchen/verifier/shell_spec.rb +0 -157
- data/spec/kitchen/verifier_spec.rb +0 -114
- data/spec/kitchen_spec.rb +0 -112
- data/spec/spec_helper.rb +0 -110
- data/spec/support/powershell_max_size_spec.rb +0 -39
- data/test-kitchen.gemspec +0 -49
- data/test/cookbooks/test_cookbook/metadata.rb +0 -6
- data/test/cookbooks/test_cookbook/recipes/default.rb +0 -1
- data/test/integration/default/default_spec.rb +0 -3
- data/testing_windows.md +0 -38
data/Rakefile
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
require "bundler/gem_tasks"
|
4
|
-
|
5
|
-
require "rake/testtask"
|
6
|
-
Rake::TestTask.new(:unit) do |t|
|
7
|
-
t.libs.push "lib"
|
8
|
-
t.test_files = FileList["spec/**/*_spec.rb"]
|
9
|
-
t.verbose = true
|
10
|
-
end
|
11
|
-
|
12
|
-
begin
|
13
|
-
require "cucumber"
|
14
|
-
require "cucumber/rake/task"
|
15
|
-
Cucumber::Rake::Task.new(:features) do |t|
|
16
|
-
t.cucumber_opts = ["features", "-x", "--format progress", "--no-color", "--tags ~@ignore"]
|
17
|
-
end
|
18
|
-
rescue LoadError
|
19
|
-
puts "cucumber is not available. (sudo) gem install cucumber to run tests."
|
20
|
-
end
|
21
|
-
|
22
|
-
desc "Run all test suites"
|
23
|
-
task test: [:unit, :features]
|
24
|
-
|
25
|
-
desc "Display LOC stats"
|
26
|
-
task :stats do
|
27
|
-
puts "\n## Production Code Stats"
|
28
|
-
sh "countloc -r lib/kitchen lib/kitchen.rb"
|
29
|
-
puts "\n## Test Code Stats"
|
30
|
-
sh "countloc -r spec features"
|
31
|
-
end
|
32
|
-
|
33
|
-
begin
|
34
|
-
require "chefstyle"
|
35
|
-
require "rubocop/rake_task"
|
36
|
-
RuboCop::RakeTask.new(:style) do |task|
|
37
|
-
task.options += ["--display-cop-names", "--no-color"]
|
38
|
-
end
|
39
|
-
rescue LoadError
|
40
|
-
puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking."
|
41
|
-
end
|
42
|
-
|
43
|
-
desc "Run all quality tasks"
|
44
|
-
task quality: [:style, :stats]
|
45
|
-
|
46
|
-
begin
|
47
|
-
require "yard"
|
48
|
-
YARD::Rake::YardocTask.new
|
49
|
-
rescue LoadError
|
50
|
-
puts "yard is not available. (sudo) gem install yard to generate yard documentation."
|
51
|
-
end
|
52
|
-
|
53
|
-
task default: [:test, :quality]
|
54
|
-
|
55
|
-
begin
|
56
|
-
require "github_changelog_generator/task"
|
57
|
-
require "kitchen/version"
|
58
|
-
|
59
|
-
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
60
|
-
config.future_release = "v#{Kitchen::VERSION}"
|
61
|
-
config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature,Improvement".split(",")
|
62
|
-
config.bug_labels = "bug,Bug".split(",")
|
63
|
-
config.exclude_labels = %w{Duplicate Question Discussion No_Changelog}
|
64
|
-
end
|
65
|
-
rescue LoadError
|
66
|
-
puts "github_changelog_generator is not available." \
|
67
|
-
" (sudo) gem install github_changelog_generator to generate changelogs"
|
68
|
-
end
|
69
|
-
|
70
|
-
namespace :docs do
|
71
|
-
desc "Deploy docs"
|
72
|
-
task :deploy do
|
73
|
-
sh "cd docs && hugo"
|
74
|
-
sh "aws --profile chef-cd s3 sync docs/public s3://test-kitchen-legacy.cd.chef.co --delete --acl public-read"
|
75
|
-
sh "aws --profile chef-cd cloudfront create-invalidation --distribution-id EQD8MRW086SRT --paths '/*'"
|
76
|
-
end
|
77
|
-
end
|
data/appveyor.yml
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
version: "master-{build}"
|
2
|
-
|
3
|
-
os: Visual Studio 2017
|
4
|
-
platform:
|
5
|
-
- x64
|
6
|
-
|
7
|
-
environment:
|
8
|
-
machine_user: test_user
|
9
|
-
machine_pass: Pass@word1
|
10
|
-
machine_port: 5985
|
11
|
-
KITCHEN_YAML: .kitchen.appveyor.yml
|
12
|
-
SSL_CERT_FILE: c:\projects\test_kitchen\certs.pem
|
13
|
-
|
14
|
-
matrix:
|
15
|
-
- ruby_version: "24-x64"
|
16
|
-
|
17
|
-
clone_folder: c:\projects\test_kitchen
|
18
|
-
clone_depth: 1
|
19
|
-
skip_tags: true
|
20
|
-
|
21
|
-
branches:
|
22
|
-
only:
|
23
|
-
- master
|
24
|
-
|
25
|
-
install:
|
26
|
-
- ps: net user /add $env:machine_user $env:machine_pass
|
27
|
-
- ps: net localgroup administrators $env:machine_user /add
|
28
|
-
- ps: $env:PATH="C:\Ruby$env:ruby_version\bin;$env:PATH"
|
29
|
-
- ps: Write-Host $env:path
|
30
|
-
- appveyor DownloadFile http://curl.haxx.se/ca/cacert.pem -FileName c:\projects\test_kitchen\certs.pem
|
31
|
-
- set SSL_CERT_FILE=c:\projects\test_kitchen\certs.pem
|
32
|
-
- gem update --system || gem update --system || gem update --system
|
33
|
-
- update_rubygems
|
34
|
-
- gem install bundler --force
|
35
|
-
- ruby --version
|
36
|
-
- gem --version
|
37
|
-
- bundle --version
|
38
|
-
|
39
|
-
build_script:
|
40
|
-
- bundle install --without guard integration
|
41
|
-
|
42
|
-
test_script:
|
43
|
-
- SET SPEC_OPTS=--format progress
|
44
|
-
- bundle exec rake unit
|
45
|
-
- bundle exec rake quality
|
46
|
-
- bundle install --with integration
|
47
|
-
- bundle exec kitchen verify windows
|
data/docs/CONTRIBUTING.md
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
## Contributing
|
2
|
-
|
3
|
-
1. Visit [#kitchenci](http://webchat.freenode.net/?channels=kitchenci) on Freenode IRC to discuss
|
4
|
-
2. Fork https://github.com/test-kitchen/kitchen-docs
|
5
|
-
3. Create your feature branch (`git checkout -b new-docs`)
|
6
|
-
4. Commit your changes (`git commit -am 'Added some new documentation'`)
|
7
|
-
5. Push your feature branch (`git push origin new-docs`)
|
8
|
-
6. Create a Pull Request
|
data/docs/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2013 Fletcher Nichol
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/docs/README.md
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
Documentation for KitchenCI.
|
2
|
-
|
3
|
-
## Overview
|
4
|
-
|
5
|
-
To preview the documentation in your browser run the following:
|
6
|
-
|
7
|
-
~~~ shell
|
8
|
-
bundle install
|
9
|
-
bundle exec middleman server
|
10
|
-
~~~
|
11
|
-
|
12
|
-
While the Getting Started guide is written in primarily [Markdown][markdown] a few pages use [Slim](http://slim-lang.com/), an HTML templating engine for Ruby.
|
13
|
-
|
14
|
-
Then go view the docs at [http://localhost:4567](http://localhost:4567). Edits to the documentation source files should cause the `middleman` server to reload so you can see your changes update live.
|
15
|
-
|
16
|
-
## Hosting
|
17
|
-
|
18
|
-
All documentation will be hosted on the official Kitchen website (http://kitchen.ci), which is a static site built with [Middleman][middleman].
|
19
|
-
|
20
|
-
The important parts to familiarize yourself with for contributing to the KitchenCI documentation are the markdown renderer and syntax highlighting engines used to power http://kitchen.ci.
|
21
|
-
|
22
|
-
Markdown rendering is handled by [kramdown][kramdown]. It would be worth your while to briefly review the kramdown documentation as there are some subtle differences (as well as a number of helpful extensions) that deviate from the Markdown standard.
|
23
|
-
|
24
|
-
Syntax Highlighting is handled by [middleman-syntax][syntax], which uses [Rouge][rouge], which is a ruby-based syntax highlighting engine that is compatible with [Pygments][pygments] templates and supports things like "fenced code blocks" and language-specific syntax highlighting from Markdown.
|
25
|
-
|
26
|
-
## Style Guide
|
27
|
-
|
28
|
-
There are four elements that may be used for "styling" the docs content: in-line code highlighting, code blocks, blockquotes, and a special hack around markdown tables that we'll use for what we call "Pro-Tips".
|
29
|
-
|
30
|
-
### In-line Code Highlighting
|
31
|
-
|
32
|
-
To highlight `some code` inline with other content, just "quote" the text using backtick characters (`). See [the kramdown documentation](http://kramdown.gettalong.org/syntax.html#code-spans) for more details.
|
33
|
-
|
34
|
-
### Fenced Code Blocks
|
35
|
-
|
36
|
-
To highlight a block of code, start and finish the block with three or more tilde characters (`~`). To enable syntax-highlighting, just indicate the code language after the tildes on the first line.
|
37
|
-
|
38
|
-
For example, this code:
|
39
|
-
|
40
|
-
~~~yaml
|
41
|
-
---
|
42
|
-
title: "KitchenCI Overview"
|
43
|
-
next:
|
44
|
-
url: installing-kitchen
|
45
|
-
text: "Installing KitchenCI"
|
46
|
-
---
|
47
|
-
~~~
|
48
|
-
|
49
|
-
...will yield this output:
|
50
|
-
|
51
|
-
~~~~yaml
|
52
|
-
---
|
53
|
-
title: "KitchenCI Overview"
|
54
|
-
next:
|
55
|
-
url: installing-kitchen
|
56
|
-
text: "Installing KitchenCI"
|
57
|
-
---
|
58
|
-
~~~~
|
59
|
-
|
60
|
-
See [the kramdown documentation](http://kramdown.gettalong.org/syntax.html#fenced-code-blocks) for more information.
|
61
|
-
|
62
|
-
### Blockquotes
|
63
|
-
|
64
|
-
To draw attention to some content with a blockquote, just start the line(s) with a `>` (right angle bracket / greater than symbol). See [the kramdown documentation](http://kramdown.gettalong.org/syntax.html#blockquotes) for more information.
|
65
|
-
|
66
|
-
## License
|
67
|
-
The Kitchen Documentation is released under the [MIT license][mit-license].
|
68
|
-
|
69
|
-
|
70
|
-
[markdown]: http://daringfireball.net/projects/markdown/syntax
|
71
|
-
[kitchenci]: http://kitchen.ci
|
72
|
-
[middleman]: http://middlemanapp.com
|
73
|
-
[pages]: http://pages.github.com/
|
74
|
-
[kramdown]: http://kramdown.gettalong.org/
|
75
|
-
[syntax]: https://github.com/middleman/middleman-syntax
|
76
|
-
[rouge]: https://github.com/jayferd/rouge
|
77
|
-
[pygments]: http://pygments.org/
|
78
|
-
[mit-license]: MIT-LICENSE.txt
|
data/docs/archetypes/default.md
DELETED
data/docs/config.toml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
baseURL = "/"
|
2
|
-
languageCode = "en-us"
|
3
|
-
title = "Kitchen Documentation"
|
4
|
-
theme = "kitchen"
|
5
|
-
pygmentsCodeFences = true
|
6
|
-
|
7
|
-
[params]
|
8
|
-
enable_search = true # set to true to show search bar
|
9
|
-
|
10
|
-
[outputs]
|
11
|
-
home = [ "HTML", "RSS", "JSON"]
|
12
|
-
|
13
|
-
[[menu.docs]]
|
14
|
-
identifier = "getting_started"
|
15
|
-
name = "Getting Started"
|
16
|
-
weight = 5
|
17
|
-
|
18
|
-
[[menu.docs]]
|
19
|
-
identifier = "drivers"
|
20
|
-
name = "Drivers"
|
21
|
-
weight = 10
|
22
|
-
|
23
|
-
[[menu.docs]]
|
24
|
-
identifier = "provisioners"
|
25
|
-
name = "Provisioners"
|
26
|
-
weight = 15
|
27
|
-
|
28
|
-
[[menu.docs]]
|
29
|
-
identifier = "verifiers"
|
30
|
-
name = "Verifiers"
|
31
|
-
weight = 20
|
32
|
-
|
33
|
-
[[menu.docs]]
|
34
|
-
identifier = "reference"
|
35
|
-
name = "Reference"
|
36
|
-
weight = 50
|
data/docs/content/docs/_index.md
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Drivers
|
3
|
-
menu:
|
4
|
-
docs:
|
5
|
-
parent: drivers
|
6
|
-
weight: 10
|
7
|
-
---
|
8
|
-
|
9
|
-
A Test-Kitchen *driver* is what supports configuring the compute instance that is used for isolated testing. This is typically a local hypervisor, hypervisor abstraction layer (Vagrant), or cloud service (EC2).
|
10
|
-
|
11
|
-
ChefDK / Chef Workstation include:
|
12
|
-
|
13
|
-
* [kitchen-vagrant](https://github.com/test-kitchen/kitchen-vagrant)
|
14
|
-
* [kitchen-ec2](https://github.com/test-kitchen/kitchen-ec2)
|
15
|
-
* [kitchen-digitalocean](https://github.com/test-kitchen/kitchen-digitalocean)
|
16
|
-
* [kitchen-dokken](https://github.com/someara/kitchen-dokken)
|
17
|
-
* [kitchen-google](https://github.com/test-kitchen/kitchen-google)
|
18
|
-
* [kitchen-hyperv](https://github.com/test-kitchen/kitchen-hyperv)
|
19
|
-
* [kitchen-azurerm](https://github.com/test-kitchen/kitchen-azurerm)
|
20
|
-
|
21
|
-
Community Drivers:
|
22
|
-
|
23
|
-
* [kitchen-docker](https://github.com/test-kitchen/kitchen-docker)
|
24
|
-
* [kitchen-openstack](https://github.com/test-kitchen/kitchen-openstack)
|
25
|
-
* [kitchen-terraform](https://github.com/newcontext-oss/kitchen-terraform)
|
26
|
-
|
27
|
-
There are other drivers that have existed over the life of test-kitchen that we do not list here, either because they are un-maintained or have been supplanted by other drivers.
|
@@ -1,44 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: AzureRM
|
3
|
-
menu:
|
4
|
-
docs:
|
5
|
-
parent: drivers
|
6
|
-
weight: 15
|
7
|
-
---
|
8
|
-
|
9
|
-
kitchen-azurerm is a Test Kitchen *driver* for Microsoft Azure. A full example reference can be found [here](https://github.com/test-kitchen/kitchen-azurerm#kitchenyml-example-1---linuxubuntu).
|
10
|
-
|
11
|
-
Example **kitchen.yml**:
|
12
|
-
|
13
|
-
```
|
14
|
-
---
|
15
|
-
driver:
|
16
|
-
name: azurerm
|
17
|
-
subscription_id: '4801fa9d-YOUR-GUID-HERE-b265ff49ce21'
|
18
|
-
location: 'West Europe'
|
19
|
-
machine_size: 'Standard_D2_V2'
|
20
|
-
|
21
|
-
provisioner:
|
22
|
-
name: chef_zero
|
23
|
-
retry_on_exit_code:
|
24
|
-
- 20
|
25
|
-
- 35
|
26
|
-
max_retries: 10
|
27
|
-
wait_for_retry: 180
|
28
|
-
client_rb:
|
29
|
-
exit_status: :enabled
|
30
|
-
|
31
|
-
platforms:
|
32
|
-
- name: windows2016
|
33
|
-
driver:
|
34
|
-
image_urn: MicrosoftWindowsServer:WindowsServer:2016-Datacenter:latest
|
35
|
-
transport:
|
36
|
-
name: winrm
|
37
|
-
elevated: true
|
38
|
-
|
39
|
-
suites:
|
40
|
-
- name: default
|
41
|
-
run_list:
|
42
|
-
- recipe[mycookbook::default]
|
43
|
-
attributes:
|
44
|
-
```
|
@@ -1,39 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Vagrant
|
3
|
-
menu:
|
4
|
-
docs:
|
5
|
-
parent: drivers
|
6
|
-
weight: 15
|
7
|
-
---
|
8
|
-
|
9
|
-
Full example reference can be found [here](https://github.com/test-kitchen/kitchen-vagrant/blob/master/example/kitchen.vagrant.yml)
|
10
|
-
|
11
|
-
|
12
|
-
```
|
13
|
-
---
|
14
|
-
driver:
|
15
|
-
name: vagrant
|
16
|
-
provider: virtualbox
|
17
|
-
|
18
|
-
provisioner:
|
19
|
-
name: chef_zero
|
20
|
-
|
21
|
-
verifier:
|
22
|
-
name: inspec
|
23
|
-
|
24
|
-
platforms:
|
25
|
-
- name: ubuntu-16.04
|
26
|
-
- name: centos-7
|
27
|
-
- name: openbsd-5.6
|
28
|
-
driver:
|
29
|
-
box: openbsd-5.6
|
30
|
-
box_url: http://url.tld/openbsd-5.6.box
|
31
|
-
|
32
|
-
suites:
|
33
|
-
- name: default
|
34
|
-
attributes:
|
35
|
-
cookbook:
|
36
|
-
attribute: 'value'
|
37
|
-
run_list:
|
38
|
-
- recipe[cookbook::default]
|
39
|
-
```
|
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: "Introduction"
|
3
|
-
slug: introduction
|
4
|
-
menu:
|
5
|
-
docs:
|
6
|
-
parent: getting_started
|
7
|
-
weight: 1
|
8
|
-
---
|
9
|
-
|
10
|
-
The best way to understand what kitchen does is to see it in action so we're going to use it to help us write a simple Chef cookbook. This cookbook will be complete with tests that verify the cookbook does what it's supposed to do. Kitchen comes at the process of software development with an approach that embraces the idea that writing the tests *first*, watching them fail, and then writing the code to make them pass is a great way to go. Also known as *red, green, refactor*, it's a great way to write quality software. By the end of this guide, you'll be familiar with this approach.
|
11
|
-
|
12
|
-
<div class="sidebar--footer">
|
13
|
-
<a class="button primary-cta" href="/docs/getting-started/installing">Next - Installing</a>
|
14
|
-
</div>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: "Installing"
|
3
|
-
slug: installing
|
4
|
-
menu:
|
5
|
-
docs:
|
6
|
-
parent: getting_started
|
7
|
-
weight: 10
|
8
|
-
---
|
9
|
-
|
10
|
-
As this is a quick start guide, it doesn't assume any great familiarity with Chef or Ruby and takes you through the process of writing a Chef cookbook with automated testing as standard. In order to follow this guide, we'll need a few tools first.
|
11
|
-
|
12
|
-
##### Pre-requisites
|
13
|
-
|
14
|
-
- 64 bit operating system
|
15
|
-
- CPU Virtualization enabled
|
16
|
-
|
17
|
-
In order to virtualize a 64 bit operating system, one must also be running a 64 bit operating system. Most importantly, the CPU itself must support hardware virtualization extensions and this must be enabled in the BIOS/EFI. Most modern processors support virtualization extensions in the form of VT-x (Intel) or AMD-V (AMD).
|
18
|
-
|
19
|
-
<div class="callout">
|
20
|
-
<h3 class="callout--title">Windows and Hyper-V</h3>
|
21
|
-
Unfortunately Hyper-V doesn't like other hypervisors running at the same time and it must be disabled as a Windows Feature for VirtualBox to function properly.
|
22
|
-
</div>
|
23
|
-
|
24
|
-
##### ChefDK
|
25
|
-
|
26
|
-
First, install the [ChefDK](https://downloads.chef.io/chefdk). This package includes Chef, Kitchen, Berkshelf, and a variety of useful tools for the Chef ecosystem.
|
27
|
-
|
28
|
-
~~~
|
29
|
-
$ chef --version
|
30
|
-
Chef Development Kit Version: 3.2.30
|
31
|
-
chef-client version: 14.4.56
|
32
|
-
delivery version: master (6862f27aba89109a9630f0b6c6798efec56b4efe)
|
33
|
-
berks version: 7.0.6
|
34
|
-
kitchen version: 1.23.2
|
35
|
-
inspec version: 2.2.70
|
36
|
-
~~~
|
37
|
-
|
38
|
-
##### VirtualBox
|
39
|
-
|
40
|
-
VirtualBox is a hypervisor that lets you run virtual machines on your local workstation. Obtain the correct installer for your platform [here](https://www.virtualbox.org/wiki/Downloads). Verify that the command is accessible and in the $PATH with the following:
|
41
|
-
|
42
|
-
~~~
|
43
|
-
$ VBoxManage --version
|
44
|
-
5.2.18r124319
|
45
|
-
~~~
|
46
|
-
|
47
|
-
##### Vagrant
|
48
|
-
|
49
|
-
Vagrant manages hypervisors such as VirtualBox and makes it easy to distribute pre-packaged virtual machines, known as "boxes". Obtain the correct installer for your platform [here](https://www.vagrantup.com/downloads.html).
|
50
|
-
|
51
|
-
~~~
|
52
|
-
$ vagrant --version
|
53
|
-
Vagrant 2.1.5
|
54
|
-
~~~
|
55
|
-
|
56
|
-
We've just installed ChefDK, VirtualBox, and Vagrant. The reason we have done so is that the default `driver` for test-kitchen is `kitchen-vagrant` which uses Vagrant to create, manage, and destroy local virtual machines. Vagrant itself supports many different hypervisors and clouds but for the purposes of this exercise we are interested in the default local virtualization provided by VirtualBox.
|
57
|
-
|
58
|
-
Kitchen is modular so that one may use a variety of different drivers (Vagrant, EC2, Docker), provisioners (Chef, Ansible, Puppet), or verifiers (InSpec, Serverspec, BATS) but for the purposes of the guide we're focusing on the default "happy path" of Vagrant with VirtualBox, Chef, and InSpec.
|
59
|
-
|
60
|
-
|
61
|
-
<div class="sidebar--footer">
|
62
|
-
<a class="button primary-cta" href="/docs/getting-started/getting-help">Next - Getting Help</a>
|
63
|
-
<a class="sidebar--footer--back" href="/docs/getting-started/">Back to previous step</a>
|
64
|
-
</div>
|