[Backport 8.x] Upgrade tap to latest (#2402)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
github-actions[bot]
2024-10-24 11:38:47 -05:00
committed by GitHub
parent 432cd36879
commit 61c18a6ba5
3 changed files with 12 additions and 15 deletions

View File

@ -293,14 +293,12 @@ test('Elastic Cloud config', t => {
})
t.ok(client.connectionPool instanceof CloudConnectionPool)
t.match(client.connectionPool.connections.find(c => c.id === 'https://abcd.localhost/'), {
url: new URL('https://elastic:changeme@abcd.localhost'),
id: 'https://abcd.localhost/',
headers: {
authorization: 'Basic ' + Buffer.from('elastic:changeme').toString('base64')
},
tls: { secureProtocol: 'TLSv1_2_method' }
})
const connection = client.connectionPool.connections.find(c => c.id === 'https://abcd.localhost/')
t.equal(connection?.headers?.authorization, `Basic ${Buffer.from('elastic:changeme').toString('base64')}`)
t.same(connection?.tls, { secureProtocol: 'TLSv1_2_method' })
t.equal(connection?.url.hostname, 'abcd.localhost')
t.equal(connection?.url.protocol, 'https:')
t.end()
})