chore: Improve access list and connect experienece [MCP-5] #1213
Annotations
7 errors and 5 warnings
Run tests
Process completed with exit code 1.
|
Run tests:
src/common/atlas/apiClientError.ts#L31
ApiClientError: [404 Not Found] error calling Atlas API: Not Found; No cluster named ClusterTest-68765008d21f2dc5bfd7589e exists in group 68765009115de670563f13ab.
❯ Function.fromError src/common/atlas/apiClientError.ts:31:16
❯ ApiClient.getCluster src/common/atlas/apiClient.ts:312:34
❯ waitCluster tests/integration/tools/atlas/clusters.test.ts:45:25
❯ tests/integration/tools/atlas/clusters.test.ts:161:17
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'https://cloud-dev.mongodb.com/api/atlas/v2/groups/68765009115de670563f13ab/clusters/ClusterTest-68765008d21f2dc5bfd7589e', redirected: false, status: 404, ok: false, statusText: 'Not Found', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' }, apiError: { detail: 'No cluster named ClusterTest-68765008d21f2dc5bfd7589e exists in group 68765009115de670563f13ab.', error: 404, errorCode: 'CLUSTER_NOT_FOUND', parameters: [ 'ClusterTest-68765008d21f2dc5bfd7589e', '68765009115de670563f13ab' ], reason: 'Not Found' } }
|
Run tests:
tests/integration/tools/atlas/clusters.test.ts#L154
AssertionError: expected 'Cluster Name | Cluster Type | Tier | …' to contain 'ClusterTest-68765008d21f2dc5bfd7589e …'
- Expected
+ Received
- ClusterTest-68765008d21f2dc5bfd7589e |
+ Cluster Name | Cluster Type | Tier | State | MongoDB Version | Connection String
+ ----------------|----------------|----------------|----------------|----------------|----------------
+ ClusterTest-68765008d21f2dc5bfd7589e-iptest | FREE | N/A | CREATING | 8.0.11 | N/A
❯ tests/integration/tools/atlas/clusters.test.ts:154:51
|
Run tests:
tests/integration/tools/atlas/clusters.test.ts#L132
AssertionError: expected 'Error running atlas-inspect-cluster: …' to contain 'ClusterTest-68765008d21f2dc5bfd7589e …'
Expected: "ClusterTest-68765008d21f2dc5bfd7589e | "
Received: "Error running atlas-inspect-cluster: [404 Not Found] error calling Atlas API: Not Found; No cluster named ClusterTest-68765008d21f2dc5bfd7589e exists in group 68765009115de670563f13ab."
❯ tests/integration/tools/atlas/clusters.test.ts:132:51
|
Run tests:
src/common/atlas/apiClientError.ts#L31
ApiClientError: [404 Not Found] error calling Atlas API: Not Found; No cluster named ClusterTest-68765008d21f2dc5bfd7589e exists in group 68765009115de670563f13ab.
❯ Function.fromError src/common/atlas/apiClientError.ts:31:16
❯ ApiClient.deleteCluster src/common/atlas/apiClient.ts:301:34
❯ deleteAndWaitCluster tests/integration/tools/atlas/clusters.test.ts:13:5
❯ tests/integration/tools/atlas/clusters.test.ts:69:13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'https://cloud-dev.mongodb.com/api/atlas/v2/groups/68765009115de670563f13ab/clusters/ClusterTest-68765008d21f2dc5bfd7589e', redirected: false, status: 404, ok: false, statusText: 'Not Found', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' }, apiError: { detail: 'No cluster named ClusterTest-68765008d21f2dc5bfd7589e exists in group 68765009115de670563f13ab.', error: 404, errorCode: 'CLUSTER_NOT_FOUND', parameters: [ 'ClusterTest-68765008d21f2dc5bfd7589e', '68765009115de670563f13ab' ], reason: 'Not Found' } }
|
Run tests:
src/common/atlas/apiClientError.ts#L31
ApiClientError: [409 Conflict] error calling Atlas API: Conflict; Cannot close group while it has active clusters; please terminate all clusters.
❯ Function.fromError src/common/atlas/apiClientError.ts:31:16
❯ ApiClient.deleteProject src/common/atlas/apiClient.ts:233:34
❯ tests/integration/tools/atlas/atlasHelpers.ts:50:13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'https://cloud-dev.mongodb.com/api/atlas/v2/groups/68765009115de670563f13ab', redirected: false, status: 409, ok: false, statusText: 'Conflict', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>' }, apiError: { detail: 'Cannot close group while it has active clusters; please terminate all clusters.', error: 409, errorCode: 'CANNOT_CLOSE_GROUP_ACTIVE_ATLAS_CLUSTERS', parameters: [], reason: 'Conflict' } }
|
Run tests:
tests/integration/tools/atlas/accessLists.test.ts#L105
ReferenceError: ensureCurrentIpInAccessList is not defined
❯ tests/integration/tools/atlas/accessLists.test.ts:105:23
|
Upload test results
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.
|
Run GitHubSecurityLab/actions-permissions/monitor@v1
1 added, 0 removed; done.
|
Run GitHubSecurityLab/actions-permissions/monitor@v1
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
|
Run GitHubSecurityLab/actions-permissions/monitor@v1
Updating certificates in /etc/ssl/certs...
|
Run GitHubSecurityLab/actions-permissions/monitor@v1
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
Loading