add first draft of interactive init command #459
170 tests run, 157 passed, 0 skipped, 13 failed.
Annotations
Check failure on line 74 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --local is provided calls fauna with the correct args: --local
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:74:44)
Check failure on line 74 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --local is provided calls fauna with the correct args: --local --url http://yo_dog:8443
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:74:44)
Check failure on line 74 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --local is provided calls fauna with the correct args: --local --secret taco
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:74:44)
Check failure on line 74 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --local is provided calls fauna with the correct args: --local --pageSize 10
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:74:44)
Check failure on line 74 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --local is provided calls fauna with the correct args: --local --json
expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]'
'"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]'
'"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:74:44)
Check failure on line 112 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is provided calls fauna with the correct args: --secret 'secret'
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:112:44)
Check failure on line 112 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is provided calls fauna with the correct args: --secret 'secret' --pageSize 10
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:112:44)
Check failure on line 112 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is provided calls fauna with the correct args: --secret 'secret' --json
expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]'
'"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]'
'"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:112:44)
Check failure on line 139 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is provided handles unauthorized errors when calling fauna
expected stderr to have been called with arguments { test: [Function],
message: 'match("Authentication failed: Please either log in using \'fauna login\' or provide a valid database secret with \'--secret\'.")' }
Raw output
AssertionError: expected stderr to have been called with arguments { test: [Function],
message: 'match("Authentication failed: Please either log in using \'fauna login\' or provide a valid database secret with \'--secret\'.")' }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:139:44)
Check failure on line 199 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is not provided calls the account api with the correct args:
expected stdout to have been called exactly once with arguments '[\n {\n "name": "test",\n "region_group": "us-std"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"test\\",\\n \\"region_group\\": \\"us-std\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "test",\n "region_group": "us-std"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"test\\",\\n \\"region_group\\": \\"us-std\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:199:44)
Check failure on line 199 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is not provided calls the account api with the correct args: --pageSize 10
expected stdout to have been called exactly once with arguments '[\n {\n "name": "test",\n "region_group": "us-std"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"test\\",\\n \\"region_group\\": \\"us-std\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "test",\n "region_group": "us-std"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"test\\",\\n \\"region_group\\": \\"us-std\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:199:44)
Check failure on line 199 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is not provided calls the account api with the correct args: --database 'us/example'
expected stdout to have been called exactly once with arguments '[\n {\n "name": "test"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"test\\"\\n }\\n]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[\n {\n "name": "test"\n }\n]'
'"{}"' '"[\\n {\\n \\"name\\": \\"test\\"\\n }\\n]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:199:44)
Check failure on line 199 in test/database/list.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is not provided calls the account api with the correct args: --database 'us/example' --json
expected stdout to have been called exactly once with arguments '[{"name":"test"}]'
'"{}"' '"[{\\"name\\":\\"test\\"}]"'
Raw output
AssertionError: expected stdout to have been called exactly once with arguments '[{"name":"test"}]'
'"{}"' '"[{\\"name\\":\\"test\\"}]"'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs:199:44)