Skip to content

chore: adopt strict validation for all command line arguments MCP-298 #825

chore: adopt strict validation for all command line arguments MCP-298

chore: adopt strict validation for all command line arguments MCP-298 #825

Triggered via pull request December 4, 2025 11:39
Status Failure
Total duration 4m 32s
Artifacts 6

code-health.yml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 38s
Run Atlas tests
Run Atlas Local tests
3m 57s
Run Atlas Local tests
Run git secrets
48s
Run git secrets
Report Coverage
29s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 1 warning
tests/integration/tools/mongodb/delete/dropIndex.test.ts > drop-index tool > when vector search feature flag is disabled > dropping classic indexes through an elicitation enabled client > should ask for confirmation before proceeding with tool call: tests/integration/tools/mongodb/delete/dropIndex.test.ts#L289
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,13 @@ [ { - "message": StringContaining "You are about to drop the index named `year_1` from the `mflix.movies` namespace", + "message": "You are about to drop the index named `year_1` from the `mflix.movies` namespace: + + This operation will permanently remove the index and might affect the performance of queries relying on this index. + + **Do you confirm the execution of the action?**", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/integration/tools/mongodb/delete/dropIndex.test.ts:289:54
tests/unit/elicitation.test.ts > Elicitation > requestConfirmation > should return true when user confirms with 'Yes' and action is 'accept': tests/unit/elicitation.test.ts#L82
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,9 @@ [ { "message": "Are you sure you want to proceed?", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/unit/elicitation.test.ts:82:42
tests/integration/elicitation.test.ts > Elicitation Integration Tests > confirmation message content validation > should include filter details in delete-many confirmation: tests/integration/elicitation.test.ts#L283
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,18 @@ [ { - "message": StringMatching /mydb.*database/, - "requestedSchema": ObjectContaining { + "message": "You are about to delete documents from the `users` collection in the `mydb` database: + + ```json + { \"filter\": {\"status\":\"inactive\",\"lastLogin\":{\"$lt\":\"2023-01-01\"}} } + ``` + + This operation will permanently remove all documents matching the filter. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:283:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > confirmation message content validation > should include specific details in create-db-user confirmation: tests/integration/elicitation.test.ts#L265
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,20 @@ [ { - "message": StringMatching /project.*507f1f77bcf86cd799439011/, - "requestedSchema": ObjectContaining { + "message": "You are about to create a database user in Atlas project `507f1f77bcf86cd799439011`: + + **Username**: `myuser` + + **Password**: (User-provided password) + + **Roles**: readWrite on mydb, read on logs.events + + **Cluster Access**: cluster1, cluster2 + + This will create a new database user with the specified permissions. **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:265:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > custom confirmation configuration > should confirm with a generic message with custom configurations for other tools: tests/integration/elicitation.test.ts#L220
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,10 @@ [ { - "message": StringMatching /You are about to execute the `list-databases` tool which requires additional confirmation. Would you like to proceed\?/, - "requestedSchema": ObjectContaining { + "message": "You are about to execute the `list-databases` tool which requires additional confirmation. Would you like to proceed?", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:220:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for create-access-list tool: tests/integration/elicitation.test.ts#L138
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,16 @@ [ { - "message": StringContaining "You are about to add the following entries to the access list", - "requestedSchema": ObjectContaining { + "message": "You are about to add the following entries to the access list for Atlas project \"507f1f77bcf86cd799439011\": + + - **IP addresses**: 192.168.1.1 + + **Comment**: Added by MongoDB MCP Server to enable tool access + + This will allow network access to your MongoDB Atlas clusters from these IP addresses/ranges. Do you want to proceed?", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:138:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for create-db-user tool: tests/integration/elicitation.test.ts#L120
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,20 @@ [ { - "message": StringContaining "You are about to create a database user", - "requestedSchema": ObjectContaining { + "message": "You are about to create a database user in Atlas project `507f1f77bcf86cd799439011`: + + **Username**: `test-user` + + **Password**: (Auto-generated secure password) + + **Roles**: read on test-db + + **Cluster Access**: All clusters in the project + + This will create a new database user with the specified permissions. **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:120:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for delete-many tool: tests/integration/elicitation.test.ts#L101
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,18 @@ [ { - "message": StringContaining "You are about to delete documents", - "requestedSchema": ObjectContaining { + "message": "You are about to delete documents from the `test-collection` collection in the `test-db` database: + + ```json + { \"filter\": {\"status\":\"inactive\"} } + ``` + + This operation will permanently remove all documents matching the filter. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:101:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for drop-collection tool: tests/integration/elicitation.test.ts#L82
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,14 @@ [ { - "message": StringContaining "You are about to drop the `test-collection` collection", - "requestedSchema": ObjectContaining { + "message": "You are about to drop the `test-collection` collection from the `test-db` database: + + This operation will permanently remove the collection and all its data, including indexes. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:82:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for drop-database tool and proceed when confirmed: tests/integration/elicitation.test.ts#L38
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,13 @@ [ { - "message": StringContaining "You are about to drop the `test-db` database", + "message": "You are about to drop the `test-db` database: + + This operation will permanently remove the database and ALL its collections, documents, and indexes. + + **Do you confirm the execution of the action?**", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/integration/elicitation.test.ts:38:50
tests/integration/tools/mongodb/delete/dropIndex.test.ts > drop-index tool > when vector search feature flag is disabled > dropping classic indexes through an elicitation enabled client > should ask for confirmation before proceeding with tool call: tests/integration/tools/mongodb/delete/dropIndex.test.ts#L289
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,13 @@ [ { - "message": StringContaining "You are about to drop the index named `year_1` from the `mflix.movies` namespace", + "message": "You are about to drop the index named `year_1` from the `mflix.movies` namespace: + + This operation will permanently remove the index and might affect the performance of queries relying on this index. + + **Do you confirm the execution of the action?**", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/integration/tools/mongodb/delete/dropIndex.test.ts:289:54
tests/unit/elicitation.test.ts > Elicitation > requestConfirmation > should return true when user confirms with 'Yes' and action is 'accept': tests/unit/elicitation.test.ts#L82
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,9 @@ [ { "message": "Are you sure you want to proceed?", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/unit/elicitation.test.ts:82:42
tests/integration/elicitation.test.ts > Elicitation Integration Tests > confirmation message content validation > should include filter details in delete-many confirmation: tests/integration/elicitation.test.ts#L283
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,18 @@ [ { - "message": StringMatching /mydb.*database/, - "requestedSchema": ObjectContaining { + "message": "You are about to delete documents from the `users` collection in the `mydb` database: + + ```json + { \"filter\": {\"status\":\"inactive\",\"lastLogin\":{\"$lt\":\"2023-01-01\"}} } + ``` + + This operation will permanently remove all documents matching the filter. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:283:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > confirmation message content validation > should include specific details in create-db-user confirmation: tests/integration/elicitation.test.ts#L265
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,20 @@ [ { - "message": StringMatching /project.*507f1f77bcf86cd799439011/, - "requestedSchema": ObjectContaining { + "message": "You are about to create a database user in Atlas project `507f1f77bcf86cd799439011`: + + **Username**: `myuser` + + **Password**: (User-provided password) + + **Roles**: readWrite on mydb, read on logs.events + + **Cluster Access**: cluster1, cluster2 + + This will create a new database user with the specified permissions. **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:265:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > custom confirmation configuration > should confirm with a generic message with custom configurations for other tools: tests/integration/elicitation.test.ts#L220
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,10 @@ [ { - "message": StringMatching /You are about to execute the `list-databases` tool which requires additional confirmation. Would you like to proceed\?/, - "requestedSchema": ObjectContaining { + "message": "You are about to execute the `list-databases` tool which requires additional confirmation. Would you like to proceed?", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:220:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for create-access-list tool: tests/integration/elicitation.test.ts#L138
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,16 @@ [ { - "message": StringContaining "You are about to add the following entries to the access list", - "requestedSchema": ObjectContaining { + "message": "You are about to add the following entries to the access list for Atlas project \"507f1f77bcf86cd799439011\": + + - **IP addresses**: 192.168.1.1 + + **Comment**: Added by MongoDB MCP Server to enable tool access + + This will allow network access to your MongoDB Atlas clusters from these IP addresses/ranges. Do you want to proceed?", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:138:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for create-db-user tool: tests/integration/elicitation.test.ts#L120
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,20 @@ [ { - "message": StringContaining "You are about to create a database user", - "requestedSchema": ObjectContaining { + "message": "You are about to create a database user in Atlas project `507f1f77bcf86cd799439011`: + + **Username**: `test-user` + + **Password**: (Auto-generated secure password) + + **Roles**: read on test-db + + **Cluster Access**: All clusters in the project + + This will create a new database user with the specified permissions. **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:120:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for delete-many tool: tests/integration/elicitation.test.ts#L101
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,18 @@ [ { - "message": StringContaining "You are about to delete documents", - "requestedSchema": ObjectContaining { + "message": "You are about to delete documents from the `test-collection` collection in the `test-db` database: + + ```json + { \"filter\": {\"status\":\"inactive\"} } + ``` + + This operation will permanently remove all documents matching the filter. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:101:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for drop-collection tool: tests/integration/elicitation.test.ts#L82
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,14 @@ [ { - "message": StringContaining "You are about to drop the `test-collection` collection", - "requestedSchema": ObjectContaining { + "message": "You are about to drop the `test-collection` collection from the `test-db` database: + + This operation will permanently remove the collection and all its data, including indexes. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:82:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for drop-database tool and proceed when confirmed: tests/integration/elicitation.test.ts#L38
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,13 @@ [ { - "message": StringContaining "You are about to drop the `test-db` database", + "message": "You are about to drop the `test-db` database: + + This operation will permanently remove the database and ALL its collections, documents, and indexes. + + **Do you confirm the execution of the action?**", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/integration/elicitation.test.ts:38:50
tests/integration/tools/mongodb/delete/dropIndex.test.ts > drop-index tool > when vector search feature flag is disabled > dropping classic indexes through an elicitation enabled client > should ask for confirmation before proceeding with tool call: tests/integration/tools/mongodb/delete/dropIndex.test.ts#L289
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,13 @@ [ { - "message": StringContaining "You are about to drop the index named `year_1` from the `mflix.movies` namespace", + "message": "You are about to drop the index named `year_1` from the `mflix.movies` namespace: + + This operation will permanently remove the index and might affect the performance of queries relying on this index. + + **Do you confirm the execution of the action?**", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/integration/tools/mongodb/delete/dropIndex.test.ts:289:54
tests/unit/elicitation.test.ts > Elicitation > requestConfirmation > should return true when user confirms with 'Yes' and action is 'accept': tests/unit/elicitation.test.ts#L82
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,9 @@ [ { "message": "Are you sure you want to proceed?", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/unit/elicitation.test.ts:82:42
tests/integration/elicitation.test.ts > Elicitation Integration Tests > confirmation message content validation > should include filter details in delete-many confirmation: tests/integration/elicitation.test.ts#L283
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,18 @@ [ { - "message": StringMatching /mydb.*database/, - "requestedSchema": ObjectContaining { + "message": "You are about to delete documents from the `users` collection in the `mydb` database: + + ```json + { \"filter\": {\"status\":\"inactive\",\"lastLogin\":{\"$lt\":\"2023-01-01\"}} } + ``` + + This operation will permanently remove all documents matching the filter. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:283:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > confirmation message content validation > should include specific details in create-db-user confirmation: tests/integration/elicitation.test.ts#L265
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,20 @@ [ { - "message": StringMatching /project.*507f1f77bcf86cd799439011/, - "requestedSchema": ObjectContaining { + "message": "You are about to create a database user in Atlas project `507f1f77bcf86cd799439011`: + + **Username**: `myuser` + + **Password**: (User-provided password) + + **Roles**: readWrite on mydb, read on logs.events + + **Cluster Access**: cluster1, cluster2 + + This will create a new database user with the specified permissions. **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:265:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > custom confirmation configuration > should confirm with a generic message with custom configurations for other tools: tests/integration/elicitation.test.ts#L220
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: @@ -1,9 +1,10 @@ [ { - "message": StringMatching /You are about to execute the `list-databases` tool which requires additional confirmation. Would you like to proceed\?/, - "requestedSchema": ObjectContaining { + "message": "You are about to execute the `list-databases` tool which requires additional confirmation. Would you like to proceed?", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:220:46
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for create-access-list tool: tests/integration/elicitation.test.ts#L138
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,16 @@ [ { - "message": StringContaining "You are about to add the following entries to the access list", - "requestedSchema": ObjectContaining { + "message": "You are about to add the following entries to the access list for Atlas project \"507f1f77bcf86cd799439011\": + + - **IP addresses**: 192.168.1.1 + + **Comment**: Added by MongoDB MCP Server to enable tool access + + This will allow network access to your MongoDB Atlas clusters from these IP addresses/ranges. Do you want to proceed?", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:138:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for create-db-user tool: tests/integration/elicitation.test.ts#L120
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,20 @@ [ { - "message": StringContaining "You are about to create a database user", - "requestedSchema": ObjectContaining { + "message": "You are about to create a database user in Atlas project `507f1f77bcf86cd799439011`: + + **Username**: `test-user` + + **Password**: (Auto-generated secure password) + + **Roles**: read on test-db + + **Cluster Access**: All clusters in the project + + This will create a new database user with the specified permissions. **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:120:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for delete-many tool: tests/integration/elicitation.test.ts#L101
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,18 @@ [ { - "message": StringContaining "You are about to delete documents", - "requestedSchema": ObjectContaining { + "message": "You are about to delete documents from the `test-collection` collection in the `test-db` database: + + ```json + { \"filter\": {\"status\":\"inactive\"} } + ``` + + This operation will permanently remove all documents matching the filter. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:101:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for drop-collection tool: tests/integration/elicitation.test.ts#L82
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,9 +1,14 @@ [ { - "message": StringContaining "You are about to drop the `test-collection` collection", - "requestedSchema": ObjectContaining { + "message": "You are about to drop the `test-collection` collection from the `test-db` database: + + This operation will permanently remove the collection and all its data, including indexes. + + **Do you confirm the execution of the action?**", + "mode": "form", + "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ "Yes", Number of calls: 1 ❯ tests/integration/elicitation.test.ts:82:50
tests/integration/elicitation.test.ts > Elicitation Integration Tests > with elicitation support > tools requiring confirmation by default > should request confirmation for drop-database tool and proceed when confirmed: tests/integration/elicitation.test.ts#L38
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -1,8 +1,13 @@ [ { - "message": StringContaining "You are about to drop the `test-db` database", + "message": "You are about to drop the `test-db` database: + + This operation will permanently remove the database and ALL its collections, documents, and indexes. + + **Do you confirm the execution of the action?**", + "mode": "form", "requestedSchema": { "properties": { "confirmation": { "description": "Would you like to confirm?", "enum": [ Number of calls: 1 ❯ tests/integration/elicitation.test.ts:38:50
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.

Artifacts

Produced during runtime
Name Size Digest
atlas-local-test-results
18.9 KB
sha256:4f8563327a85f0bc026ea653645571e05fb4a5b1c46b5aef4c5ab16defa4de90
atlas-test-results
20.5 KB
sha256:271fa3823950c37ade780c692759c07336799f1eafeb32150efc520f0721cac0
run-atlas-local-tests-permissions-89366579ed5e911090852eb66edfd31b
140 Bytes
sha256:21a00de4483c79743f35e94ecdc5a38b3efae7fc7de280f37f1d37f6b32c01b8
run-atlas-tests-permissions-cc795ee1890d35228f0fafae02566faa
140 Bytes
sha256:9b94eec7680c679f1880b38a754793cac427dd21907cc160487385f172b617b8
run-git-secrets-permissions-8b813a6fd949e464e2a6b1b9716773aa
140 Bytes
sha256:655d9816555e527cf1ec6f8b6bcc6db3458ebc4924e722b1aec49c5ef3e6aa70
run-tests-permissions-23624419d640a888e3710d5632aec5b0
140 Bytes
sha256:b9140741f7934d7934367691b91a0e72aa341915f4a856d0c9e9fb8ef586eb73