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

(FM-7839) Implement to_json method for ResourceShim #168

Merged
merged 1 commit into from
Apr 29, 2019
Merged

(FM-7839) Implement to_json method for ResourceShim #168

merged 1 commit into from
Apr 29, 2019

Commits on Apr 15, 2019

  1. (FM-7839) Implement 'to_json' method for ResourceShim for bolt

    bolt's `get_resources` uses the `libexec/query_resources.rb` to retrieve
    resources as json from the target nodes. Especially https://github.com/puppetlabs/bolt/blob/7dec6e49d66c7f9ae06088d46ee3330de0ed2fed/libexec/query_resources.rb#L71
    causes `ResourceShims` to fail as they did not implement `to_json`.
    
    This integration test models what `libexec/query_resources.rb` is doing.
    The added `to_json(*)` method now passes this test, and - shown in manual
    testing - works for bolt.
    da-ar authored and DavidS committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    83323bf View commit details
    Browse the repository at this point in the history