Commit Graph

5175 Commits

Author SHA1 Message Date
bergmeister
54e892ab06 Make MSI installer perform pre-requisite checks (#4602)
* #4458 MSI installer checks that the Windows C Runtime and VS Studio 2015 C++ redistributables are present and returns error message if not.
Includes tests to check that the Wix file contains the download URLs and those URLs are not dead.
2017-08-18 12:47:43 -07:00
James Truher [MSFT]
f6208f3c42 Add File Coverage to coverage data (#4556)
It is now possible to see the coverage based on the file and then format
the data so a report generator is not needed. You can map the files from
one location to another, so if you have a copy of the repo, but in a different
location, you can still format the output in a way so it may be studied
2017-08-17 13:39:23 -07:00
Dongbo Wang
befc5f8ae1 Make PowerShell Core enumerate COM collections (#4553)
Make PowerShell Core enumerate COM collections
2017-08-17 20:23:36 +04:00
Ilya
45d1d20500 Merge pull request #4573 from SteveL-MSFT/console-no
* Make invalid arg to -File consistent with -Command
Improve error message if ambiguous arg is passed to -File

* Update powershell console exit codes to match Unix standards

* Enable -WindowStyle to work
2017-08-17 07:34:02 +04:00
Dongbo Wang
c47ebea9ec Remove workflow related modules (#4581) 2017-08-16 17:36:05 -07:00
Dongbo Wang
580fb7baf5 Remove src\Microsoft.PowerShell.Activities (#4582) 2017-08-16 17:35:36 -07:00
Dongbo Wang
55fe5263e4 Remove src\Microsoft.PowerShell.Core.Activities (#4583) 2017-08-16 17:35:24 -07:00
Dongbo Wang
d75065c874 Remove src\Microsoft.PowerShell.Diagnostics.Activities (#4584) 2017-08-16 17:35:10 -07:00
Dongbo Wang
f04f665ac3 Remove src\Microsoft.PowerShell.GraphicalHost (#4585) 2017-08-16 17:34:55 -07:00
Dongbo Wang
e687cab952 Remove src\Microsoft.PowerShell.Management.Activities (#4586) 2017-08-16 17:34:44 -07:00
Dongbo Wang
ddef0690f2 Remove src\Microsoft.PowerShell.Security.Activities (#4587) 2017-08-16 17:34:28 -07:00
Dongbo Wang
176a22ce7f Remove src\Microsoft.PowerShell.Utility.Activities (#4588) 2017-08-16 17:34:14 -07:00
Dongbo Wang
1605a98d75 Remove src\Microsoft.PowerShell.Workflow.ServiceCore (#4589) 2017-08-16 17:34:03 -07:00
Dongbo Wang
33adef28f9 Remove src\Microsoft.WSMan.Management.Activities (#4590) 2017-08-16 17:33:29 -07:00
Dongbo Wang
b3e7fd374f Move to the official .NET Core 2.0 (#4603)
* Migrate to official .NET Core 2.0

* [Feature] Remove chmod code as the issue has been fixed in dotnet
2017-08-16 17:32:46 -07:00
James Truher [MSFT]
0d1e1919f2 Improve test coverage for CDXML cmdlet infrastructure (#4537)
Create custom CIM classes (via MOF) and CDXML cmdlets against the new CIM class
Create tests for CRUD operations for CDXML cmdlets
Coverage for Microsoft.PowerShell.Cmdletization namespace is nearly 50%
2017-08-16 16:33:53 -07:00
Dan Travison
75a294993c In Web CmdLets, Use HTML meta charset attribute value, if present (#4338)
* Use HTML meta charset attribute value, if present, when the Context-Type header does not specify it.
2017-08-16 16:25:16 -07:00
Aditya Patwardhan
c699e73ebe Fixed typo (#4600) 2017-08-16 16:07:18 -07:00
Maria Romero
ea77b57966 Update Format-Hex tests to include -TestCase parameter (#3800)
* update tests to include -TestCase paramater in It block

* Move test functions to appropriate context blocks

* combine skipTest conditions

* move skipTest to Describe block

* correct typo, change to MatchExactly
2017-08-16 15:50:33 -07:00
Steve Lee [MSFT]
26f7db720c Enable -WindowStyle to work 2017-08-16 15:04:34 -07:00
Steve Lee [MSFT]
4c22b10a38 Update powershell console exit codes to match Unix standards 2017-08-16 15:04:03 -07:00
Steve Lee [MSFT]
d9c63b7218 Make invalid arg to -File consistent with -Command
Improve error message if ambiguous arg is passed to -File
2017-08-16 15:02:43 -07:00
Steve Lee
feed7004c7 added tests for primitive types, dictionary type, and enumerable type for convertto-xml (#4503)
* added tests for primitive types, dictionary type, and enumerable type

* address PR feedback
2017-08-16 12:13:07 -07:00
Dongbo Wang
feeb8e1d25 [Feature] Clean up FullCLR related scripts/docs (#4580) 2017-08-16 12:07:45 -07:00
Travis Plunk
3a8f923e03 Remove test and docs rules as they are too broad (#4597) 2017-08-16 12:06:42 -07:00
Kirk Munro
02c4d34380 Add support for converting enums as strings in JSON (#4318)
* converting enums as strings support

* removed !CORECLR code per @SteveL-MSFT's request
2017-08-16 09:57:30 -07:00
Chunqing Chen
ede3aec52e Redefine the unicode output condition for nanoserver/IoT for more function (#4074) 2017-08-15 17:41:49 -07:00
Travis Plunk
0ca44f147d Package only from the powershell folder at the root directory (#4569) 2017-08-15 16:17:45 -07:00
Travis Plunk
498680a252 Add codeowner files (#4565) 2017-08-15 12:04:06 -07:00
Dongbo Wang
a648d4dd9c Add more tab completion tests (#4560)
* Add tab completion tests for CompletionAnalysis.cs

* Minor fixes

* Address comment

* Address one more comment
2017-08-15 09:49:48 -07:00
Paul Higinbotham
6b8d86ff60 Fixes KeyFilePath parameter for Linux systems (#4529) 2017-08-15 09:42:29 -07:00
Aditya Patwardhan
b953ab126d Opencover and Code coverage improvements (#4550) 2017-08-14 10:40:11 -07:00
Steve Lee
7b8c6e7f54 fix intermittent failures in filesystem tests (#4566) 2017-08-14 08:53:04 -07:00
Ilya
813e4a661a Fix unblock read only file (#4395)
Adds a new non-terminating error when a file is read-only
2017-08-14 08:49:38 -07:00
Dongbo Wang
e83fcca277 Reorganize some engine tests to make it clean (#4551)
1. The individual test files (.ps1) in `/test/powershell/engine` are moved to the corresponding subfolders.
2. The test asset file `test/powershell/Common/TestTypeFile.ps1xml` is moved to `test/powershell/Common/engine/Api/assets/` so that it's next to the test that is using the file.
2017-08-14 13:49:28 +04:00
Travis Plunk
7ae955fa73 Update nano server insider for new bulid (#4555) 2017-08-12 08:39:55 -07:00
Travis Plunk
b3ebdafccd Only push to NuGet for Full Build (cron) (#4517) 2017-08-11 08:50:04 -07:00
Manikyam Bavandla
0bfee35525 Add an additional acceptance test for the PowerShellGet module (#4531)
* Add an additional acceptance test for the PowerShellGet module

* Removed 'BVT' tag
2017-08-10 13:33:25 -07:00
Dongbo Wang
384a9fe3fc Clean up ShellExecute code to use the .NET Core implementation (#4523)
* Clean up ShellExecuteHelper and enable ShellExecute in NativeCommandProcessor

* Minor fix

* [Feature] Fix NativeCommandProcessor to clean up in case an exception is thron

* [Feature] Update tests

* [Feature] Address comments

* address one more comment

* Address some more comments
2017-08-10 13:32:57 -07:00
Dongbo Wang
7762d7bf49 clean up map.json related files and scripts (#4532)
* clean up map.json related files and scripts

* Update .spelling
2017-08-10 13:32:19 -07:00
Steve Lee
eea3885242 Enable WSManCredSSP cmdlets (#4336)
* [Feature]
Fixed error message using a null resourcemanager
With most recent CoreFx supporting STA, removed special CoreClr code paths
Added test coverage
Removed some dead commented out code that was never used

* [Feature]
merged tests to one file, use runas to have relevant tests run as non-elevated

* [Feature]
Get-CredSSP returns text so only run that test if current culture is en-US

* [Feature] Update test to fix code exclusion

* [Feature] Fix Skipping on test cases that already had a Skip value
2017-08-10 13:31:54 -07:00
Mike Richmond
1a8563336a [Feature] Mark failing tests as pending to unblock the nightly test pass (#4538) 2017-08-09 15:12:59 -07:00
Travis Plunk
8bf386e25e Add ability to package non-release packages (#4509) 2017-08-09 14:36:23 -07:00
James Truher [MSFT]
eccfd691ba Improve code coverage for Get-Item cmdlet (#4385) 2017-08-09 14:15:17 -07:00
Dongbo Wang
5d53bd373a Fix the hang issue in Travis CI build triggered by the [Feature] tag (#4536)
* Fix the hang issue in Travis CI build triggered by the [Feature] tag

* [Feature] Update badge only in daily build

* [Feature] Use the term 'daily build'
2017-08-09 14:01:52 -07:00
Ilya
47a5a4d8ba Clean up '#if CORE' in PSUtils.cs (#4453)
* Cleanup '#if CORE' in PSUtils.cs

* Fix IsRunningOnProcessorArchitectureARM
2017-08-09 09:42:42 -07:00
Mike Richmond
515a999e1c Porting Enable-PSRemoting and its Tests (#2671)
Fixes #1193 for most scenarios. The remaining scenario to be addressed is the Nano Server bring-up scenario. To continue supporting that scenario, I left the Install-PowerShellRemoting script in place.

This change 
1. Ports Enable-PSRemoting and Disable-PSRemoting to PowerShell Core
2. Adds side-by-side PowerShell Core remoting support to the PSSessionConfiguration cmdlets and PSRemoting cmdlets.
3. Ports PSSessionConfiguration tests

This change also introduces a behavioral difference. The PSRemoting and PSSessionConfiguration cmdlets are now context-sensitive and only work for endpoints that match the PowerShell type. For example, Get-PSSessionConfiguration, when running in PowerShell Core, will only return PowerShell Core WinRM endpoints. It will only modify PowerShell Core WinRM endpoints and cannot be used to configure Windows PowerShell endpoints.
2017-08-08 09:36:22 -07:00
Ilya
e39966996e Clean up '#if CORE' in MshHostTraceListener.cs (#4402) 2017-08-08 09:33:39 -07:00
Travis Plunk
df379f29c7 Update brew before installing powershell in installpsh-osx.sh (#4506) 2017-08-08 09:22:02 -07:00
Ilya
649ff285ee Clean up '#if CORE' in ProcessCodeMethods.cs and 'ClrFacade.GetSafeProcessHandle' (#4428) 2017-08-08 09:20:57 -07:00