Commit graph

7262 commits

Author SHA1 Message Date
ThreeFive-O 0735c95c3f Add unit and feature tests for Send-MailMessage (#9213) 2019-05-02 10:37:50 -07:00
Steve Lee cb20154de8 Update to Pester 4.8.0 (#9510) 2019-05-02 09:56:16 +05:00
Steve Lee eedb37f4d6 Update width of datetime to accommodate change in Japan datetime format with new era starting 5/1/19 (#9503) 2019-05-01 17:07:21 -07:00
xtqqczze a702f68974 Ensure Wait-UntilTrue returns $true in Pester tests (#9458) 2019-05-01 17:03:43 -07:00
Paul Higinbotham aeb601892d Fix Get-Runspace runspace object format Type column (#9438) 2019-05-01 16:01:30 -07:00
Joel Sallow (/u/ta11ow) 2cd4a4870a Update Support_Question.md (#9218) 2019-04-30 09:38:52 -07:00
Ilya bd6fdae735
Cleanup: sort usings (#9490) 2019-04-30 10:25:11 +05:00
Ilya 262d86c691
Cleanup Export-Command from assemblyinfo (#9455) 2019-04-28 01:22:13 +05:00
Steve Lee d318e7727e Allow passing just a dash as an arg to a file via pwsh (#9479) 2019-04-27 11:20:33 -07:00
Aditya Patwardhan 7de4210760
Update Release_Process.md
Add item for global tool
2019-04-26 16:28:09 -07:00
dependabot[bot] 91c66d5b25 Build(deps): Bump NJsonSchema from 9.13.35 to 9.13.36 (#9478) 2019-04-26 15:41:42 -07:00
Aditya Patwardhan 9f429f0206 Build test packages for windows, linux-x64, linux-arm, linux-arm64 and macOS (#9476) 2019-04-26 15:41:07 -07:00
Steve Lee e81aa9882c Enable building on Kali Linux (#9471) 2019-04-26 14:11:56 -07:00
Dongbo Wang 687697bc90 Fix the failed test and update 'Publish-TestResults' to make AzDO fail the task when any tests failed (#9457) 2019-04-25 14:01:05 -07:00
Ilya ceed73d737
Run Codeformatter for SMA (#9402) 2019-04-24 19:27:22 +05:00
Andrew 095be4655e
Return correct casing of filesystem path during normalization (#9250)
* return correct casing of filesystem path during normalization

* handle UNC case

* handle case to add trailing separator back

* add support for NTFS streams syntax

* add case-sensitive test

* only apply correct casing to directories

* handle 8.3 path syntax

* fix short path processing
2019-04-23 13:31:43 -07:00
Steve Lee 5e58e30d20 Move warning message to EndProcessing so it only shows up once (#9385) 2019-04-23 13:31:20 -07:00
dependabot[bot] 600a93750e Build(deps): Bump gulp from 4.0.0 to 4.0.1 in /test/common/markdown (#9441) 2019-04-23 11:06:39 -07:00
pougetat 0bd93777fc Adding tests for Remove-Module (#9276) 2019-04-22 10:49:58 -07:00
Steve Lee 3e1f630695 Add Preview assets for msix (#9375) 2019-04-22 10:41:34 -07:00
dependabot[bot] fd1d3cef91 Build(deps): Bump Newtonsoft.Json from 12.0.1 to 12.0.2 (#9434)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.1 to 12.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.1...12.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 13:37:54 +05:00
dependabot[bot] ecbde6c020 Build(deps): Bump Newtonsoft.Json (#9431)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.1 to 12.0.2.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.1...12.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 13:37:09 +05:00
dependabot[bot] f070332ee9 Build(deps): Bump NJsonSchema from 9.13.34 to 9.13.35 (#9429)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.34 to 9.13.35.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-22 13:36:15 +05:00
dependabot[bot] 40dc9536d9 Build(deps): Bump NJsonSchema from 9.13.30 to 9.13.34 (#9421) 2019-04-20 13:37:06 -07:00
Ilya ca447c3ad4
Run CodeFormatter with BraceNewLine,UsingLocation,FormatDocument,NewLineAbove rules (#9393) 2019-04-20 23:20:59 +05:00
Dongbo Wang 609d610c71 Allow CI to run on branches with this name pattern: feature* (#9415) 2019-04-19 11:27:33 -07:00
Ilya 1c4d88cb64
Run CodeFormatter for WSMan.Management (#9400) 2019-04-19 08:30:24 +05:00
Ilya 9d04e90516
Run CodeFormatter for WSMan.Runtime (#9401) 2019-04-19 08:29:20 +05:00
Ilya 1c8a89bcdc
Run CodeFormatter for Security module (#9399) 2019-04-19 08:28:29 +05:00
Ilya ced70d390b
Run CodeFormatter for MarkdownRender (#9398) 2019-04-19 08:27:52 +05:00
Ilya c6269bd1a8
Run CodeFormatter for Eventing (#9394) 2019-04-19 08:21:22 +05:00
Ilya 213ff96e6d Use Environment.NewLine for new lines in ConsoleHost code (#9392) 2019-04-18 17:29:36 -07:00
Aditya Patwardhan f286c8ce63
Remove elements which do not work on earlier version on Windows PowerShell (#9411) 2019-04-18 16:56:53 -07:00
James Truher [MSFT] 4b67cdb9d4 Fix the platform check in CimDSCParser.cs (#9338) 2019-04-18 13:36:58 -07:00
Aditya Patwardhan 99c3fd1757
Convert custom attribute ValidatePathNotInSettings to function (#9406) 2019-04-18 12:49:42 -07:00
Tyler James Leonhardt 9140e421ec Add wildcard back to end of tab completion command lookup (#9383)
Re-add wildcard when searching AST + Missed test case.

## PR Context

In #8109, we removed the line that added a wildcard to the end of the command that was used to match commands in the script AST. This readds that line closer to where it is used.
2019-04-18 11:42:49 -07:00
Ilya e9ffbe5cf2
Run CodeFormatter for Diagnostics module (#9378) 2019-04-18 08:13:01 +05:00
Ilya 4a323b3668
Run CodeFormatter for Microsoft.PowerShell.Commands.Management (#9377) 2019-04-18 08:08:56 +05:00
dependabot[bot] 2815288a52 Build(deps): Bump NJsonSchema from 9.13.29 to 9.13.30 (#9388) 2019-04-17 15:15:43 -07:00
Ilya 2174dd81a4 Reduce string allocation in console output code (#6882) 2019-04-17 10:42:14 -07:00
Ilya 50efc4192d
Run CodeFormatter for Utility module (#9376) 2019-04-17 17:42:03 +05:00
Aditya Patwardhan 3ffd998c58 Create codecoverage and test packages for non-windows (#9373)
Refactor the `ci.psm1` to publish the code coverage and test packages.
Allow `CodeCoverage` configuration on non-windows.

## PR Context

We plan to run code coverage on Windows, Linux and macOS. These changes are needed to unblock those runs.
2019-04-16 15:13:30 -07:00
Travis Plunk cee1e54e75
Add ability to cross compile (#9374)
`-CrossGen` won`t work, but this gives basic ability to build for another platform.
This also means you cannot really package for another platform.
2019-04-16 14:14:29 -07:00
Steve Lee 73114ee36c Enable building of msix package (#9289)
Add support in packaging.psm1 to produce a .msix AppX package.  Update the docker image to use the new msix package type.  Update the associated yml files so AzDevOps performs the build.

## PR Context

Enable publishing PSCore6 to Microsoft Store
2019-04-15 17:07:15 -07:00
Travis Plunk 23451ac32f
Create dependabot config.yml (#9368)
Create dependabot config.yml
2019-04-15 11:49:17 -07:00
Tyler James Leonhardt 13fd3af810 New New-PSBreakpoint cmdlet & new -Breakpoint parameter for Debug-Runspace (#8923)
This PR does 4 things:

* Adds a new cmdlet `New-PSBreakpoint` which creates new `Breakpoint` objects and writes them to the pipeline
* Adds a `-Breakpoint` parameter to `Debug-Runspace` which will receive `Breakpoint` objects
* Makes the constructors for `*Breakpoint` public for use with the API
* Makes `Debugger.GetBreakpoint(string id)` and `Debugger.GetBreakpoints()` public since `SetBreakpoints` is public

Note: `New-PSBreakpoint` and `Set-PSBreakpoint` (which already exists) are similar... but `Set-PSBreakpoint` also sets the breakpoints in the _current_ runspace. This is not ideal if we want to set breakpoints in a _different runspace than the current one_.

## PR Context  

The "Attach to process" debugging experience in the PowerShell extension for VSCode is _ok_ but it's not great.

The reason it's not great is due to the `BreakAll` feature of PowerShell debugging which, when you run `Debug-Runspace`, will break at the first piece of code that gets run. This is not ideal when you "Attach to process" _and then_ run your code in the other runspace.

Today, the experience drops you in `PSReadLine`'s psm1 if PSRL is available or in the vscode PowerShell helper psm1.

It's unexpected for the user and not ideal.

This PR will allow the extension to pass in the breakpoints that need to be set initially with `BreakAll` turned off for none of this silly behavior.

### Silly behavior example

If you want a repro, try this:

PowerShell instance 1:
```
Enter-PSHostProcess -Id $otherprocesspid
Debug-Runspace 1
```

PowerShell instance 2:
```
./runfoo.ps1
```

Note that you end up NOT `runfoo.ps1`
2019-04-13 19:14:53 -07:00
ThreeFive-O d67ee7aee3 Style: Match file name casings of C# source files for Utility commands (#9329)
Renames C# source files for `Microsoft.Powershell.Commands.Utility` to follow a common file name casing scheme.

## PR Context

This PR is only a style change and doesn't affect any logic.
2019-04-13 19:05:21 -07:00
Aditya Patwardhan 02974a986d Create test package for macOS on release builds (#9344) 2019-04-13 19:01:28 -07:00
Aditya Patwardhan 0418246682 Make CodeCoverage configuration build portable PDBs (#9346) 2019-04-13 19:00:30 -07:00
Aditya Patwardhan be505772e2 Add AcessToken variable to jobs that perform signing (#9351) 2019-04-13 18:59:51 -07:00