Class: MiniTest::Unit::ProvisionedTestCase

Inherits:
TestCase
  • Object
show all
Extended by:
ProvisionHelper
Includes:
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

EC2TestCase, VagrantTestCase

Defined Under Namespace

Modules: ProvisionHelper

Class Method Summary collapse

Methods included from ProvisionHelper

deprovision, get_role_ips, inherited, knife_config, provision, provision_helper, provision_helper=, wait_for

Class Method Details

.before_suiteObject

Hook before the suite starts. Be sure in your subclasses to call this with ‘super`. Provisions machines configured as dependencies and starts the scheduler.



83
84
85
86
87
# File 'lib/chef-workflow/test-case/provisioned.rb', line 83

def self.before_suite
  super

  Chef::Config.from_file(KnifeSupport.singleton.knife_config_path)
end