RSpec Code Examples

 

 

os_patching module
base class
should not be directory45.51569s
os_patching module with patching window
base class
should not be directory52.70372s
os_patching module with patching window
base class
should not be directory40.91253s
os_patching module purge
base class
should not be directory26.08712s
os_patching test task
base class
should be directory 47.17301s
  On host `localhost:2231'
  Failure/Error: run_task('os_patching::patch_server')
  ArgumentError:
    wrong number of arguments (given 1, expected 3)
    /bin/sh -c test\ -d\ /var/cache/os_patching
    
  # ./.bundle/gems/ruby/2.5.0/gems/bolt-1.16.0/lib/bolt_spec/run.rb:14:in `run_task'
  # ./spec/acceptance/os_patching_spec.rb:109:in `block (3 levels) in <top (required)>'
./.bundle/gems/ruby/2.5.0/gems/bolt-1.16.0/lib/bolt_spec/run.rb:14:in `run_task'
./spec/acceptance/os_patching_spec.rb:109:in `block (3 levels) in <top (required)>'
12module BoltSpec
13  module Run
14    def run_task(task_name, targets, params, config: nil, inventory: nil)
15      if config.nil? && defined?(bolt_config)
16        config = bolt_config