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 curl_command as serverspec extension #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Jan 14, 2025

No description provided.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be added to spec_helper_acceptance.rb, or should people need to explicitly opt-in to it with

require 'voxpupuli/acceptance/serverspec_extensions'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makese sense to load it by default? It's not expensive and makes the usage easier.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only worry is that it modifies serverspec without the user opting in for that.
But I would also lean towards "enable"

@ekohl?

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think explicitly opting in can make sense, but I'd like to see it documented (for example in README).

end

def body_as_json
MultiJson.load(body)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: serverspec itself now depends on multi_json so this should be acceptable.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still like to see some instructions on using it, probably in README

@evgeni
Copy link
Member Author

evgeni commented Jan 18, 2025

@ekohl added README

@evgeni evgeni force-pushed the curl_command branch 2 times, most recently from 3476ae3 to 20a8256 Compare January 18, 2025 15:33
otherwise the module is not found and Puppet reaches out to the forge
@evgeni
Copy link
Member Author

evgeni commented Jan 18, 2025

The docs and the loading are not in sync (docs say default, code doesn't load by default)

@evgeni evgeni added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants