Skip to content

fix: add untrusted data wrapper to the export resource MCP-197 #1971

fix: add untrusted data wrapper to the export resource MCP-197

fix: add untrusted data wrapper to the export resource MCP-197 #1971

Triggered via pull request September 12, 2025 09:50
Status Failure
Total duration 6m 40s
Artifacts 3

code_health.yaml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
3m 30s
Run Atlas tests
Report Coverage
42s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

31 errors, 9 warnings, and 1 notice
tests/unit/common/exportsManager.test.ts > ExportsManager unit test > #readExport > should handle encoded name: tests/unit/common/exportsManager.test.ts#L252
AssertionError: expected { content: '[]', docsTransformed: +0 } to deeply equal '[]' - Expected: "[]" + Received: { "content": "[]", "docsTransformed": 0, } ❯ tests/unit/common/exportsManager.test.ts:252:78
tests/unit/common/exportsManager.test.ts > ExportsManager unit test > #readExport > should return the resource content if the resource is ready to be consumed: tests/unit/common/exportsManager.test.ts#L238
AssertionError: expected { content: '[]', docsTransformed: +0 } to deeply equal '[]' - Expected: "[]" + Received: { "content": "[]", "docsTransformed": 0, } ❯ tests/unit/common/exportsManager.test.ts:238:58
tests/integration/resources/exportedData.test.ts > exported-data resource > after requesting a fresh export > should be able to autocomplete the resource: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed0d452923b65b090d32') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed0d452923b65b090d32' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > after requesting a fresh export > should be able to read the resource: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed0d452923b65b090d32') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed0d452923b65b090d32' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > when requesting an expired resource > should return an error: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed0d452923b65b090d32') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed0d452923b65b090d32' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > when requesting non-existent resource > should return an error: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed0d452923b65b090d32') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed0d452923b65b090d32' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed0d452923b65b090d32\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/unit/common/exportsManager.test.ts > ExportsManager unit test > #readExport > should handle encoded name: tests/unit/common/exportsManager.test.ts#L252
AssertionError: expected { content: '[]', docsTransformed: +0 } to deeply equal '[]' - Expected: "[]" + Received: { "content": "[]", "docsTransformed": 0, } ❯ tests/unit/common/exportsManager.test.ts:252:78
tests/unit/common/exportsManager.test.ts > ExportsManager unit test > #readExport > should return the resource content if the resource is ready to be consumed: tests/unit/common/exportsManager.test.ts#L238
AssertionError: expected { content: '[]', docsTransformed: +0 } to deeply equal '[]' - Expected: "[]" + Received: { "content": "[]", "docsTransformed": 0, } ❯ tests/unit/common/exportsManager.test.ts:238:58
tests/integration/resources/exportedData.test.ts > exported-data resource > after requesting a fresh export > should be able to autocomplete the resource: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed536250bbda512249ec') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed536250bbda512249ec' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > after requesting a fresh export > should be able to read the resource: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed536250bbda512249ec') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed536250bbda512249ec' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > when requesting an expired resource > should return an error: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed536250bbda512249ec') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed536250bbda512249ec' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > when requesting non-existent resource > should return an error: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ed536250bbda512249ec') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ed536250bbda512249ec' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ed536250bbda512249ec\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/unit/common/exportsManager.test.ts > ExportsManager unit test > #readExport > should handle encoded name: tests/unit/common/exportsManager.test.ts#L252
AssertionError: expected { content: '[]', docsTransformed: +0 } to deeply equal '[]' - Expected: "[]" + Received: { "content": "[]", "docsTransformed": 0, } ❯ tests/unit/common/exportsManager.test.ts:252:78
tests/unit/common/exportsManager.test.ts > ExportsManager unit test > #readExport > should return the resource content if the resource is ready to be consumed: tests/unit/common/exportsManager.test.ts#L238
AssertionError: expected { content: '[]', docsTransformed: +0 } to deeply equal '[]' - Expected: "[]" + Received: { "content": "[]", "docsTransformed": 0, } ❯ tests/unit/common/exportsManager.test.ts:238:58
tests/integration/resources/exportedData.test.ts > exported-data resource > after requesting a fresh export > should be able to autocomplete the resource: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ee0eea5cbd21b38a899c') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ee0eea5cbd21b38a899c' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > after requesting a fresh export > should be able to read the resource: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ee0eea5cbd21b38a899c') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ee0eea5cbd21b38a899c' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > when requesting an expired resource > should return an error: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ee0eea5cbd21b38a899c') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ee0eea5cbd21b38a899c' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
tests/integration/resources/exportedData.test.ts > exported-data resource > when requesting non-existent resource > should return an error: tests/integration/resources/exportedData.test.ts#L29
MongoBulkWriteError: E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId('68c3ee0eea5cbd21b38a899c') } ❯ OrderedBulkOperation.handleWriteError node_modules/mongodb/src/bulk/common.ts:1207:13 ❯ executeCommands node_modules/mongodb/src/bulk/common.ts:590:19 ❯ node_modules/mongodb/src/bulk/common.ts:1190:16 ❯ MongoClient.withSession node_modules/mongodb/src/mongo_client.ts:936:14 ❯ OrderedBulkOperation.execute node_modules/mongodb/src/bulk/common.ts:1189:14 ❯ Collection.bulkWrite node_modules/mongodb/src/collection.ts:385:12 ❯ Collection.insertMany node_modules/mongodb/src/collection.ts:318:19 ❯ tests/integration/resources/exportedData.test.ts:29:13 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errorLabelSet: { constructor: 'Function<Set>', has: 'Function<has>', add: 'Function<add>', delete: 'Function<delete>', clear: 'Function<clear>', entries: 'Function<entries>', forEach: 'Function<forEach>', size: +0, values: 'Function<values>', keys: 'Function<values>', union: 'Function<union>', intersection: 'Function<intersection>', difference: 'Function<difference>', symmetricDifference: 'Function<symmetricDifference>', isSubsetOf: 'Function<isSubsetOf>', isSupersetOf: 'Function<isSupersetOf>', isDisjointFrom: 'Function<isDisjointFrom>' }, errorResponse: { message: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function<div>', equals: 'Function<equals>', eq: 'Function<eq>', getHighBits: 'Function<getHighBits>', getHighBitsUnsigned: 'Function<getHighBitsUnsigned>', getLowBits: 'Function<getLowBits>', getLowBitsUnsigned: 'Function<getLowBitsUnsigned>', getNumBitsAbs: 'Function<getNumBitsAbs>', greaterThan: 'Function<greaterThan>', gt: 'Function<gt>', greaterThanOrEqual: 'Function<greaterThanOrEqual>', gte: 'Function<gte>', ge: 'Function<ge>', isEven: 'Function<isEven>', isNegative: 'Function<isNegative>', isOdd: 'Function<isOdd>', isPositive: 'Function<isPositive>', isZero: 'Function<isZero>', lessThan: 'Function<lessThan>', lt: 'Function<lt>', lessThanOrEqual: 'Function<lessThanOrEqual>', lte: 'Function<lte>', modulo: 'Function<modulo>', mod: 'Function<mod>', rem: 'Function<rem>', multiply: 'Function<multiply>', mul: 'Function<mul>', negate: 'Function<negate>', neg: 'Function<neg>', not: 'Function<not>', notEquals: 'Function<notEquals>', neq: 'Function<neq>', ne: 'Function<ne>', or: 'Function<or>', shiftLeft: 'Function<shiftLeft>', shl: 'Function<shl>', shiftRight: 'Function<shiftRight>', shr: 'Function<shr>', shiftRightUnsigned: 'Function<shiftRightUnsigned>', shr_u: 'Function<shr_u>', shru: 'Function<shru>', subtract: 'Function<subtract>', sub: 'Function<sub>', toInt: 'Function<toInt>', toNumber: 'Function<toNumber>', toBigInt: 'Function<toBigInt>', toBytes: 'Function<toBytes>', toBytesLE: 'Function<toBytesLE>', toBytesBE: 'Function<toBytesBE>', toSigned: 'Function<toSigned>', toString: 'Function<toString>', toUnsigned: 'Function<toUnsigned>', xor: 'Function<xor>', eqz: 'Function<eqz>', le: 'Function<le>', toExtendedJSON: 'Function<toExtendedJSON>', inspect: 'Function<inspect>' }, _id: '68c3ee0eea5cbd21b38a899c' } } ] }, code: 11000, writeErrors: [ { code: 11000, index: +0, errmsg: 'E11000 duplicate key error collection: db.coll index: _id_ dup key: { _id: ObjectId(\'68c3ee0eea5cbd21b38a899c\') }', op: { name: 'foo', longNumber: { low: 1234, high: +0, unsigned: false, constructor: 'Function<Long>', _bsontype: 'Long', __isLong__: true, add: 'Function<add>', and: 'Function<and>', compare: 'Function<compare>', comp: 'Function<comp>', divide: 'Function<divide>', div: 'Function
Report Coverage
Unable to download artifact(s): Artifact not found for name: test-results Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
Run MongoDB tests (ubuntu-latest)
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
Run MongoDB tests (ubuntu-latest)
1 added, 0 removed; done.
Run MongoDB tests (ubuntu-latest)
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run MongoDB tests (ubuntu-latest)
Updating certificates in /etc/ssl/certs...
Run MongoDB tests (ubuntu-latest)
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Run Atlas tests
1 added, 0 removed; done.
Run Atlas tests
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
Run Atlas tests
Updating certificates in /etc/ssl/certs...
Run Atlas tests
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Run MongoDB tests (windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677

Artifacts

Produced during runtime
Name Size Digest
atlas-test-results
15.7 KB
sha256:418161fc0152447eef1b4570efc12ccebb8fbb0ff48e452c62bc79c702bc3591
run-atlas-tests-permissions-9e056bcb637808c8f930d2c66f33cbca
140 Bytes
sha256:d12912c943808ef404c8ad1259825f0c93af434253ad6f4b5251892606b8e86e
run-tests-permissions-20de3dd7ffcbb32fe412ac300bf5d163
140 Bytes
sha256:07bc7ed6821d0305d00c6287f1d424b944d72b548c7a27e51acc80c5a2b0d8b2