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

(PUP-7799) Allow searching for resources #8631

Merged
merged 2 commits into from
Jun 14, 2021

Conversation

joshcooper
Copy link
Contributor

Commit ef12173 renamed the Puppet::Resource#to_resource method, which broke the ral terminus, but it went unnoticed due to overstubbing in the test. This cleans up the tests and makes it possible to once again filter resources either using the key Puppet::Resource.indirection.search('user/root') or using options Puppet::Resource.indirection.search('user', name: 'root')

@joshcooper joshcooper requested review from a team June 11, 2021 18:56
Commit ef12173 renamed the Puppet::Resource#to_resource method, but it wasn't
caught here due to overstubbing. This commit updates the tests and marks two of
the test as pending.
Searching for instances of a particular type in the request key or as an
indirector request option didn't work because the Puppet::Resource#to_resource
method was renamed. Update it to call the correct method.
@joshcooper joshcooper changed the base branch from main to 6.x June 11, 2021 19:02
@joshcooper joshcooper closed this Jun 11, 2021
@joshcooper joshcooper reopened this Jun 11, 2021
@joshcooper
Copy link
Contributor Author

jenkins please test this with servertests

@joshcooper joshcooper merged commit 41119aa into puppetlabs:6.x Jun 14, 2021
@joshcooper joshcooper deleted the ral_search_7799 branch June 14, 2021 18:15
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.

None yet

2 participants