Commit Graph
1525 Commits
Author SHA1 Message Date
Andrew 0bcc0d710b Updating test gallery URL in PackageManagement tests (#7879) 2019-02-12 12:39:56 -08:00
Paul Higinbotham 61ed206e1e Merged PR 6561: Add security mitigations for 6.1.3 release 2019-02-12 20:36:33 +00:00
Travis Plunk f40eb9878f Merged PR 7004: Update DotNet SDK and Runtime version
Update DotNet SDK and Runtime version
Also update package versions
2019-02-12 20:35:02 +00:00
Travis Plunk 34f0ddff0a Get PowerShellGet tests working (#7831) 2019-02-12 12:01:40 -08:00
Aditya Patwardhan 2a0d6c8514 Change the feed URL to feed name due to changes in AzDevOps (#8664)
# Conflicts:
#	tools/releaseBuild/azureDevOps/AzArtifactFeed/PSGalleryToAzArtifacts.yml
2019-02-01 12:59:45 -08:00
Aditya Patwardhan 813a98e028 Merged PR 6438: Update version for README, alpine docker file and hosting tests
Update version for README, alpine docker file and hosting tests
2019-01-09 23:27:20 +00:00
Aditya Patwardhan 4162dfb100 Merged PR 6421: Update dependency versions
Update dependency versions
2019-01-08 20:00:58 +00:00
Jim Truher e2c9125d63 Merged PR 6310: Fix test failures
Fix test failures on release build
2019-01-08 19:27:31 +00:00
Travis Plunk 68557bce6a Change API to match cmdlet which is more reliable in AzDevOpsPipelines Windows (#8003)
Change API to match cmdlet which is more reliable in AzDevOpsPipelines Windows (#8003)

# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1
2018-11-05 23:30:02 +00:00
Travis Plunk b26805d365 Merged PR 5614: Fix conflict with Get-AdlStoreChildItem from az module in tab completion tests (#8167)
Fix conflict with `Get-AdlStoreChildItem` from `az` module in tab completion tests (#8167)
2018-11-05 20:27:17 +00:00
Travis Plunk f8f3774dfc Merged PR 5607: Fix issue logging null character in ScriptBlock logging
Fix issue logging null character in ScriptBlock logging
2018-11-01 18:12:38 +00:00
Paul Higinbotham 42ef309d1f Merged PR 5233: Consolidation of all Windows PowerShell work ported to 6.1
This PR combines all Windows PowerShell code changes needed for 6.1.

*  Disallow ps1 files from being imported as modules in CL mode
*  JEA loop back change to prevent code running in local session instead of remote session
*  Debugger does not run commands with Internal origin when in CL mode
*  Add support for new AMSI codes
*  Unhandled exception fix
*  Change to use AMSI buffer API
*  Module vulnerabilities under CL mode
*  Untrusted input tracking work
*  Configuration keyword
*  PSRP protocol version check for reconstruct reconnect
*  Sharing initial session state over multiple runspace pool runspaces
*  Restricted remote session in UMCI
*  Applocker detection collision
*  Help command exposing functions

Cherry picked from !5232
2018-11-01 18:04:29 +00:00
Travis Plunk 5320827662 Merged PR 5209: Disable package major upgrade tests for release branch
Disable package major upgrade tests for release branch
2018-10-03 21:17:39 +00:00
Ilya f6138ef55e Update to .NET Core 2.1.5 with SDK 2.1.403 (#7936)
# Conflicts:
#	PowerShell.Common.props
#	appveyor.yml
#	assets/files.wxs
#	global.json
#	test/Test.Common.props
#	test/tools/WebListener/WebListener.csproj
2018-10-03 13:39:41 -07:00
Aditya Patwardhan 5a587b551e Update version for powershell release 6.1.0 (#7751) 2018-09-10 13:20:23 -07:00
Travis Plunk 433a263a17 Add daily build non-windows platforms (#7683)
Add daily build non-windows platforms
  - Also, make the [Feature] tag work in VSTS for non-windows
  - Also, add a way to force feature tests to run
  - Also, fix an issue where `-workingdirectory` didn't work when running async
2018-09-06 18:00:46 -07:00
Sergey Vasin 3e06138692 Fix module specification hashtable in ModuleSpecification.Tests.ps1 (#7663) 2018-09-05 14:06:10 -07:00
Travis Plunk 137d5de82b Add tests to report when package references are out of date (#7661)
Add tests to report when package references are out of date
  - Also, update the packaging script to generate updated `files.wxs`
2018-09-05 14:06:09 -07:00
Ilya 959ce303f0 Update to latest package references, runtime framework, and SDK (#7646)
* Move to .Net Core SDK 2.1.401 and runtime 2.1.3

* Update package references
2018-08-31 16:55:43 -07:00
Christoph Bergmeister [MVP] e4cb8e1eb5 Update docs about .NET Core version 2.0 to be about version 2.x (#7467) 2018-08-31 16:55:43 -07:00
James Truher [MSFT] 087de5b5f1 Change logic for downloading zip files based on job id (#7653) 2018-08-31 16:55:42 -07:00
Patrick Meinecke 2dfb4c54eb Enable indexing operations on objects that implement ITuple (#7633)
This change enables index operations on objects that implement `ITuple` and other interfaces that have `DefaultMemberAttribute` declared, including slicing and negative indexing.
2018-08-31 16:55:42 -07:00
Yuriy Kushnir d8bb2e9028 Use non-virtual call to invoke 'family or assembly' methods on base class from PowerShell class (#7622) (#7624) 2018-08-31 16:55:42 -07:00
zhenggu 28c59a2a57 Fix Set-Service -Status Stopped to stop services with dependencies (#5525) 2018-08-28 13:44:38 -07:00
Staffan Gustafsson 1bfe96d3c4 Add Duration property to HistoryInfo (#5208)
* Remove regions in HistoryInfo class
* Auto properties refactoring in HistoryInfo
* Adding Duration property to HistoryInfo
* Rename ExecutionTime => Duration
2018-08-28 08:03:07 +05:00
Aditya Patwardhan aec954e3ed Fix null reference when markdown content is empty (#7463) 2018-08-27 11:58:19 +05:00
Dongbo Wang 86469bda33 Handle operations with ByRef-like types gracefully in PowerShell (#7533)
ByRef-like types are supposed to be used on stack only, so we need to fail gracefully when accessing properties, calling methods, or creating objects related to ByRef-like types.
2018-08-26 12:50:58 -07:00
Travis Plunk bf0787f9a0 Make -settingfile work for scriptblock logging on windows (#7631)
Make `-settingfile` work for scriptblock logging on windows
  - Move EarlyParse to the first thing in the ManagedEntrance so that we don't cache the settings before we parse the settings file.
  - Added a test case to prevent regression
    - I'm working on more test cases.  Therefore, I used the TestCases parameter.
  - Changed the macOS tests back to CI as I think they are stable enough now.
2018-08-26 11:03:28 -07:00
Travis Plunk 6c454c6ea8 Update test which assumes all previews have the name preview in the version. (#7625) 2018-08-23 17:19:45 -07:00
Ilya 75c70a2a7c Update pester syntax in Set-Location test (#7615) 2018-08-23 15:15:03 -07:00
Dan Travison 23832e5e95 Update 'SSHConnectionInfo Class Tests' $skipTest expression to use collection semantics instead of relying on $null (which causes a type cast exception). (#7610) 2018-08-23 15:10:39 -07:00
Travis Plunk d6817a42e4 Add Linux ScriptBlock logging test (#7599) 2018-08-22 16:34:03 -07:00
Bruce Payette 4943bbfd9e Add LocationChangedAction handler and tests to support the Windows Compat module (#7552)
Add LocationChangedAction handler and tests to support the Windows Compat module.
2018-08-22 12:08:03 -07:00
Travis Plunk 97d2e10c22 Merge release v6.1.0 rc.1 into master (#7608) 2018-08-22 12:06:00 -07:00
Travis Plunk 849f6fb147 Add test for scriptblock logging for macOS (#7586) 2018-08-21 13:20:54 -07:00
Aditya Patwardhan cbbc8192c4 Merged PR 4656: Add back the powershell-core source for hosting tests 2018-08-21 17:24:06 +00:00
Travis Plunk 40532d9a2e Add VSTS CI for Windows (#7536)
- Add VSTS CI for Windows
    - Disable `Access-denied test for Get-Item C:\windows\appcompat\Programs\Install -ErrorAction Stop`, because the path does not always exist
        - https://github.com/PowerShell/PowerShell/issues/7553
    - Disable `Should give .sys file if the fullpath is specified with hidden and force parameter`, because pagefile.sys doesn't always exist and other files don't meet test's requirement.
        - https://github.com/PowerShell/PowerShell/issues/7554
    - Disable some `Test-Connection` tests for same reasons they failed on VSTS Linux
        - https://github.com/PowerShell/PowerShell/issues/7555
    - Disable `Test-FileCatalog should pass when catalog is in the same folder as files being tested`, because the CmdLet does not work in that scenario
         - Also, give details needed to investigate when the test fails
         - https://github.com/PowerShell/PowerShell/issues/7556
    - Update `appveyor.psm1` to work with VSTS
    - Update `HelpersRemoting.psm1` `New-RemoteSession` to work for CimSession (discovered an issue during the investigation)
    - Update `Test wildcard with drive relative directory path` to work when there are multiple drives
         - Disable on non-windows machines since the test is assuming drive letters
    - Update `New-CimSession` Tests to requireAdmin
         - Also, make sure session name is a string
    - Add functions to save and restore psoptions
    - update `.gitatttributes` so files clone like they do on appveyor
2018-08-17 22:06:51 -07:00
Aditya Patwardhan 96b2c83c59 Update reference to use packages from NuGet.org (#7525)
Update psrp and libpsl reference to Microsoft.PowerShell.Native
Keep the reference to powershell.myget.org in nuget.config for PSDesiredStateConfiguration and PowerShellHelpFiles
Update hosting tests
Update hosting.tests.csproj in preparation on next release with version 6.1.0-rc.1
Update Microsoft.Management.Infrastructure to version 1.0.0
2018-08-16 15:56:15 -07:00
Travis Plunk a746fd29ec Revert "Throw error on entering non-existing type in Get-FormatData (#7434)" (#7546)
Revert "Throw error on entering non-existing type in Get-FormatData (#7434)
This reverts commit b754cd80d5.

Per this comment https://github.com/PowerShell/PowerShell/pull/7434#issuecomment-413696259
2018-08-16 15:46:12 -07:00
Travis Plunk 0a1a47e8b0 Make sure we do not upload artifacts during a pull request (#7535) 2018-08-16 13:11:24 -07:00
Paul Higinbotham a21366710c Updated thread job to version 1.1.2 (#7522)
Added fix to remove unneeded validation attribute for Arguments parameter, and made tests work with strict mode.
2018-08-14 17:09:48 -07:00
Travis Plunk 965552873c Add Linux VSTS CI (#7527)
Update Start-PSPester and Start-PSxUnit to upload test results when running in VSTS
Disable tests which require non-root using when running as root
remove verifications in Test-Connection tests which verify buggy behavior
Skip tests which don't behave correctly in VSTS (due to running in a container?)
- Test-Connection - #7528
- Set-Date - #7529
2018-08-14 16:23:50 -07:00
Steve Lee 769b02ab98 Save modules to un-versioned folder to enable servicing (#7518)
Remove code from build.psm1 that save the modules to a versioned folder. For servicing reasons after release it is preferred and easier to not have the versioned folder so that we can directly replace modules that need to be serviced (MSI specifically makes it difficult to service a module if the folder path changes).
2018-08-14 10:15:05 -07:00
Travis Plunk b3d0913d74 Add CI definition for VSTS for macOS (#7490)
Add CI definition for VSTS for macOS
  - Add VSTS YAML for mac
  - Add a function to upload log files during a test on VSTS
2018-08-10 15:13:31 -07:00
Staffan Gustafsson 3aaa1816d1 Adding 'LanguagePrimitives.TryCompare' to provide faster comparisons (#7438) 2018-08-10 10:20:27 -07:00
Syed Faraaz Ahmad b754cd80d5 Throw error on entering non-existing type in Get-FormatData (#7434)
Write non-terminating error when `Get-FormatData` doesn't found a type definition for the provided type,
2018-08-10 09:34:02 +05:00
Staffan Gustafsson 618d9f31a0 Add '-SkipIndex' parameter to 'Select-Object' (#7483) 2018-08-09 11:59:54 -07:00
Dongbo Wang ca64bfb3e3 Update the 'HelpUri' for 'Get-ExperimentalFeature' (#7466) 2018-08-08 12:38:07 -07:00
Travis Plunk d29349bb4d Default to DefaultConsoleWidth when DotNet says WindowWidth is 0 (#7465)
Default to DefaultConsoleWidth when DotNet says WindowWidth is 0

This resolves an issue in an environment like VSTS when pwsh is spawned and DotNet is not able to determine the Console Width.
* Port changes from #6883 by @kalgiz
2018-08-07 15:27:42 -07:00
Travis Plunk 1523c218a6 Make sure that SettingFile arg is parsed before we load the settings (#7449)
Make sure that SettingFile arg is parsed before we load the settings

- Add ability to parse some setting before console host is created
- Trigger the Parse before the console host is created
- disable snapin loading from loading setting before this point
- re-enable mac logging tests.

Also, fix the following Travis-ci issues:

- make sure the Linux and macOS caches are separate to reduce the size
- update the macOS image to the closest image as used by the official build system (equivalent to VSTS hosted mac builds)
2018-08-07 15:01:31 -07:00