From 7237eff283d53418cad5fa495340f7e3c5863c64 Mon Sep 17 00:00:00 2001 From: raosuhas Date: Wed, 13 Apr 2022 17:51:23 -0700 Subject: [PATCH] TTK updates --- arm-ttk/Test-AzMarketplacePackage.ps1 | 4 ++++ .../PasswordBoxes-Must-Have-Min-Length.test.ps1 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arm-ttk/Test-AzMarketplacePackage.ps1 b/arm-ttk/Test-AzMarketplacePackage.ps1 index a6cd7925..19853ff6 100644 --- a/arm-ttk/Test-AzMarketplacePackage.ps1 +++ b/arm-ttk/Test-AzMarketplacePackage.ps1 @@ -52,6 +52,10 @@ Test-AzMarketplacePackage validates a package to verify if it passes all the min $ttkErrors + Write-Host "Please fix any failed tests flagged above. All failed tests must be fixed before submission." + Write-Host "In addition please review the warnings below and fix them. It is highly recommended to fix these to ensure your customers are able to use your application without issues." + Write-Host "For details on fixing these, please check https://aka.ms/arm-ttk-docs" + $ttkWarnings | Where-Object Errors | ForEach-Object { $_.Warnings = @(foreach ($err in $_.Errors) { Write-Warning -Message "$err" *>&1 diff --git a/arm-ttk/testcases/CreateUIDefinition/PasswordBoxes-Must-Have-Min-Length.test.ps1 b/arm-ttk/testcases/CreateUIDefinition/PasswordBoxes-Must-Have-Min-Length.test.ps1 index b62c4a1c..5d5d01f9 100644 --- a/arm-ttk/testcases/CreateUIDefinition/PasswordBoxes-Must-Have-Min-Length.test.ps1 +++ b/arm-ttk/testcases/CreateUIDefinition/PasswordBoxes-Must-Have-Min-Length.test.ps1 @@ -47,7 +47,7 @@ foreach ($pwb in $passwordBoxes) { # Loop over each password box $totalMins += $match.Groups['Min'].Value -as [int] } if ($passWordMinLength -gt $totalMins) { - Write-Error "PasswordBox '$($pwb.Name)' regex does not have a minimum length of $PasswordMinLength" -TargetObject $pwb + Write-Warning"PasswordBox '$($pwb.Name)' regex does not have a minimum length of $PasswordMinLength" -TargetObject $pwb } } } catch {