1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/cli/tests/integration
Andreu Botella 69ec45eac7
refactor(cli): Integrate standalone mode cert handling into Flags (#17419)
The way the standalone mode handles the `--cert` flag is different to
all other modes. This is because `--cert` takes a path to the
certificate file, which is directly added to the root cert store; except
for compile mode, where its byte contents are stored in the standalone
metadata, and they are added to the root cert store after the
`ProcState` is created.

This change instead changes `Flags::ca_file` (an `Option<String>`) into
`Flags::ca_data`, which can represent a `String` file path or a
`Vec<u8>` with the certificate contents. That way, standalone mode can
create a `ProcState` whose root cert store alreay contains the
certificate.

This change also adds a tests for certificates in standalone mode, since
there weren't any before.

This refactor will help with implementing web workers in standalone mode
in the future.
2023-01-18 01:18:24 +01:00
..
bench_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
bundle_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
cache_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
cert_tests.rs refactor(cli): Integrate standalone mode cert handling into Flags (#17419) 2023-01-18 01:18:24 +01:00
check_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
compile_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
coverage_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
doc_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
eval_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
flags_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
fmt_tests.rs fix(cli/fmt): show filepath for InvalidData error (#17361) 2023-01-16 00:30:52 +00:00
info_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
init_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
inspector_tests.rs chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
install_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
js_unit_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
lint_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
lsp_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
mod.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
npm_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
repl_tests.rs chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
run_tests.rs fix(permissions): lock stdio streams when prompt is shown (#17392) 2023-01-13 10:05:07 -05:00
task_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
test_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
upgrade_tests.rs chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
vendor_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
watcher_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00
worker_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00