Add Github action for testing #4
35 tests run, 20 passed, 0 skipped, 15 failed.
Annotations
Check failure on line 66 in test/schema/abandon.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi"'
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } } { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/abandon.mjs:66:32)
Check failure on line 96 in test/schema/abandon.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/abandon.mjs:96:32)
Check failure on line 120 in test/schema/abandon.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/abandon.mjs:120:32)
Check failure on line 43 in test/schema/commit.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
Call 1:
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi"'
{ method: 'POST', headers: { AUTHORIZATION: 'Bearer secret' } } { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs:43:32)
Check failure on line 82 in test/schema/commit.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs:82:32)
Check failure on line 104 in test/schema/commit.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs:104:32)
Check failure on line 133 in test/schema/commit.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs:133:32)
Check failure on line 43 in test/schema/diff.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs.schema diff can display the diff between local and remote schema
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs:43:32)
Check failure on line 61 in test/schema/diff.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs.schema diff can display the diff between local and staged remote schema
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=true', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=true"' '"https://db.fauna.com/schema/1/validate?force=true&color=ansi&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/validate?force=true&color=ansi&staged=true', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=true"' '"https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=true"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs:61:32)
Check failure on line 97 in test/schema/diff.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs.schema diff displays useful output when a diff is empty
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&color=ansi&staged=false"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs:97:32)
Check failure on line 70 in test/schema/push.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push can push schema by version to active (default)
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 1:
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 2:
'"https://db.fauna.com/schema/1/update?version=1728675598430000&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 1:
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 2:
'"https://db.fauna.com/schema/1/update?version=1728675598430000&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs:70:32)
Check failure on line 114 in test/schema/push.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push can push schema by version to staging
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=true&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 1:
'"https://db.fauna.com/schema/1/validate?force=true&staged=true"' '"https://db.fauna.com/schema/1/validate?force=true&staged=true&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 2:
'"https://db.fauna.com/schema/1/update?version=1728675598430000&staged=true"' '"https://db.fauna.com/schema/1/validate?force=true&staged=true&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=true&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 1:
'"https://db.fauna.com/schema/1/validate?force=true&staged=true"' '"https://db.fauna.com/schema/1/validate?force=true&staged=true&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 2:
'"https://db.fauna.com/schema/1/update?version=1728675598430000&staged=true"' '"https://db.fauna.com/schema/1/validate?force=true&staged=true&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs:114:32)
Check failure on line 151 in test/schema/push.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push can be cancelled by the user before making mutating network calls
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs:151:32)
Check failure on line 190 in test/schema/push.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push warns when attempting to push an empty diff
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 1:
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 2:
'"https://db.fauna.com/schema/1/update?version=1728675598430000&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Raw output
AssertionError: expected stub to have been called with arguments 'https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi', { method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 1:
'"https://db.fauna.com/schema/1/validate?force=true&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
Call 2:
'"https://db.fauna.com/schema/1/update?version=1728675598430000&staged=false"' '"https://db.fauna.com/schema/1/validate?force=true&staged=false&color=ansi"'
{ method: 'POST',
headers: { AUTHORIZATION: 'Bearer secret' },
body: {} }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs:190:32)
Check failure on line 26 in test/schema/status.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/schema/status.mjs.schema status fetches the current status
expected stub to have been called with arguments 'https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ 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?diff=true&color=ansi', { method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
'"https://db.fauna.com/schema/1/staged/status?diff=true"' '"https://db.fauna.com/schema/1/staged/status?diff=true&color=ansi"'
{ method: 'GET', headers: { AUTHORIZATION: 'Bearer secret' } }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/schema/status.mjs:26:32)