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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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'),