Sha256: e67e52832d05831baf98c511873935972f1ed20401c4149d514efd1d5fc74f52
Contents?: true
Size: 1001 Bytes
Versions: 9
Compression:
Stored size: 1001 Bytes
Contents
require 'test_helper' require 'support/kitchen_helper' require 'support/validation_helper' require 'chef/knife/solo_bootstrap' require 'chef/knife/solo_cook' require 'chef/knife/solo_prepare' class SoloBootstrapTest < TestCase include KitchenHelper include ValidationHelper::ValidationTests def test_includes_all_prepare_options bootstrap_options = Chef::Knife::SoloBootstrap.options Chef::Knife::SoloPrepare.new.options.keys.each do |opt_key| assert bootstrap_options.include?(opt_key), "Should support option :#{opt_key}" end end def test_includes_clean_up_cook_option assert Chef::Knife::SoloBootstrap.options.include?(:clean_up), "Should support option :clean_up" end def test_runs_prepare_and_cook Chef::Knife::SoloPrepare.any_instance.expects(:run) Chef::Knife::SoloCook.any_instance.expects(:run) in_kitchen do command("somehost").run end end def command(*args) knife_command(Chef::Knife::SoloBootstrap, *args) end end
Version data entries
9 entries across 9 versions & 1 rubygems