Skip to content

Multiple test fixes and improved logging for fragile tests - #9569

Merged
Aditya Patwardhan (adityapatwardhan) merged 17 commits into
PowerShell:masterfrom
adityapatwardhan:RAFixes
May 10, 2019
Merged

Aditya Patwardhan (adityapatwardhan) merged 17 commits into
PowerShell:masterfrom
adityapatwardhan:RAFixes

Conversation

@adityapatwardhan

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) commented May 8, 2019 •

Copy link
Copy Markdown
Member

PR Summary

  • Read-Host - set the expect file to be executable
  • DotNetAPI - lookup a type instead of calling an API that does not work on all platforms
  • ExecutionPolicy - Fix test and improve logging for the test
  • GetCommand - Fix test
  • Markdown cmdlet - Fix tests on platforms that do not support VT100.
  • BasicEngine - Add more logging for fragile test. This fails intermittently.
  • TaskBasedAsyncPowerShellAPI - Add a sleep for waiting for the pipeline to start. Also added more logging.
  • HelpSystem.Online - Fix the expected environment variable as AzDevOps makes are variable all caps.

PR Context

Fix multiple test failures found while running release automation tests on multiple platforms.

PR Checklist

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) changed the title Multiple test fixes and improved logging for fragile tests [WIP] Multiple test fixes and improved logging for fragile tests May 8, 2019

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just nits and a typo. Should probably fix the typo

@PoshChan

Copy link
Copy Markdown
Collaborator

Aditya Patwardhan (@adityapatwardhan), your last commit had 1 failures in PowerShell-CI-windows
Validate ExecutionPolicy cmdlets in PowerShell.Validate that 'Unrestricted' execution policy works on OneCore powershell.Test 'Unrestricted' execution policy. Importing D:\a\1\s\src\powershell-win-core\bin\Release\netcoreapp2.1\win7-x64\publish\Modules\Loc

Expected an exception, with FullyQualifiedErrorId 'UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand' to be thrown, but no exception was thrown.
at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\Microsoft.PowerShell.Security\ExecutionPolicy.Tests.ps1: line 688
688:                     $testScript | Should -Throw -ErrorId $expectedError

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) changed the title [WIP] Multiple test fixes and improved logging for fragile tests Multiple test fixes and improved logging for fragile tests May 9, 2019
@adityapatwardhan

Copy link
Copy Markdown
Member Author

James Truher (@JamesWTruher) I have addressed your comments. Please have another look.

@TravisEz13

Copy link
Copy Markdown
Member

Does this need to be back ported?

@TravisEz13 Travis Plunk (TravisEz13) added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label May 15, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants