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

Triggered via pull request January 17, 2025 14:11
Status Failure
Total duration 38s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 1 warning
/home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs.local command Creates a schema if requested: test/commands/local.mjs#L187
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: {} }
/home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs.local command Creates a schema if requested: test/commands/local.mjs#L187
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: {} }
/home/runner/work/fauna-shell/fauna-shell/test/commands/local.mjs.local command Creates a schema if requested: test/commands/local.mjs#L187
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: {} }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon can abandon a staged schema change without user input: test/commands/schema/abandon.mjs#L40
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon can abandon a staged schema change by version: test/commands/schema/abandon.mjs#L67
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon errors if there is no staged schema: test/commands/schema/abandon.mjs#L95
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/abandon.mjs.schema abandon can be cancelled without making mutating network calls: test/commands/schema/abandon.mjs#L119
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit can commit a schema change: test/commands/schema/commit.mjs#L44
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit can commit a schema change without user input: test/commands/schema/commit.mjs#L65
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit errors if there is no staged schema change: test/commands/schema/commit.mjs#L83
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit errors if the schema is not in a ready state: test/commands/schema/commit.mjs#L102
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/commit.mjs.schema commit can be cancelled without making mutating network calls: test/commands/schema/commit.mjs#L129
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' } }
/home/runner/work/fauna-shell/fauna-shell/test/commands/schema/push.mjs.schema push can push a schema without user input: test/commands/schema/push.mjs#L56
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: {} }
test (20.x)
Process completed with exit code 13.
test (22.x)
The job was canceled because "_20_x" failed.
test (22.x)
The operation was canceled.
test (22.x)
Process completed with exit code 13.
test (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636