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

Inconsistent describe.one blocks #75

Closed
7 tasks done
karikarshivani opened this issue Dec 6, 2021 · 1 comment · Fixed by #105
Closed
7 tasks done

Inconsistent describe.one blocks #75

karikarshivani opened this issue Dec 6, 2021 · 1 comment · Fixed by #105
Assignees
Labels

Comments

@karikarshivani
Copy link
Contributor

karikarshivani commented Dec 6, 2021

The describe.one blocks for these controls are not consistent:

  • V-93249
  • V-93261
  • V-93263
  • V-93267
  • V-93311
  • V-93413
  • V-93563

The controls listed above have this in the check text:

If the registry value name below does not exist, this is not a finding.
If it exists and is configured with a value of <value>, this is not a finding.
If it exists and is configured with a value of <value>, this is a finding.


Code recommendation:

describe.one do
    describe registry_key('<path>') do
        it { should_not have_property '<property>' }
    end
    describe registry_key('<path>') do
        it { should have_property '<property>' }
        its('SaveZoneInformation') { should_not cmp <value> }
        its('SaveZoneInformation') { should cmp <value> }
    end
end
@karikarshivani karikarshivani added the enhancement New feature or request label Dec 6, 2021
@Amndeep7 Amndeep7 added chore and removed enhancement New feature or request labels Feb 5, 2022
@abailey1021
Copy link
Contributor

Describe Blocks updated... Pending review.

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

Successfully merging a pull request may close this issue.

3 participants