chore: adopt strict validation for all command line arguments MCP-298 #826
code-health.yml
on: pull_request
Matrix: Run MongoDB tests
Run git secrets
1m 13s
Report Coverage
24s
Annotations
31 errors and 1 warning
|
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
|
|
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
|
|
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
|
|
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 enabled > dropping vector search indexes > when invoked via an elicitation enabled client > should ask for confirmation before proceeding with tool call:
tests/integration/tools/mongodb/delete/dropIndex.test.ts#L474
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 search index named `searchIdx` from the `mflix.movies` namespace",
+ "message": "You are about to drop the search index named `searchIdx` 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:474:58
|
|
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.8 KB |
sha256:2beae9dd3b45c08e4851bfa90dbf90b4a59b3f13e59415bbf34e7104f864f605
|
|
|
atlas-test-results
|
20.5 KB |
sha256:e818f1dafa837d30b937a600d28d37ffb49434aa2410557917735743d5ccea8d
|
|
|
run-atlas-local-tests-permissions-9b160f31f4c6bf99521b2c44921d4576
|
140 Bytes |
sha256:43516bc5c1e041a60f56301a01c20b08a8874617a42d469dd702ccdf86631da6
|
|
|
run-atlas-tests-permissions-1930992658230f1ad0026f8706f30f23
|
140 Bytes |
sha256:e81ef6bfcc45707700a9e396681923a1b40122a035a72a8ff3b2c3905855139e
|
|
|
run-git-secrets-permissions-acb467ccfbf3525fea11e74e43f60678
|
140 Bytes |
sha256:a0a61787ce34ce19319076c7f92ca131dc1fed7f3c3f3dcfa0d7575705557c90
|
|
|
run-tests-permissions-8362c18ef6cf97e7a46690bf1749d0b6
|
140 Bytes |
sha256:ae0608b2a6eb196297607b673d4e394d9db5c59cb1e890b2546613f3cdf0fac3
|
|