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

SV-204417 alternative describe block #212

Open
karikarshivani opened this issue Sep 6, 2023 · 0 comments
Open

SV-204417 alternative describe block #212

karikarshivani opened this issue Sep 6, 2023 · 0 comments

Comments

@karikarshivani
Copy link

Please consider using this describe block for a cleaner test:

describe parse_config_file('/etc/libuser.conf') do
  its('defaults.crypt_style') { should cmp 'sha512' }  
end

Instead of the existing test:

describe command('cat /etc/libuser.conf | grep -i sha512') do
  its('stdout.strip') { should match(/^crypt_style = sha512$/) }
end
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

No branches or pull requests

1 participant