RSpec Code Examples

 

 

os_patching module
base class
should not be directory49.17316s
os_patching module with patching window
base class
should not be directory55.15805s
os_patching module with patching window
base class
should not be directory39.12482s
os_patching module purge
base class
should not be directory25.45704s
os_patching test task
base class
should be directory 50.34384s
  On host `localhost:2233'
  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