feat(atlas-local): Accuracy tests for Atlas Local #1998
code_health.yaml
on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 40s
Report Coverage
45s
Annotations
10 errors, 9 warnings, and 1 notice
|
Run Atlas tests
Process completed with exit code 1.
|
|
tests/integration/tools/atlas/orgs.test.ts > orgs > atlas-list-orgs > returns org names:
tests/integration/tools/atlas/orgs.test.ts#L16
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:16:39
|
|
tests/integration/tools/atlas/alerts.test.ts > atlas-list-alerts > with project:
src/common/atlas/apiClientError.ts#L31
ApiClientError: [401 Unauthorized] error calling Atlas API: Unauthorized; You are not authorized for this resource.
❯ Function.fromError src/common/atlas/apiClientError.ts:31:16
❯ ApiClient.listOrganizations src/common/atlas/apiClient.ts:515:34
❯ createProject tests/integration/tools/atlas/atlasHelpers.ts:111:18
❯ tests/integration/tools/atlas/atlasHelpers.ts:53:31
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { size: +0, constructor: 'Function<Response>', type: 'default', url: 'https://cloud-dev.mongodb.com/api/atlas/v2/orgs', status: 401, ok: false, redirected: false, statusText: 'Unauthorized', headers: { constructor: 'Function<Headers>', toString: 'Function<toString>', get: 'Function<get>', forEach: 'Function<forEach>', values: 'Function<values>', entries: 'Function<entries>', raw: 'Function<raw>', size: '<unserializable>: Value of "this" must be of type URLSearchParams', append: 'Function<anonymous>', delete: 'Function<anonymous>', getAll: 'Function<anonymous>', has: 'Function<anonymous>', set: 'Function<anonymous>', sort: 'Function<sort>', keys: 'Function<anonymous>' }, highWaterMark: 16384, clone: 'Function<clone>', body: { _events: { close: [ 'Function<anonymous>', 'Function<anonymous>', 'Function<onclose>' ], error: [ 'Function<anonymous>', 'Function<onerror>' ], prefinish: 'Function<prefinish>', finish: 'Function<onfinish>', drain: undefined, data: undefined, end: 'Function<onend>', readable: 'Function<next>', unpipe: undefined }, _readableState: { highWaterMark: 65536, buffer: [], bufferIndex: +0, length: +0, pipes: [], awaitDrainWriters: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: true, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: false, dataEmitted: true, errored: null, defaultEncoding: 'utf8', decoder: null, encoding: null, flowing: false, pipesCount: +0, paused: false }, _writableState: { highWaterMark: 65536, length: +0, corked: +0, onwrite: 'Function<bound onwrite>', writelen: +0, bufferedIndex: +0, pendingcb: +0, constructor: 'Function<WritableState>', objectMode: false, finalCalled: true, needDrain: false, ending: true, ended: true, finished: true, destroyed: true, decodeStrings: true, writing: false, sync: false, bufferProcessing: false, constructed: true, prefinished: true, errorEmitted: false, emitClose: true, autoDestroy: true, closed: true, closeEmitted: true, allBuffers: true, allNoop: true, errored: null, writable: undefined, defaultEncoding: 'utf8', writecb: 'Function<nop>', afterWriteTickInfo: null, buffered: [], getBuffer: 'Function<getBuffer>', bufferedRequestCount: +0 }, allowHalfOpen: true, _maxListeners: undefined, _eventsCount: 6, constructor: 'Function<PassThrough>', _transform: 'Function<anonymous>', _final: 'Function<final>', _write: 'Function<anonymous>', _read: 'Function<anonymous>', write: 'Function<anonymous>', cork: 'Function<anonymous>', uncork: 'Function<anonymous>', setDefaultEncoding: 'Function<setDefaultEncoding>', _writev: null, end: 'Function<anonymous>', destroy: 'Function<anonymous>', writable: false, writableHighWaterMark: 65536, writableObjectMode: false, writableBuffer: [], writableLength: +0, writableFinished: true, writableCorked: +0, writableEnded: true, writableNeedDrain: false, destroyed: true, _undestroy: 'Function<undestroy>', _destroy: 'Function<anonymous>', push: 'Function<anonymous>', unshift: 'Function<anonymous>', isPaused: 'Function<anonymous>', setEncoding: 'Function<anonymous>', read: 'Function<anonymous>', pipe: 'Function<anonymous>', unpipe: 'Function<anonymous>', on: 'Function<anonymous>', addListener: 'Function<anonymous>', removeListener: 'Function<anonymous>', off: 'Function<anonymous>', removeAllListeners: 'Function<anonymous>', resume: 'Function<anonymous>', pause: 'Function<anonymous>', wrap: 'Function<anonymous>', iterator: 'Function<anonymo
|
|
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
|
|
tests/integration/tools/atlas-local/deleteDeployment.test.ts > atlas-local-delete-deployment > should delete a deployment when calling the tool:
tests/integration/tools/atlas-local/deleteDeployment.test.ts#L84
AssertionError: expected '' to contain 'test-deployment-1757936739320'
- Expected
+ Received
- test-deployment-1757936739320
❯ tests/integration/tools/atlas-local/deleteDeployment.test.ts:84:47
|
|
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#L273
AssertionError: expected undefined to be defined
❯ expectDefined tests/integration/helpers.ts:273:17
❯ tests/integration/tools/atlas-local/createDeployment.test.ts:166:9
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment with the correct name:
tests/integration/tools/atlas-local/createDeployment.test.ts#L136
AssertionError: expected 'Error running atlas-local-create-depl…' to contain 'test-deployment-1757936724442'
- Expected
+ Received
- test-deployment-1757936724442
+ Error running atlas-local-create-deployment: create deployment
+
+ Caused by:
+ 0: Failed to pull image: Docker stream error: no matching manifest for windows/amd64 10.0.20348 in the manifest list entries
+ 1: Docker stream error: no matching manifest for windows/amd64 10.0.20348 in the manifest list entries
❯ tests/integration/tools/atlas-local/createDeployment.test.ts:136:41
|
|
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/tools/atlas-local/createDeployment.test.ts#L118
AssertionError: expected 'Error running atlas-local-create-depl…' to contain 'Container already exists: test-deploy…'
- Expected
+ Received
- Container already exists: test-deployment-1757936722985
+ Error running atlas-local-create-deployment: create deployment
+
+ Caused by:
+ 0: Failed to pull image: Docker stream error: no matching manifest for windows/amd64 10.0.20348 in the manifest list entries
+ 1: Docker stream error: no matching manifest for windows/amd64 10.0.20348 in the manifest list entries
❯ tests/integration/tools/atlas-local/createDeployment.test.ts:118:39
|
|
tests/integration/tools/atlas-local/createDeployment.test.ts > atlas-local-create-deployment > should create a deployment when calling the tool:
tests/integration/tools/atlas-local/createDeployment.test.ts#L95
AssertionError: expected '' to contain 'test-deployment-1757936721587'
- Expected
+ Received
- test-deployment-1757936721587
❯ tests/integration/tools/atlas-local/createDeployment.test.ts:95:46
|
|
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 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...
|
|
Run Atlas tests
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
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 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 | |
|---|---|---|---|
|
run-atlas-tests-permissions-1fb4325b3cdfda50c79412503f1390ad
|
140 Bytes |
sha256:2aa7a238f0d301467a240c358090e3fc0ea062bffcc5c88725022438c243e6c2
|
|
|
run-tests-permissions-263310a691ee369d6258e427d5e2468d
|
140 Bytes |
sha256:51e340db655a0850634e659cd56bb452f71ecb85bbda89dd17134cd538d14e55
|
|
|
test-results
|
20.6 KB |
sha256:c6b4dc44348374b3a5323e18c67a2197e88129db4831dcf84c6ec700c0efa89c
|
|