RSpec Code Examples

 

 

os_patching module
base class
should not be directory57.22252s
os_patching module with patching window
base class
should not be directory57.47486s
os_patching module with patching window
base class
should not be directory42.04086s
os_patching module purge
base class
should not be directory26.55595s
os_patching test task
base class
should be directory 47.78932s
  On host `localhost:2234'
  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