Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
benjamin-kuhar opened this issue Feb 1, 2021 · 1 comment · Fixed by #106
Assignees

Comments

@benjamin-kuhar
Copy link

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

  • Ubuntu 20.04
  • Ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu] <-- This is the version provided from apt

Inspec Version

4.22.8

Baseline Version

master

Additional context
This started failing 3 days ago. Looks related to the apparmor test changes from #104 in controls/1_6_mandatory_access_control.rb

@schurzi
Copy link
Contributor

schurzi commented Feb 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants