diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2022-02-16 18:14:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 00:14:46 +0100 |
commit | 57f4b0e5af12942a3b65659e57f016b712f1e1e5 (patch) | |
tree | d987e9134f922e55cda63c7e9003bdcb6c37f56d /cli/tests/integration | |
parent | 53088e16de9728696df12b04670a0f2d5203592b (diff) |
feat: Add hint to permission prompt to display allow flag (#13695)
Diffstat (limited to 'cli/tests/integration')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 6dd2a4ae6..e8ee10065 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -521,9 +521,9 @@ fn _090_run_permissions_request() { let args = "run --quiet 090_run_permissions_request.ts"; use util::PtyData::*; util::test_pty2(args, vec![ - Output("⚠️ ️Deno requests run access to \"ls\". Allow? [y/n (y = yes allow, n = no deny)] "), + Output("⚠️ ️Deno requests run access to \"ls\". Run again with --allow-run to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), Input("y\n"), - Output("⚠️ ️Deno requests run access to \"cat\". Allow? [y/n (y = yes allow, n = no deny)] "), + Output("⚠️ ️Deno requests run access to \"cat\". Run again with --allow-run to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), Input("n\n"), Output("granted\r\n"), Output("prompt\r\n"), @@ -2197,9 +2197,9 @@ mod permissions { let args = "run --quiet 061_permissions_request.ts"; use util::PtyData::*; util::test_pty2(args, vec![ - Output("⚠️ ️Deno requests read access to \"foo\". Allow? [y/n (y = yes allow, n = no deny)] "), + Output("⚠️ ️Deno requests read access to \"foo\". Run again with --allow-read to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)] "), Input("y\n"), - Output("⚠️ ️Deno requests read access to \"bar\". Allow? [y/n (y = yes allow, n = no deny)] "), + Output("⚠️ ️Deno requests read access to \"bar\". Run again with --allow-read to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), Input("n\n"), Output("granted\r\n"), Output("prompt\r\n"), @@ -2212,7 +2212,7 @@ mod permissions { let args = "run --quiet 062_permissions_request_global.ts"; use util::PtyData::*; util::test_pty2(args, vec![ - Output("⚠️ ️Deno requests read access. Allow? [y/n (y = yes allow, n = no deny)] "), + Output("⚠️ ️Deno requests read access. Run again with --allow-read to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)] "), Input("y\n"), Output("PermissionStatus { state: \"granted\", onchange: null }\r\n"), Output("PermissionStatus { state: \"granted\", onchange: null }\r\n"), @@ -2332,9 +2332,9 @@ fn issue9750() { vec![ Output("Enter 'yy':\r\n"), Input("yy\n"), - Output("⚠️ ️Deno requests env access. Allow? [y/n (y = yes allow, n = no deny)] "), + Output("⚠️ ️Deno requests env access. Run again with --allow-env to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), Input("n\n"), - Output("⚠️ ️Deno requests env access to \"SECRET\". Allow? [y/n (y = yes allow, n = no deny)] "), + Output("⚠️ ️Deno requests env access to \"SECRET\". Run again with --allow-run to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), Input("n\n"), Output("error: Uncaught (in promise) PermissionDenied: Requires env access to \"SECRET\", run again with the --allow-env flag\r\n"), ], |