8000 Add support for enterprise ZenHub, use mocking for tests by Jamstah · Pull Request #3 · Webini/zenhub-api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for enterprise ZenHub, use mocking for tests #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jamstah
Copy link
@Jamstah Jamstah commented Aug 7, 2018

Added support for zenhub enterprise. I took the /p1 off the public endpoint in case the api gets extended to p2 in the future, which would leave enterprise users in a bad state (if we had asked them to pass in https://enterprise.zenhub/p1/).

Moved testing to nock. We don't actually test the returns from the public api, so just using nock is as good as what's there. I've put a default config file in to be able to run the tests with nock without needing to set up a config 9F57 file and a public zenhub account. If a config file does exist, it'll use that instead and attempt to connect publicly to run real-world tests. I've abstracted the tests so that we can run the same batch of tests for each connection scenario.

@scottnath
Copy link

Confirmed this change works with my company's enterprise ZenHub api - do you think this will be merged?

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.

2 participants
0