This commit is contained in:
lohit
2025-05-12 20:06:26 +05:30
parent b2756b3c63
commit bdbcaeff67
3 changed files with 7 additions and 14 deletions

View File

@@ -259,10 +259,10 @@ const handler = async function (argv) {
}
if (clientCertConfigJson?.enabled && Array.isArray(clientCertConfigJson?.certs)) {
if (clientCertificates) {
clientCertificates.certs.push(...clientCertConfigJson.certs);
if (brunoConfig.clientCertificates) {
brunoConfig.clientCertificates.certs.push(...clientCertConfigJson.certs);
} else {
clientCertificates = { certs: clientCertConfigJson.certs };
brunoConfig.clientCertificates = { certs: clientCertConfigJson.certs };
}
console.log(chalk.green(`Client certificates has been added`));
} else {

View File

@@ -81,7 +81,7 @@ const runSingleRequest = async function (
if (result?.skipRequest) {
return {
test: {
filename: itemPathname
filename: relativeItemPathname
},
request: {
method: request.method,
@@ -363,7 +363,7 @@ const runSingleRequest = async function (
console.log(chalk.red(stripExtension(relativeItemPathname)) + chalk.dim(` (${err.message})`));
return {
test: {
filename: itemPathname
filename: relativeItemPathname
},
request: {
method: request.method,
@@ -499,7 +499,7 @@ const runSingleRequest = async function (
return {
test: {
filename: itemPathname
filename: relativeItemPathname
},
request: {
method: request.method,
@@ -525,7 +525,7 @@ const runSingleRequest = async function (
console.log(chalk.red(stripExtension(relativeItemPathname)) + chalk.dim(` (${err.message})`));
return {
test: {
filename: itemPathname
filename: relativeItemPathname
},
request: {
method: null,