xref: /third_party/node/test/parallel/test-http-debug.js (revision 1cb0ef41)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_cirequire('../common');
41cb0ef41Sopenharmony_ciconst assert = require('assert');
51cb0ef41Sopenharmony_ciconst child_process = require('child_process');
61cb0ef41Sopenharmony_ciconst path = require('path');
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ciprocess.env.NODE_DEBUG = 'http';
91cb0ef41Sopenharmony_ciconst { stderr } = child_process.spawnSync(process.execPath, [
101cb0ef41Sopenharmony_ci  path.resolve(__dirname, 'test-http-conn-reset.js'),
111cb0ef41Sopenharmony_ci], { encoding: 'utf8' });
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ciassert(stderr.match(/Setting the NODE_DEBUG environment variable to 'http' can expose sensitive data \(such as passwords, tokens and authentication headers\) in the resulting log\./),
141cb0ef41Sopenharmony_ci       stderr);
15

Indexes created Thu Nov 07 10:32:03 CST 2024