dev-sec / cis-dil-benchmark

CIS Distribution Independent Linux Benchmark - InSpec Profile
Apache License 2.0
148 stars 92 forks source link

cis-dil-benchmark-1.6.3.2: undefined method `positive?' for #<RSpec::Matchers::DSL::Matcher cmp> #105

Closed benjamin-kuhar closed 3 years ago

benjamin-kuhar commented 3 years ago

Describe the bug Over the weekend, our nightly image builds started failing with the following error for cis-dil-benchmark-1.6.3.2:

undefined method `positive?' for #<RSpec::Matchers::DSL::Matcher cmp>"

Expected behavior The test to run successfully and not throw an undefiend method error.

Actual behavior

cis-dil-benchmark.cis-dil-benchmark-1.6.3.2

Command: `apparmor_status --profiled` stdout

{
  "message": "undefined method `positive?' for #<RSpec::Matchers::DSL::Matcher cmp>"
}

Example code

OS / Environment

Inspec Version

4.22.8

Baseline Version

master

Additional context This started failing 3 days ago. Looks related to the apparmor test changes from https://github.com/dev-sec/cis-dil-benchmark/pull/104 in controls/1_6_mandatory_access_control.rb

schurzi commented 3 years ago

thank you for reporting this. It is now fixed in 0.4.10