Fix: CLI Test Runner ignores auth:"inherit" in requests (#2206) (#2243)

#1667 - None means None, but inherit means inherit
This commit is contained in:
Mateusz Pietryga
2024-05-06 12:48:53 +02:00
committed by GitHub
parent 392cc80db2
commit 60cf012cbe

View File

@@ -33,7 +33,7 @@ const prepareRequest = (request, collectionRoot) => {
};
const collectionAuth = get(collectionRoot, 'request.auth');
if (collectionAuth && request.auth.mode === 'none') {
if (collectionAuth && request.auth.mode === 'inherit') {
if (collectionAuth.mode === 'basic') {
axiosRequest.auth = {
username: get(collectionAuth, 'basic.username'),