Closed AV25242 closed 1 year ago
Tested it out with 4.0; everything worked well with a few minor changes:
/src/ottoman/ottoman.ts
:
NoopTracer
and NoopMeter
from the import statement (from Couchbase)/src/couchbase.ts
:
RequestSpan
from the exportsAdditionally, the connection string parameter to ignore TLS verification was renamed from ssl=no_verify
to tls_verify=none
in v4.0 (I believe this is due to the change to couchbase++). Connections to TLS-enabled clusters (like Capella) will either need the root certificate passed in with the connection or ?tls_verify=none
at the end of the connection string.
I wrote a quick tutorial with a bit more info if needed: https://developer.couchbase.com/tutorial-nodejs-tls-connection
Local/On Prem cluster (Docker)
Capella
testData.js
and jest.setup.ts
to accommodate a Capella connection, most tests passed with several exceptions:
model-crud.spec.ts
UnambiguousTimeout
, See last bullet for more detail.ensure_collections_and_indexes.spec.ts
UnambiguousTimeout
, then fails to drop bucketindexes.spec.ts
Testing indexes
errors-name.spec.ts
Indexes -> BuildIndexQueryError
nested-model-key.spec.ts
UnambiguousTimeout
and failure to read collectionsottoman-instances.spec.ts
UnambiguousTimeout
) because it attempts to spawn multiple instances of Ottoman in various ways. instance3.connect()
call to match the Capella details fixes the issue.
The plan is to get Ottoman over Node.js SDK 4.1 which will release this month, as a step towards getting Ottoman updated it will be good to start testing Ottoman with SDK 4.0, a release with SDK 4.0 is not recommended at this time, this is just a proactive measure to get us to SDK 4.1 in May.