KITCHEN(1)
π KITCHEN(1) π
okay so bestie, welcome to the kitchen manual page (it lives in the User Commands section, iykyk) β¨
πΈ NAME πΈ
Kitchen β the integration tool for Chef. that's it. that's the name. slay π
π DESCRIPTION π
ngl, Test Kitchen is a test harness tool that lets you execute your configured code on one or more platforms in isolation. it's giving β¨scienceβ¨ but for your infrastructure.
the way it works is: there's a driver plugin architecture π« which means you can run your code on all kinds of cloud providers and virtualization technologies, like:
- Amazon EC2
- Blue Box
- CloudStack
- Digital Ocean
- Rackspace
- OpenStack
- Vagrant
- Docker
- LXC containers
- and more π
also many testing frameworks are already supported out of the box, including Bats, shUnit2, RSpec, and Serverspec, with others being created weekly. literally weekly. the girlies are busy π
for Chef workflows, cookbook dependency resolver tools such as Berkshelf and Librarian-Chef are supported π«Ά or honestly you can just have a cookbooks/ directory and Test Kitchen will know what to do. it just knows. main character energy fr fr.
and support for Test Kitchen is already included in many Chef community cookbooks, such as the MySQL, nginx, Chef Server, and runit cookbooks. obsessed ππ
β¨ Commands: β¨
okay bestie here's the whole menu, no skips, no cuts, we're doing all of them π
kitchen consoleβ # Kitchen Console! πkitchen converge [INSTANCE|REGEXP|all]β # Change instance state to converge. Use a provisioner to configure one or more instances π§kitchen create [INSTANCE|REGEXP|all]β # Change instance state to create. Start one or more instances π±kitchen destroy [INSTANCE|REGEXP|all]β # Change instance state to destroy. Delete all information for one or more instances π (dramatic but true)kitchen diagnose [INSTANCE|REGEXP|all]β # Show computed diagnostic configuration π©Ίkitchen driverβ # Driver subcommands πkitchen driver create [NAME]β # Create a new Kitchen Driver gem project πkitchen driver discoverβ # Discover Test Kitchen drivers published on RubyGems πkitchen driver help [COMMAND]β # Describe subcommands or one specific subcommand πkitchen exec INSTANCE|REGEXP -c REMOTE_COMMANDβ # Execute command on one or more instance πβοΈkitchen help [COMMAND]β # Describe available commands or one specific command πβοΈkitchen initβ # Adds some configuration to your cookbook so Kitchen can rock πΈ
a .kitchen.yml will be created in your project base directory. this file describes your testing configuration: what you want to test and on which target platforms. each of these suite and platform combinations are called instances π
by default your instances will be converged with Chef Solo and run in Vagrant virtual machines. cute, right? β¨
kitchen list [INSTANCE|REGEXP|all]β # Lists one or more instances πkitchen login INSTANCE|REGEXPβ # Log in to one instance πkitchen setup [INSTANCE|REGEXP|all]β # Change instance state to setup. Prepare to run automated tests. Install busser and related gems on one o... π§°kitchen test [INSTANCE|REGEXP|all]β # Test (destroy, create, converge, setup, verify and destroy) one or more instances π§ͺ β yes it does all six, it's a whole journeykitchen verify [INSTANCE|REGEXP|all]β # Change instance state to verify. Run automated tests on one or more instances βkitchen versionβ # Print Kitchen's version information π·οΈ
π‘ quick vibe check: that setup description is verbatim-truncated as "on one o..." in the original, so we're keeping it exactly like that. no cap, don't @ me π
and that's the whole page bestie!! π¦πΈβ¨
this lil masterpiece is from Test Kitchen version 1.4.1, dated June 2015 β yeah she's a classic, an icon, a legend, and she IS the moment ππ periodt π
bye bestie, go converge something gorgeous πππ«Ά
π¦ where this page comes from
- ubuntu jammy: test-kitchen 1.23.2-6 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms