Class: MiniTest::Unit::ProvisionedTestCase
- Inherits:
-
TestCase
- Object
- TestCase
- MiniTest::Unit::ProvisionedTestCase
- Extended by:
- ChefWorkflow::SSHHelper, ProvisionHelper
- Includes:
- ChefWorkflow::SSHHelper, ProvisionHelper
- Defined in:
- lib/chef-workflow/test-case/provisioned.rb
Overview
Basic provisioned test case. Generally not intended for direct use but provides the scaffolding for subclasses.
Set the class attribute ‘provision_helper` to configure your provision helper, which will be used for many methods this class provides.
Direct Known Subclasses
Defined Under Namespace
Modules: ProvisionHelper
Class Method Summary collapse
-
.before_suite ⇒ Object
Hook before the suite starts.
Methods included from ProvisionHelper
deprovision, get_role_ips, inherited, knife_config, provision, provision_helper, provision_helper=, wait_for
Class Method Details
.before_suite ⇒ Object
Hook before the suite starts. Be sure in your subclasses to call this with ‘super`. Provisions machines configured as dependencies and starts the scheduler.
90 91 92 93 94 |
# File 'lib/chef-workflow/test-case/provisioned.rb', line 90 def self.before_suite super Chef::Config.from_file(ChefWorkflow::KnifeSupport.knife_config_path) end |