Skip to content

Align schema commands with public schema endpoints #877

Align schema commands with public schema endpoints

Align schema commands with public schema endpoints #877

GitHub Actions / JUnit Test Report failed Jan 17, 2025 in 0s

297 tests run, 284 passed, 0 skipped, 13 failed.

Annotations

Check failure on line 187 in test/commands/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs.local command Creates a schema if requested

expected stub to have been called with arguments 'http://0.0.0.0:8443/schema/1/update?force=true&staged=false', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Call 1:
'"http://0.0.0.0:8443/ping"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'GET', timeout: 1000 } { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} } 
Call 2:
'"http://0.0.0.0:8443/schema/1/update?staged=false"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'http://0.0.0.0:8443/schema/1/update?force=true&staged=false', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Call 1:
'"http://0.0.0.0:8443/ping"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'GET', timeout: 1000 } { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} } 
Call 2:
'"http://0.0.0.0:8443/schema/1/update?staged=false"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs:187:34)

Check failure on line 187 in test/commands/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs.local command Creates a schema if requested

expected stub to have been called with arguments 'http://0.0.0.0:8443/schema/1/update?force=true&staged=false', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Call 1:
'"http://0.0.0.0:8443/ping"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'GET', timeout: 1000 } { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} } 
Call 2:
'"http://0.0.0.0:8443/schema/1/update?staged=false"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'http://0.0.0.0:8443/schema/1/update?force=true&staged=false', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Call 1:
'"http://0.0.0.0:8443/ping"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'GET', timeout: 1000 } { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} } 
Call 2:
'"http://0.0.0.0:8443/schema/1/update?staged=false"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs:187:34)

Check failure on line 187 in test/commands/local.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs.local command Creates a schema if requested

expected stub to have been called with arguments 'http://0.0.0.0:8443/schema/1/update?force=true&staged=false', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Call 1:
'"http://0.0.0.0:8443/ping"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'GET', timeout: 1000 } { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} } 
Call 2:
'"http://0.0.0.0:8443/schema/1/update?staged=false"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'http://0.0.0.0:8443/schema/1/update?force=true&staged=false', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
Call 1:
'"http://0.0.0.0:8443/ping"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'GET', timeout: 1000 } { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} } 
Call 2:
'"http://0.0.0.0:8443/schema/1/update?staged=false"' '"http://0.0.0.0:8443/schema/1/update?force=true&staged=false"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret:Foo:admin' },
  body: {} }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs:187:34)

Check failure on line 40 in test/commands/schema/abandon.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon can abandon a staged schema change without user input

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/abandon?force=true', { method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/abandon"' '"https://db.fauna.com/schema/1/staged/abandon?force=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/abandon?force=true', { method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/abandon"' '"https://db.fauna.com/schema/1/staged/abandon?force=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs:40:32)

Check failure on line 67 in test/commands/schema/abandon.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon can abandon a staged schema change by version

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 2:
'"https://db.fauna.com/schema/1/staged/abandon?version=1728677726190000"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } } { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 2:
'"https://db.fauna.com/schema/1/staged/abandon?version=1728677726190000"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } } { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } } 
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs:67:32)

Check failure on line 95 in test/commands/schema/abandon.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon errors if there is no staged schema

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs:95:32)

Check failure on line 119 in test/commands/schema/abandon.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon can be cancelled without making mutating network calls

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs:119:32)

Check failure on line 44 in test/commands/schema/commit.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit can commit a schema change

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 2:
'"https://db.fauna.com/schema/1/staged/commit?version=1728684450440000"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } } { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 2:
'"https://db.fauna.com/schema/1/staged/commit?version=1728684450440000"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } } { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } } 
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs:44:32)

Check failure on line 65 in test/commands/schema/commit.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit can commit a schema change without user input

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/commit?force=true', { method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/commit"' '"https://db.fauna.com/schema/1/staged/commit?force=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/commit?force=true', { method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/commit"' '"https://db.fauna.com/schema/1/staged/commit?force=true"' 
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs:65:32)

Check failure on line 83 in test/commands/schema/commit.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit errors if there is no staged schema change

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs:83:32)

Check failure on line 102 in test/commands/schema/commit.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit errors if the schema is not in a ready state

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs:102:32)

Check failure on line 129 in test/commands/schema/commit.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit can be cancelled without making mutating network calls

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?color=ansi&format=semantic"' '"https://db.fauna.com/schema/1/staged/status?color=ansi&diff=true"' 
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs:129:32)

Check failure on line 56 in test/commands/schema/push.mjs

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/push.mjs.schema push can push a schema without user input

expected stub to have been called with arguments 'https://db.fauna.com/schema/1/update?force=true&staged=true', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret' },
  body: {} }
'"https://db.fauna.com/schema/1/update?staged=true"' '"https://db.fauna.com/schema/1/update?force=true&staged=true"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret' },
  body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/update?force=true&staged=true', { method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret' },
  body: {} }
'"https://db.fauna.com/schema/1/update?staged=true"' '"https://db.fauna.com/schema/1/update?force=true&staged=true"' 
{ method: 'POST',
  headers: { AUTHORIZATION: 'Bearer secret' },
  body: {} }
    at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/commands/schema/push.mjs:56:32)