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

Missing without_subscribes_to or without_notifies #28

Open
fe80 opened this issue Sep 23, 2022 · 0 comments
Open

Missing without_subscribes_to or without_notifies #28

fe80 opened this issue Sep 23, 2022 · 0 comments

Comments

@fe80
Copy link

fe80 commented Sep 23, 2022

Use Case

Hello,

Sometimes we disable notification of service or a exec resource. That can be useful to check if a subscribes or an notifies is correctly absent.

Describe the Solution You Would Like

contain_service(title).without_subscribes_to("File[/etc/systemd/system/#{title}]")

Describe Alternatives You've Considered

voxpupuli/puppet-systemd#295 (comment)

it { is_expected.not_to contain_service(title).with_subscribes_to("File[/etc/systemd/system/#{title}]")

Additional Context

This issue is related with voxpupuli/puppet-systemd#295

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