[BOLT-228] Make Bolt Code Testable Created: 2017/11/21  Updated: 2019/08/26  Resolved: 2019/08/26

Status: Closed
Project: Puppet Task Runner
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Epic Priority: Normal
Reporter: Zach Reichert Assignee: Zach Reichert
Resolution: Duplicate Votes: 2
Labels: closed-github-move
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Support
Epic Name: Bolt Testing
Template:
Team/s:
Bolt
QA Risk Assessment: Needs Assessment

 Description   

There is no good tooling for testing tasks and plans.

Current State:

  • unit test tasks - nothing
  • acceptance test tasks - beaker-task_helper
  • unit test plans - Bolt spec supports mocking out run_task calls in a plan
  • acceptance test plans - nothing

Improvements:

  • unit test tasks - There isn't much to do here until we write boilerplate libraries for command scripting languages.
  • acceptance test tasks - We should streamline the beaker-task_helper so it relies on bolt being installed as a gem with beaker and allows users to select targets/inventory from beakers hosts.
  • unit test plans - We should add test helpers for more plan language functions and look into getting BoltSpec added to rspec-puppet
  • acceptance test plans - We should add helpers for acceptance testing plans in beaker-task_helper


 Comments   
Comment by Lucy Wyman [ 2019/08/26 ]

This issue was automatically closed when the Bolt team moved to using Github Issues for ticket management (August 2019). If you'd like to reopen the issue or discuss it further please open a github issue at http://github.com/puppetlabs/bolt/issues.

Generated at Fri Jan 17 19:18:50 PST 2020 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.