Skip to content

add first draft of interactive init command #459

add first draft of interactive init command

add first draft of interactive init command #459

Triggered via pull request December 9, 2024 22:08
Status Success
Total duration 28s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 11 warnings
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --local is provided calls fauna with the correct args: --local: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]' '"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
/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': test/database/list.mjs#L112
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L112
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L112
expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]' '"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is provided handles unauthorized errors when calling fauna: test/database/list.mjs#L139
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\'.")' }
/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: : test/database/list.mjs#L199
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]"'
/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: test/database/list.mjs#L199
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]"'
/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': test/database/list.mjs#L199
expected stdout to have been called exactly once with arguments '[\n {\n "name": "test"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"test\\"\\n }\\n]"'
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --local is provided calls fauna with the correct args: --local: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L74
expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]' '"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
/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': test/database/list.mjs#L112
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L112
expected stdout to have been called exactly once with arguments '[\n {\n "name": "testdb"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"testdb\\"\\n }\\n]"'
/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: test/database/list.mjs#L112
expected stdout to have been called exactly once with arguments '[{"name":"testdb"}]' '"{}"' '"[{\\"name\\":\\"testdb\\"}]"'
/home/runner/work/fauna-shell/fauna-shell/test/database/list.mjs.database list when --secret is provided handles unauthorized errors when calling fauna: test/database/list.mjs#L139
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\'.")' }
/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: : test/database/list.mjs#L199
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]"'
/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: test/database/list.mjs#L199
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]"'
/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': test/database/list.mjs#L199
expected stdout to have been called exactly once with arguments '[\n {\n "name": "test"\n }\n]' '"{}"' '"[\\n {\\n \\"name\\": \\"test\\"\\n }\\n]"'
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: src/commands/init.mjs#L15
Unexpected 'todo' comment: 'TODO: handle error/exit case cleanly'
lint: src/commands/init.mjs#L223
Unexpected 'todo' comment: 'TODO: this has huge overlap with schema...'
lint: src/commands/shell.mjs#L27
Unexpected 'todo' comment: 'TODO: integrate with fql-analyzer for...'
lint: src/lib/auth/accountKeys.mjs#L85
Unexpected 'todo' comment: 'TODO: track ttl for account and refresh...'
lint: src/lib/auth/credentials.mjs#L57
Unexpected 'todo' comment: 'TODO: set expiration'
lint: src/lib/auth/oauth-client.mjs#L56
Method '_handleRequest' has a complexity of 13. Maximum allowed is 10
lint: src/lib/fauna-account-client.mjs#L135
Unexpected 'todo' comment: 'TODO: get/set expiration details'
lint: src/lib/fauna-account-client.mjs#L152
Unexpected 'todo' comment: 'TODO: get/set expiration details'
lint: src/lib/fauna-client.mjs#L15
Async method 'query' has a complexity of 16. Maximum allowed is 10
lint: src/lib/middleware.mjs#L45
Unexpected 'todo' comment: 'TODO: figure out upgrade path for SEA...'