feat: Add Atlas Local Tools #255
code-health.yml
on: pull_request
Matrix: Run MongoDB tests
Report Coverage
54s
Annotations
14 errors and 11 warnings
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment when name is not provided:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment with the correct name:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should return an error when creating a deployment that already exists:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment when calling the tool:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should have correct metadata:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should have the atlas-local-create-deployment tool:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/connectDeployment.test.ts > atlas-local-connect-deployment with deployments > should connect to correct deployment when calling the tool:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/connectDeployment.test.ts > atlas-local-connect-deployment > should return 'no such container' error when connecting to non-existent deployment:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/connectDeployment.test.ts > atlas-local-connect-deployment > should have the atlas-local-connect-deployment tool:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
tests/integration/tools/atlas-local/connectDeployment.test.ts > atlas-local-connect-deployment > should have correct metadata:
tests/integration/helpers.ts#L424
Error: Aborted: TimeoutError: The operation was aborted due to timeout
❯ Timeout.<anonymous> tests/integration/helpers.ts:424:31
|
|
Run Atlas tests
Process completed with exit code 1.
|
|
tests/integration/tools/atlas/orgs.test.ts > orgs > with credentials > atlas-list-orgs > returns org names:
tests/integration/tools/atlas/orgs.test.ts#L17
AssertionError: expected 'Unable to authenticate with MongoDB A…' to contain 'Found 1 organizations'
- Expected
+ Received
- Found 1 organizations
+ Unable to authenticate with MongoDB Atlas, API error: [401 Unauthorized] error calling Atlas API: Unauthorized; You are not authorized for this resource.
+
+ Hint: Your API credentials may be invalid, expired or lack permissions.
+ Please check your Atlas API credentials and ensure they have the appropriate permissions.
+ For more information on setting up API keys, visit: https://www.mongodb.com/docs/atlas/configure-api-access/
❯ tests/integration/tools/atlas/orgs.test.ts:17:43
|
|
tests/integration/tools/atlas/clusters.test.ts > clusters > with project > atlas-connect-cluster > when not connected > prompts for atlas-connect-cluster when querying mongodb:
tests/integration/tools/atlas/clusters.test.ts#L206
AssertionError: expected 'Please use one of the following tools…' to contain 'Please use one of the following tools…'
Expected: "Please use one of the following tools: "atlas-connect-cluster", "atlas-local-connect-deployment", "connect" to connect to a MongoDB instance"
Received: "Please use one of the following tools: "atlas-connect-cluster", "connect" to connect to a MongoDB instance or update the MCP server configuration to include a connection string. Note to LLM: prefer using the "atlas-connect-cluster" tool to connect to an Atlas cluster over using a connection string. Make sure to ask the user to specify a cluster name they want to connect to or ask them if they want to use the "list-clusters" tool to list all their clusters. Do not invent cluster names or connection strings unless the user has explicitly specified them. If they've previously connected to MongoDB using MCP, you can ask them if they want to reconnect using the same cluster/connection."
❯ tests/integration/tools/atlas/clusters.test.ts:206:51
|
|
Report Coverage
Unable to download artifact(s): Artifact not found for name: atlas-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 Atlas Local tests
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
|
|
Run Atlas Local tests
1 added, 0 removed; done.
|
|
Run Atlas Local tests
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
|
|
Run Atlas Local tests
Updating certificates in /etc/ssl/certs...
|
|
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 Atlas tests
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
|
|
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...
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
run-atlas-local-tests-permissions-54c945befe3d4666bc79163ccbb3d9d6
|
140 Bytes |
sha256:826866a2ced0844e87de80b169a4e31ccb51c97cd53e856bc62d830fb2eeb56e
|
|
|
run-atlas-tests-permissions-070b4609254bcf57ca403b6b27825706
|
140 Bytes |
sha256:8ae13fdde06e99f22deade3fb68537b34e539a228c7049e913cb092e298761a9
|
|
|
run-tests-permissions-0c85da8f867a83063592786757a5b0d3
|
140 Bytes |
sha256:da9b9040493710fc241f3dd0617076b7f6f8796990a1c2c7134ccab22de95ed5
|
|
|
test-results
|
27 KB |
sha256:ee176072ded10e0441f9bd969b375638698e2dc9cb8829562a15d950daa06361
|
|