-
Notifications
You must be signed in to change notification settings - Fork 68
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
Allow authentication with registry.npmjs.com #94
Conversation
Looks good so far, can you add update the unit tests? @jdxcode does the package.json need to be updated? Doesn't npm publish handle that? |
Hey @dgautsch, thanks for getting back to me. Regarding the unit tests:
I'm more than happy to help fix up existing tests too, but at the moment I have a totally unstable set of tests locally so I assume I'm running them incorrectly. Thanks. |
I definitely wouldn't change the version in a PR. I recommend using |
@Ianfeather hi Ian, apologies for the slow response, I was hoping jd would jump in here because the s3 tests are going to fail, looks like they're running through his personal amazon cloud. Running tests is done from the command line via |
running locally you just need to set the AWS env vars to a valid S3 bucket. Running on circle is a different story, however. I'm not sure how to enable the public to run the tests without potentially exposing the credentials |
package.json
Outdated
@@ -1,7 +1,7 @@ | |||
{ | |||
"name": "npm-register", | |||
"description": "Your own private npm registry and backup server", | |||
"version": "2.5.2", | |||
"version": "2.6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ianfeather revert this file, I will make sure it's updated when we republish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
@jdxcode Thanks, that should give me enough to get going. Would you be interested in an update which mocks s3 for the unit tests? You could potentially have a couple of integration tests that run separately to the core unit tests and actually hit an s3 bucket |
that sounds like a good idea, I wonder if there is something like nock for s3 that would be useful here |
There's this https://www.npmjs.com/package/mock-aws-s3, I've never used it though. I'll circle back to that in a different PR |
I added test documentation in #95 |
Ok thanks Ian. I'll take a look tonight after work.
…On Nov 21, 2017 12:48 PM, "Ianfeather" ***@***.***> wrote:
@dgautsch <https://github.com/dgautsch> This now has tests and all are
passing locally.
There are commits that are in this and also in #95
<#95> - I'd recommend merging
95 if you can first, then i'll rebase this branch. I think they're both
good to land though.
Let me know what you think from here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKHIENmIDNFyqk3le_eBSGwyMWHcx7cks5s4wztgaJpZM4P6kEC>
.
|
fdb6fe3
to
dc3f09a
Compare
@Ianfeather There are a couple conflicts, can you resolve? |
dc3f09a
to
027cab0
Compare
027cab0
to
3c4a8e8
Compare
Codecov Report
@@ Coverage Diff @@
## master #94 +/- ##
==========================================
+ Coverage 89.46% 89.63% +0.16%
==========================================
Files 27 27
Lines 427 434 +7
==========================================
+ Hits 382 389 +7
Misses 45 45
Continue to review full report at Codecov.
|
2235e83
to
df47615
Compare
I think this might finally be ready to go! Integration tests pass locally |
👍 |
@dgautsch Sorry to bug you. Are you happy to merge and publish this new version? |
Hey I'll publish, I think I still need npm rights. If I do, I'll do it
today!
On Jan 8, 2018 6:48 PM, "Ianfeather" <[email protected]> wrote:
@dgautsch <https://github.com/dgautsch> Sorry to bug you. Are you happy to
merge and publish this new version?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKHIOzucF3GinmJm5k8-BZkid4PcWuXks5tIqllgaJpZM4P6kEC>
.
|
you should have it @dgautsch! |
Fantastic, thanks both of you |
This adds functionality for #93
Making
config.uplink
an object and including auth as a property would be a little nicer imo, but it would be a breaking change and I'm not sure this warrants that change.Could you give me some pointers on how to run the tests? Do I need to run them within the container? Currently when I run them locally they're almost all returned as
pending
. Let me know and i'll add tests for this functionality.cc @dgautsch