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 support for puppetdb behind basic auth #159

Merged
merged 1 commit into from
Nov 16, 2017
Merged

Add support for puppetdb behind basic auth #159

merged 1 commit into from
Nov 16, 2017

Conversation

ahayworth
Copy link
Contributor

Overview

This pull request adds basic auth support for puppetdb URLs.

We have a moderately unique puppet setup (though remarkably close to
github's setup, in some ways). We run puppetdb behind a proxy that is
secured with basic auth (and we will eventually be submitting patches
upstream to puppet). This commit allows octocatalog-diff to parse a basic
auth username, and password from a URL.

Checklist

  • [✓] Make sure that all of the tests pass, and fix any that don't. Just run rake in your checkout directory, or review the CI job triggered whenever you push to a pull request.
  • [✓] Make sure that there is 100% test coverage by running rake coverage:spec or ignoring untestable sections of code with # :nocov comments. If you need help getting to 100% coverage please ask; however, don't just submit code with no tests.
  • [✓] If you have added a new command line option, we would greatly appreciate a corresponding integration test that exercises it from start to finish. This is optional but recommended. (n/a)
  • [✓] If you have added any new gem dependencies, make sure those gems are licensed under the MIT or Apache 2.0 license. We cannot add any dependencies on gems licensed under GPL. (n/a)
  • [✓] If you have added any new gem dependencies, make sure you've checked in a copy of the .gem file into the vendor/cache directory. (n/a)

@ahayworth
Copy link
Contributor Author

It should be noted that many specs fail unless you have v 1.15.4 of bundler installed - which seems to be why CI is failing. rake passes all tests locally with 1.15.4 installed.

@kpaulisse
Copy link
Contributor

Hey @ahayworth thanks for submitting a PR for this feature. It's been a while since the CI suite ran, and it looks like there were some changes to the bundler version at Travis that broke things. I've just merged a fix, so hopefully if you pull the latest master into your branch it'll pass 🤞 .

We have a moderately unique puppet setup (though remarkably close to
github's setup, in some ways). We run puppetdb behind a proxy that is
secured with basic auth (and we will eventually be submitting patches
upstream to puppet). This commit allows octocatalog-diff to parse basic
auth username, and password from a URL.
@ahayworth
Copy link
Contributor Author

Heyo -

Thanks for that! Looks like it's failing under some ruby versions I'm not running locally, so I'll get those, re-test, and update later. :)

@ahayworth ahayworth closed this Nov 14, 2017
@ahayworth ahayworth reopened this Nov 14, 2017
@ahayworth
Copy link
Contributor Author

Looks like the build failure was ~transient, at least to me. Re-build looks okay.

@kpaulisse
Copy link
Contributor

Looks like the build failure was ~transient, at least to me

😿 I have also seen some flaky tests - currently investigating improvements because that can be super frustrating. Thanks for your persistence!

@ahayworth
Copy link
Contributor Author

ahayworth commented Nov 15, 2017 via email

Copy link
Contributor

@kpaulisse kpaulisse left a comment

Choose a reason for hiding this comment

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

Being tested internally within GitHub. Will merge soon.

Thanks again!

@kpaulisse kpaulisse merged commit f97f947 into github:master Nov 16, 2017
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