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

Add a transitive test property #35

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ekohl
Copy link

@ekohl ekohl commented Nov 21, 2022

This is a minimal reproducer that's essentially A ~> B ~> C. The that_subscribes_to matcher shows that this is equal to A ~> C but in practice Puppet doesn't work that way. The service is not restarted if the file is modified.

I don't know what is the expected behavior here, but it does mean that today it's not possible to test for real world behavior.

It was first opened as rodjek#821 but that repo was forked. Then I opened #29 but it was closed due to a change of the default branch so here is attempt number 3.

This is a minimal reproducer that's essentially A ~> B ~> C. The
that_subscribes_to matcher shows that this is equal to A ~> C but in
practice Puppet doesn't work that way. The service is not restarted if
the file is modified.

I don't know what is the expected behavior here, but it does mean that
today it's not possible to test for real world behavior.
@ekohl ekohl requested a review from a team as a code owner November 21, 2022 16:11
@chelnak
Copy link

chelnak commented Nov 25, 2022

Are these the only changes required to enable this?

@ekohl ekohl marked this pull request as draft November 25, 2022 11:41
@ekohl
Copy link
Author

ekohl commented Nov 25, 2022

No, please see the original discussion in rodjek#821. Right now this is here just to show that it's broken. This may look green, but that's just because the tests didn't run.

I still don't know what the expected behavior is: either Puppet should be fixed or rspec-puppet should reflect what Puppet actually does.

@chelnak
Copy link

chelnak commented Nov 25, 2022

Understood. Thanks for clarifying.

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 this pull request may close these issues.

2 participants