From fcf16079e9d7701c164c3e87725402d7d444b923 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Tue, 26 Jul 2022 22:12:26 -0300 Subject: [PATCH] test: fix policy-deny tests --- doc/api/cli.md | 11 ++ doc/node.1 | 3 + lib/internal/repl/history.js | 13 +- src/node_file.cc | 19 ++- src/policy/policy.h | 2 +- test/fixtures/policy/deny/regular-file.md | 3 - test/parallel/test-bootstrap-modules.js | 4 + test/parallel/test-cli-policy-deny-fs.js | 15 +- test/parallel/test-policy-deny-fs-in.js | 171 +++++++++------------- test/parallel/test-policy-deny-fs-out.js | 143 ++++-------------- test/parallel/test-policy-deny.js | 22 +-- 11 files changed, 157 insertions(+), 249 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 3db570deb695bc..4c674b311137ed 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -783,6 +783,16 @@ unless either the `--pending-deprecation` command-line flag, or the are used to provide a kind of selective "early warning" mechanism that developers may leverage to detect deprecated API usage. +### `--policy-deny-fs` + + + +> Stability: 1 - Experimental + +TODO + ### `--policy-integrity=sri`