-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Figure out how to test task in acceptance tests
- Loading branch information
1 parent
442424c
commit e8e7da3
Showing
6 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require 'spec_helper_acceptance' | ||
require 'beaker-task_helper/inventory' | ||
require 'bolt_spec/run' | ||
|
||
describe 'run_agent task' do | ||
include Beaker::TaskHelper::Inventory | ||
include BoltSpec::Run | ||
|
||
def module_path | ||
RSpec.configuration.module_path | ||
end | ||
|
||
def bolt_config | ||
{ 'modulepath' => File.join(File.dirname(File.expand_path(__FILE__)),'../','fixtures', 'modules') } | ||
end | ||
|
||
def bolt_inventory | ||
hosts_to_inventory | ||
end | ||
|
||
it 'works - HA! I wish!' do | ||
results = run_task('puppet::run_agent', 'target', {}) | ||
pp results | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters