Commit Graph
1533 Commits
Author SHA1 Message Date
Travis Plunk 3d0f9212fc Merged PR 9945: update dependencies
update dependencies
2019-09-10 21:50:37 +00:00
Aditya Patwardhan ce3e42ee4d Merged PR 9087: Update runtime framework version and PowerShellSDK version for test
Update runtime framework version and PowerShellSDK version for test
2019-07-09 20:41:13 +00:00
Paul Higinbotham 121578f17d Merged PR 8968: Disable Enter-PSHostProcess cmdlet when system in lock down mode
Enter-PSHostProcess on a locked down (WDAC enforced) machine allows any admin to connect to any another local hosted PowerShell process and execute commands as that user.  This amounts to privilege escalation on the policy locked down machine and something we want to prevent.

Fix is to check for system lock down and disable Enter-PSHostProcess cmdlet with an error message.
2019-07-08 18:10:14 +00:00
Travis Plunk b545193892 Merged PR 8430: Disable debugger in System Lock down mode 2019-05-16 20:21:46 +00:00
Aditya Patwardhan b939b3b759 Merged PR 8402: Port changes for release automation to 6.1.4 2019-05-15 17:03:31 +00:00
Aditya Patwardhan 5199e4d31b Merged PR 8374: Update package version in hosting test
Update package version in hosting test
2019-05-14 18:17:48 +00:00
Travis Plunk a060e94a5b Bump to dotnet 2.1.11 release 2019-05-14 11:11:12 -07:00
Aditya Patwardhan 5f11b65c2e Merged PR 8364: Remove update build table logic from release build
Remove update build table logic from release build
2019-05-14 17:22:12 +00:00
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