Skip to content

Add examples for fauna local #646

Add examples for fauna local

Add examples for fauna local #646

Triggered via pull request December 13, 2024 19:23
Status Success
Total duration 25s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 10 warnings
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Shows a clear error to the user if something is already running on the desired port.: test/local.mjs#L99
expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] The hostPort \'8443\…'
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Creates and starts a container when none exists: test/local.mjs#L132
expected createContainer to have been called with arguments { Image: 'fauna/faunadb:latest', name: 'faunadb', HostConfig: { PortBindings: { '8443/tcp': [Object] }, AutoRemove: true }, ExposedPorts: { '8443/tcp': {} } } { Image: 'fauna/faunadb:latest', name: 'faunadb', HostConfig: { PortBindings: { '8443/tcp': [Object] }, AutoRemove: true }, ExposedPorts: { '8443/tcp': {} } }
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Throws an error if the health check fails: test/local.mjs#L278
expected '[PullImage] Pulling image \'fauna/fau…' to include 'with HTTP status: \'503\''
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning exits if a container cannot be started: test/local.mjs#L314
expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] Container \'faunadb\…'
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning throws an error if interval is less than 0: test/local.mjs#L1
Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/fauna-shell/fauna-shell/test/local.mjs)
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning throws an error if maxAttempts is less than 1: test/local.mjs#L1
Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/fauna-shell/fauna-shell/test/local.mjs)
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Shows a clear error to the user if something is already running on the desired port.: test/local.mjs#L99
expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] The hostPort \'8443\…'
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Creates and starts a container when none exists: test/local.mjs#L132
expected createContainer to have been called with arguments { Image: 'fauna/faunadb:latest', name: 'faunadb', HostConfig: { PortBindings: { '8443/tcp': [Object] }, AutoRemove: true }, ExposedPorts: { '8443/tcp': {} } } { Image: 'fauna/faunadb:latest', name: 'faunadb', HostConfig: { PortBindings: { '8443/tcp': [Object] }, AutoRemove: true }, ExposedPorts: { '8443/tcp': {} } }
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Throws an error if the health check fails: test/local.mjs#L278
expected '[PullImage] Pulling image \'fauna/fau…' to include 'with HTTP status: \'503\''
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning exits if a container cannot be started: test/local.mjs#L314
expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] Container \'faunadb\…'
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning throws an error if interval is less than 0: test/local.mjs#L1
Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/fauna-shell/fauna-shell/test/local.mjs)
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning throws an error if maxAttempts is less than 1: test/local.mjs#L1
Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/fauna-shell/fauna-shell/test/local.mjs)
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: src/commands/shell.mjs#L41
Unexpected 'todo' comment: 'TODO: integrate with fql-analyzer for...'
lint: src/lib/account.mjs#L69
Async function 'parseResponse' has a complexity of 11. Maximum allowed is 10
lint: src/lib/auth/accountKeys.mjs#L85
Unexpected 'todo' comment: 'TODO: track ttl for account and refresh...'
lint: src/lib/auth/credentials.mjs#L66
Unexpected 'todo' comment: 'TODO: set expiration'
lint: src/lib/auth/oauth-client.mjs#L56
Method '_handleRequest' has a complexity of 13. Maximum allowed is 10
lint: src/lib/fauna-account-client.mjs#L135
Unexpected 'todo' comment: 'TODO: get/set expiration details'
lint: src/lib/fauna-account-client.mjs#L152
Unexpected 'todo' comment: 'TODO: get/set expiration details'
lint: src/lib/middleware.mjs#L46
Unexpected 'todo' comment: 'TODO: figure out upgrade path for SEA...'
lint: test/schema/commit.mjs#L94
Unexpected 'todo' comment: 'TODO: what are the valid statuses?...'