Commit graph

6045 commits

Author SHA1 Message Date
kwkam 8ef5d4b8ee Make Resolve-Path -Relative return useful path when $PWD and -Path is on different drive (#5740)
* commands: make rvpa -relative do not return ./absolute_path

This happens on Windows when $pwd and -path is on different drive

* only return relative path inside current root
2018-03-16 15:06:37 -07:00
Steve Lee 263c98858b Update to Governance doc to reflect current working model (#6323)
With some changes in the PowerShell Team, need to update Governance doc to reflect current working model being used
2018-03-16 15:04:32 -07:00
Steve Lee 4d0f8cc0f5 Add Waiting - DotNetCore label (#6406)
Also, organize labels in alphabetical order.
2018-03-16 14:36:59 -07:00
Ilya a281853fcb Correct the '%c', '%l', '%k', '%s' and '%j' formats in 'Get-Date -UFormat' (#4805) 2018-03-16 09:44:42 -07:00
kwkam 5f202d676f Add 'NullReference' checks to two code paths related to 'PseudoParameterBinder' (#5738)
1. Add a null check in the tab completion code on the binding result returned from `PseudoParameterBinder`;
2. Add a null check in `CommandDiscovery.LookupCommandProcessor` on the `CommandInfo` object returned from the method `LookupCommandInfo`.
2018-03-16 09:10:06 -07:00
Amaan Marfatia 80d5df55c2 Standard deviation implementation on Measure-Object (#6238)
Implement iterative standard deviation algorithm for Measure-Object
2018-03-15 20:45:59 -07:00
Travis Plunk 339e4533e7
Add configuration for https://github.com/probot/stale (#6393)
* Add yml for https://github.com/probot/stale
2018-03-15 18:44:08 -07:00
Dongbo Wang 294def7b11
Fix 'PropertyOnlyAdapter' to allow calling base methods (#6394)
For a PropertyOnlyAdapter, the property may come from various sources, but methods, including parameterized properties, still come from DotNetAdapter. So, the binder can optimize on method calls for objects that map to a custom PropertyOnlyAdapter.
2018-03-15 15:09:38 -07:00
Travis Plunk a099786cdc
Update to DotNet 2.0.6 (#6403)
Update to DotNet 2.0.6
  - this addresses [Microsoft Security Advisory CVE-2018-0875: Hash Collision can cause Denial of Service](https://github.com/PowerShell/Announcements/issues/4)
  - This is a port of d607f207b9 to 6.1
2018-03-15 14:54:00 -07:00
Travis Plunk fcd6ddcfc7
Update version numbers to 6.0.2 (#6402)
* Add script to update the version number
* Update version to 6.0.2
2018-03-15 11:41:01 -07:00
Aditya Patwardhan 71cb49a99d Build: Remov version forcing code from NuGet package generation (#6390) 2018-03-15 10:12:56 -07:00
Klaudia Algiz 090f8761e8 Use new Pester syntax: -Parameter for Pester tests in engine. (#6298)
* Use new Pester syntax: -Parameter for Pester tests in engine.
2018-03-14 12:13:32 -07:00
Jason Shirk bd258a3dbc
Update CODEOWNERS 2018-03-14 10:04:56 -07:00
Dongbo Wang 7721042fd5 Pass the 'Match' object to $_ for the substitute script block in '-replace' operation (#6029) 2018-03-14 09:43:57 -07:00
Mathias R. Jessen 915639a177 Add lambda support to -replace operator
Add support for replacement lambdas when using the -replace operator.
Requires minimal changes to existing code by using the following overload:
    Regex.Replace(string input, MatchEvaluator evaluator)
when a ScriptBlock is passed in as the replacement argument.
2018-03-14 09:43:57 -07:00
Travis Plunk 8ffc0b0e3c
Support non-GitHub commits in the change log generation script (#6389) 2018-03-13 17:13:56 -07:00
Travis Plunk 8ba6f319f3
MSI: update architecture specific filenames (#6379) 2018-03-13 14:02:12 -07:00
Travis Plunk 88b3833ee3
Add no appimage build (#6380) 2018-03-13 13:49:25 -07:00
kwkam ac53dff089 Minor code clean-up changes (#5737) 2018-03-13 11:18:49 -07:00
Travis Plunk 982dbfe552
fix errors in start-psbootstrap during release builds (#6159)
set Debian front end to non-interactive during apt-get commands, to avoid error with prompting
add libffi-dev, which is required for ruby/fpm
let fpm update to the latest
2018-03-12 15:59:58 -07:00
Travis Plunk 491ee47ee7
When doing daily/test build in a non-release branch use the branch name as the preview name (#6355) 2018-03-12 12:31:34 -07:00
Travis Plunk 25ecf8c83c Clean the intermediate artifact 'psoptions.json' from build (#6356) 2018-03-10 09:51:23 -08:00
Klaudia Algiz bcf86d4f8a Use new Pester syntax: -Parameter for Pester tests in Microsoft.PowerShell.Management module. (#6294) 2018-03-09 15:13:15 -08:00
Donovan Brown 489f8336b1 Added Service Point Manager call to force Tls12. (#6310)
Calls [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 during bootstrap to download PowerShell core to avoid an error.
2018-03-09 15:12:05 -08:00
Dongbo Wang d623c9f10c Add '-Restore' when build win-arm and win-arm64 (#6353) 2018-03-09 09:50:26 -08:00
Klaudia Algiz 31cef2afb5 Add negative tests for Copy-Item over remote sessions (#6231) 2018-03-09 08:34:19 -08:00
Mark Kraus 06b0bb2eb2 Make a relative redirect URI absolute when 'Authorization' header present (#6325) 2018-03-09 08:28:20 -08:00
Travis Plunk 2d58072460 Make sure package verification failure fails the AppVeyor build (#6337) 2018-03-08 15:58:59 -08:00
rjmholt e42c1db395 Make relation-link handling in web cmdlets case insensitive (#6338) 2018-03-08 15:54:42 -08:00
Dongbo Wang 6d191970c5
Build: Remove two unneeded lines from 'Invoke-AppveyorFinish' (#6344) 2018-03-08 14:51:10 -08:00
Dongbo Wang dcba3c486e
Specify the runtime when running 'dotnet restore' in 'Start-PSBuild' (#6345) 2018-03-08 14:25:39 -08:00
Dan Travison 0c845b94c7 Rename log and logerror to Write-Log [$message] [-error] (#6333)
Fix #6332
This change renames log and logerror functions to a single Write-Log [$message] [-error] function to avoid conflicting with the log command on MacOS.
2018-03-08 10:47:20 -08:00
Travis Plunk 28bf189e6e Exclude lines about Pester executing test scripts from terse logs (#6336) 2018-03-08 10:17:23 -08:00
Travis Plunk 1426e24541
Build: Only restore once (#6335)
* don't restore with every publish
2018-03-08 10:01:19 -08:00
Travis Plunk f1c0c2ade5
Clean build during daily build to ensure MSI package is generate correctly (#6334)
Clean build during the daily build to ensure MSI package is generated correctly
- Do another clean build directly before packaging to clean up files that test has added
2018-03-07 19:47:21 -08:00
Travis Plunk 46a8976f9a markdown test: use strict in javascript (#6328) 2018-03-07 14:06:06 -08:00
Travis Plunk 8f4eaf3bbe
make Linux packages use correct version scheme for preview releases (#6318)
Fixes #6315

make Linux packages use correct version scheme for preview releases
- Now uses <Major>.<Minor>.<Patch>~<PreviewName> instead of <Major>.<Minor>.<Patch>-<PreviewName> as the - was interpretted as an iteration of the release not a preview.
2018-03-07 11:45:21 -08:00
Klaudia Algiz 740c075704 Use new Pester syntax: -Parameter for Pester tests in Modules/CimCmdlets (#6306)
* Use new Pester syntax: -Parameter for Pester tests in Modules/CimCmdlets.
2018-03-07 10:54:41 -08:00
James Truher [MSFT] 30e9e309dc Rename some tests because they are duplicates (#6312)
Also remove a couple of language tests which were actually duplicated
Change the one loop which loops through test cases to include an iteration number to remove test name duplication
2018-03-07 10:25:49 -08:00
Timothée Mazzucotelli d56c1913aa Add support for Debian in installpsh-debian.sh (#6314)
The script installpsh-debian only works for Ubuntu distributions. This PR adds support for Debian as well.

Related issue:  #5700

* Remove support for Ubuntu 17.04 in installpsh-debian.sh
2018-03-06 14:01:50 -08:00
Travis Plunk da905f891b
MSI: Make sure that file components are patchable (#6303)
MSI: Make sure that file components are patchable
- avoid changing names and guids of components between builds as this prevents patch generation
- This required submitting the file generated by heat
- add code to make sure the generated file is not out of date
2018-03-06 10:13:26 -08:00
Klaudia Algiz 20b0e9cc61 Tests for Get-Process Cmdlet for Module and FileVersion parameters (#6272)
* Tests for Get-Process cmdlet.

* Tests for Get-Process run as admin.

* Skipping some Get-Process tests on Linux

* Skip test for -FileVersionInfo parameter for Linux because of the bug that cause the command to hang.

* Add checks for ErrorId in Get-Process tests

* Change one Get-Process test status to pending for MacOs
2018-03-05 11:44:54 -08:00
Travis Plunk 0e276c4e63
Make sure explorer context menu can be patched (#6302)
Make sure explorer context menu can be patched
- set keypath for explorer log context menu
2018-03-05 10:28:56 -08:00
Travis Plunk 7c7ec241a0
MSI: Cause preview builds to install Side by side with release builds (#6301)
MSI: Cause preview builds to install Side by side with release builds
- change the upgrade code if there is a preview part of the version
2018-03-05 10:27:47 -08:00
Mariah 8dc62afb5f Update CimDSCParser to fix Configuration compilation for DSC (#6225)
Update CimDSCParser to fix Configuration compilation for DSC
2018-03-02 17:01:59 -08:00
Aditya Patwardhan d91fe0074d
Add TLS1.2 workaround for code coverage script (#6299) 2018-03-02 15:41:21 -08:00
Klaudia Algiz 46613e419d Test for OsLocalDateTime property of Get-ComputerInfo. (#6253)
* Test for OsLocalDateTime property in ComputerInfo.
2018-03-02 14:35:56 -08:00
Chunqing Chen 502ee8f757 get-childitem -LiteralPath should accept 'Include' or 'Exclude' filter (#5462)
* get-childitem -LiteralPath should accept 'Include' or 'Exclude' filter
2018-03-02 14:34:53 -08:00
Dongbo Wang b30a614e5a
Enable the pending Save-Help tests in CI (#6289)
Some CI level 'Save-Help' tests were disabled in #2806 because HelpInfo URIs for powershell modules were broken (tracked by #2807). However, they were forgotten to be enabled when the URI issue was fixed. This PR reenables those tests.
2018-03-02 13:17:05 -08:00
Klaudia Algiz 56b394d33b Update docs with test guidelines with RequireSudoOnUnix tag. (#6274)
* Updating testing docs with RequireSudoOnUnix tag.
2018-03-02 10:07:20 -08:00