diff --git a/scripts/liveValidation.js b/scripts/liveValidation.js index dc5d28e13e94..b828886d6859 100644 --- a/scripts/liveValidation.js +++ b/scripts/liveValidation.js @@ -99,7 +99,9 @@ async function runScript() { } console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); - if (failingOperations.length > 0 || noTrafficOperations.length > 0) { + if (validationResult.totalOperationCount === 0) { + console.log(`There was no traffic detected for the provided RP and API version:${resourceProvider}-${apiVersion}. Please make sure there is traffic so the changes can be validated.`); + } else if (failingOperations.length > 0 || noTrafficOperations.length > 0) { console.log(`The changes in the specs introduced by this PR potentially do not reflect the Service API.`); console.log(`Active traffic and success rate > ${successThreshold}% FOR EACH OPERATION is required. Please review the following operations before moving forward.`); @@ -116,7 +118,7 @@ async function runScript() { `); process.exitCode = 1; } else { - console.log(`SUCCESS RATE: ${validationResult.SuccessRate} > ${successThreshold}. You can move forward:`); + console.log(`SUCCESS RATE: ${validationResult.successRate} > ${successThreshold}. You can move forward.`); } }