Skip to content

Conversation

lutovich
Copy link
Contributor

@lutovich lutovich commented Apr 6, 2017

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.

Copy link
Contributor

@zhenlineo zhenlineo left a comment

Choose a reason for hiding this comment

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

LG

driver.close();
});
it('basic auth example', done => {
const user = 'neo4j';
Copy link
Contributor

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.

// tag::custom-auth[]
const driver = neo4j.driver(
'bolt://localhost:7687',
neo4j.auth.custom(principal, credentials, realm, scheme, parameters)
Copy link
Contributor

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.
@lutovich
Copy link
Contributor Author

lutovich commented Apr 7, 2017

@zhenlineo rebased and addressed comments

 * use constants for user, password and uri
 * test custom auth with basic auth params
@zhenlineo
Copy link
Contributor

LG

@zhenlineo zhenlineo merged commit 1269f47 into neo4j:1.2 Apr 7, 2017
@lutovich lutovich deleted the 1.2-examples branch April 7, 2017 14:21
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