Add Github action for testing #3
Annotations
19 errors
/home/runner/work/fauna-shell/fauna-shell/test/schema/abandon.mjs.schema abandon can abandon a staged schema change by version:
test/schema/abandon.mjs#L66
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' } }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/abandon.mjs.schema abandon errors if there is no staged schema:
test/schema/abandon.mjs#L96
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' } }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/abandon.mjs.schema abandon can be cancelled without making mutating network calls:
test/schema/abandon.mjs#L120
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' } }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs.schema commit can commit a schema change:
test/schema/commit.mjs#L43
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' } }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs.schema commit errors if there is no staged schema change:
test/schema/commit.mjs#L82
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' } }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs.schema commit errors if the schema is not in a ready state:
test/schema/commit.mjs#L104
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' } }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/commit.mjs.schema commit can be cancelled without making mutating network calls:
test/schema/commit.mjs#L133
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' } }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs.schema diff can display the diff between local and remote schema:
test/schema/diff.mjs#L43
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: {} }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs.schema diff can display the diff between local and staged remote schema:
test/schema/diff.mjs#L61
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: {} }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/diff.mjs.schema diff displays useful output when a diff is empty:
test/schema/diff.mjs#L97
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: {} }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push can push schema by version to active (default):
test/schema/push.mjs#L70
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: {} }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push can push schema by version to staging:
test/schema/push.mjs#L114
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: {} }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push can be cancelled by the user before making mutating network calls:
test/schema/push.mjs#L151
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: {} }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/push.mjs.schema push warns when attempting to push an empty diff:
test/schema/push.mjs#L190
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: {} }
|
/home/runner/work/fauna-shell/fauna-shell/test/schema/status.mjs.schema status fetches the current status:
test/schema/status.mjs#L26
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' } }
|
build (20.x)
Process completed with exit code 15.
|
build (22.x)
The job was canceled because "_20_x" failed.
|
build (22.x)
Process completed with exit code 15.
|
build (22.x)
The operation was canceled.
|