Skip to content

Add MellonSetEnv support #2423

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

Merged
merged 3 commits into from
Jul 20, 2023
Merged

Add MellonSetEnv support #2423

merged 3 commits into from
Jul 20, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jun 12, 2023

Add MellonSetEnv support, will prepend MELLON_ to the environment variable name

Fixes #2416

@ghost ghost requested review from a team, bastelfreak, ekohl and smortex as code owners June 12, 2023 10:24
@CLAassistant
Copy link

CLAassistant commented Jun 12, 2023

CLA assistant check
All committers have signed the CLA.

@ghost
Copy link
Author

ghost commented Jun 12, 2023

This is for issue #2416

@jordanbreen28
Copy link
Contributor

@ic248 thanks for this submission!
Could you add a description to this PR?

@ghost
Copy link
Author

ghost commented Jun 12, 2023

Hi @jordanbreen28 ,

Sorry my first PR, think I've added that now.

Thanks
Ian

smortex
smortex previously approved these changes Jun 12, 2023
@ghost
Copy link
Author

ghost commented Jun 21, 2023

Anything else required from me to get this merged?

@bastelfreak
Copy link
Collaborator

@ic248 can you please rebase and add a unit test?

@ghost
Copy link
Author

ghost commented Jun 26, 2023

@bastelfreak I've rebased, not sure where to start for a unit test, as far as I can see none of the mod_auth_mellon directives currently have any form of tests. If you could push me in the right direction I could create something (not created unit tests before).

Thanks
Ian

@smortex
Copy link
Collaborator

smortex commented Jun 27, 2023

I think you can add a new directory in spec/defines/vhost_spec.rb near line 303 with a somewhat complete mellon_* configuration (the test context is intended to set all parameters and check them all), and adjust near line 723 to add the corresponding checks.

We have some pointers to run unit tests here:
https://voxpupuli.org/docs/how_to_run_tests/

@ghost
Copy link
Author

ghost commented Jul 12, 2023

rebased again and added unit tests for mellon_*

@ghost ghost requested a review from smortex July 12, 2023 09:54
@smortex
Copy link
Collaborator

smortex commented Jul 12, 2023

Thanks! CI failure is just anoyance, I suggest adding a "magic comment" before line 631:

# rubocop:disable RSpec/ExampleLength

and the corresponding magic comment on line 750:

# rubocop:enable RSpec/ExampleLength

That should fix it!

@ghost
Copy link
Author

ghost commented Jul 13, 2023

Thanks @smortex I've added your suggestions, you've all been really helpful since I'm new to a lot of these CI and unit tests

Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

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

LGTM!

@ghost
Copy link
Author

ghost commented Jul 17, 2023

Does anyone else need to review this before it can be merged in?

@smortex
Copy link
Collaborator

smortex commented Jul 18, 2023

@ic248 I would like to see someone form Puppet approving this before merging, but if in a couple day nobody complained, I will assume nobody is bothered by this and that we can merge the PR 🤷.

@ghost
Copy link
Author

ghost commented Jul 19, 2023

Looks like things failed due to Puppet forge being down for maintenance

@ghost
Copy link
Author

ghost commented Jul 19, 2023

@malikparvez looks like Puppet forge is back online, should be good to rerun checks

@malikparvez
Copy link
Member

@malikparvez looks like Puppet forge is back online, should be good to rerun checks

yes @ic248 it is up now and ci is successful...

@malikparvez malikparvez merged commit 9436c0a into puppetlabs:main Jul 20, 2023
@malikparvez
Copy link
Member

thanks for your contribution @ic248

@ghost ghost mentioned this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MellonSetEnv
7 participants