-
Notifications
You must be signed in to change notification settings - Fork 149
Updated examples #229
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
Updated examples #229
Conversation
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.
LG
test/v1/examples.test.js
Outdated
driver.close(); | ||
}); | ||
it('basic auth example', done => { | ||
const user = 'neo4j'; |
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.
Can we make user
, password
and uri
global variable instead? As we might change them when migrate from neokit to boltkit.
test/v1/examples.test.js
Outdated
// tag::custom-auth[] | ||
const driver = neo4j.driver( | ||
'bolt://localhost:7687', | ||
neo4j.auth.custom(principal, credentials, realm, scheme, parameters) |
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.
Do me missing a test here?
We could still use principle=neo4j
, credentials=neo4j
, real=local
, scheme=basic
to use custom auth to pass basic auth to the server.
This commit updates tests that are used in developer manual to highlights recommended API usage and available configuration options.
@zhenlineo rebased and addressed comments |
* use constants for user, password and uri * test custom auth with basic auth params
LG |
PR updates tests that are used in developer manual to highlights recommended API usage and available configuration options.
Depends on #228 to make
service unavailable example
test pass.