Skip to content

Add examples for fauna local #646

Add examples for fauna local

Add examples for fauna local #646

GitHub Actions / JUnit Test Report failed Dec 13, 2024 in 0s

209 tests run, 199 passed, 0 skipped, 10 failed.

Annotations

Check failure on line 99 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/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.

expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] The hostPort \'8443\…'
Raw output
AssertionError: expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] The hostPort \'8443\…'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:99:24)

Check failure on line 132 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Creates and starts a container when none exists

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': {} } }
Raw output
AssertionError: 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': {} } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:132:49)

Check failure on line 278 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Throws an error if the health check fails

expected '[PullImage] Pulling image \'fauna/fau…' to include 'with HTTP status: \'503\''
Raw output
AssertionError: expected '[PullImage] Pulling image \'fauna/fau…' to include 'with HTTP status: \'503\''
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:278:24)

Check failure on line 314 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning exits if a container cannot be started

expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] Container \'faunadb\…'
Raw output
AssertionError: expected '[PullImage] Pulling image \'fauna/fau…' to include '[StartContainer] Container \'faunadb\…'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:314:24)

Check failure on line 1 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning throws an error if interval is less than 0

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)
Raw output
Error: 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)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7)

Check failure on line 1 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning throws an error if maxAttempts is less than 1

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)
Raw output
Error: 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)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7)

Check failure on line 422 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Ensures a container in state 'paused' becomes running and available.

expected 'paused' to equal 'dead'
Raw output
AssertionError: expected 'paused' to equal 'dead'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:422:31)

      + expected - actual

      -paused
      +dead

Check failure on line 422 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Ensures a container in state 'created' becomes running and available.

expected 'created' to equal 'dead'
Raw output
AssertionError: expected 'created' to equal 'dead'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:422:31)

      + expected - actual

      -created
      +dead

Check failure on line 422 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Ensures a container in state 'exited' becomes running and available.

expected 'exited' to equal 'dead'
Raw output
AssertionError: expected 'exited' to equal 'dead'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:422:31)

      + expected - actual

      -exited
      +dead

Check failure on line 422 in test/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.ensureContainerRunning Ensures a container in state 'running' becomes running and available.

expected 'running' to equal 'dead'
Raw output
AssertionError: expected 'running' to equal 'dead'
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:422:31)

      + expected - actual

      -running
      +dead