Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions packages/bolt-connection/src/channel/channel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export default class ChannelConfig {
this.encrypted = extractEncrypted(driverConfig)
this.trust = extractTrust(driverConfig)
this.trustedCertificates = extractTrustedCertificates(driverConfig)
this.knownHostsPath = extractKnownHostsPath(driverConfig)
this.connectionErrorCode = connectionErrorCode || SERVICE_UNAVAILABLE
this.connectionTimeout = driverConfig.connectionTimeout
this.clientCertificate = clientCertificate
Expand Down Expand Up @@ -83,7 +82,3 @@ function extractTrust (driverConfig) {
function extractTrustedCertificates (driverConfig) {
return driverConfig.trustedCertificates || []
}

function extractKnownHostsPath (driverConfig) {
return driverConfig.knownHosts || null
}
1 change: 0 additions & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class Config {
encrypted?: boolean | EncryptionLevel
trust?: TrustStrategy
trustedCertificates?: string[]
knownHosts?: string
fetchSize?: number
maxConnectionPoolSize?: number
maxTransactionRetryTime?: number
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/neo4j-driver-deno/lib/core/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions packages/neo4j-driver/test/internal/channel-config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ describe('#unit ChannelConfig', () => {
expect(config.trustedCertificates).toEqual(trustedCertificates)
})

it('should respect given known hosts', () => {
const knownHostsPath = '~/.neo4j/known_hosts'

const config = new ChannelConfig(null, { knownHosts: knownHostsPath }, '')

expect(config.knownHostsPath).toEqual(knownHostsPath)
})

it('should respect given connection error code', () => {
const connectionErrorCode = 'ConnectionFailed'

Expand All @@ -97,12 +89,6 @@ describe('#unit ChannelConfig', () => {
expect(config.trustedCertificates).toEqual([])
})

it('should have null known hosts path when not configured', () => {
const config = new ChannelConfig(null, {}, '')

expect(config.knownHostsPath).toBeNull()
})

it('should have service unavailable as default error code', () => {
const config = new ChannelConfig(null, {}, '')

Expand Down
1 change: 0 additions & 1 deletion packages/neo4j-driver/test/types/driver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const config: Config = dummy
const encrypted: undefined | boolean | EncryptionLevel = config.encrypted
const trust: undefined | TrustStrategy = config.trust
const trustedCertificates: undefined | string[] = config.trustedCertificates
const knownHosts: undefined | string = config.knownHosts
const maxTransactionRetryTime: undefined | number =
config.maxTransactionRetryTime
const maxConnectionLifetime: undefined | number = config.maxConnectionLifetime
Expand Down