Commit graph

580 commits

Author SHA1 Message Date
James Truher
154cd992b4 make the language more clear for the PSStandaloneMonitorRunspaceInfo test 2016-09-14 13:51:10 -07:00
James Truher
97c4bbe952 don't use git to determine where the common directory is
it's not portable for our lab environment, where git may not exist
2016-09-14 13:51:10 -07:00
James Truher
f00f82d85c fix up Get-Runspace test to be sure it has a clean environment before starting 2016-09-14 13:51:10 -07:00
James Truher
4bba7c8e62 adding convert-path tests 2016-09-14 13:51:10 -07:00
James Truher
4ef068c3d6 Rewrite to use $TESTDRIVE which does auto cleanup 2016-09-14 13:51:10 -07:00
James Truher
51f0a29a48 Start adding runspace debugging API tests 2016-09-14 13:51:10 -07:00
James Truher
4d046379e0 Add Get-Runspace tests 2016-09-14 13:51:10 -07:00
James Truher
3c9d8a82aa changing Package tests tags to Feature, as they go off box and should not be CI 2016-09-14 13:51:10 -07:00
James Truher
4ca0d68c37 additional tests to close gaps
Move-Item was identical to Rename-Item
2016-09-14 13:51:10 -07:00
Sergei Vorobev
81a598f242 Merge pull request #2089 from 0xfeeddeadbeef/master
Use prefixed QNames in XPath expressions used by all implementations of ICmdletProviderSupportsHelp interface
2016-09-13 15:14:46 -07:00
Paul Higinbotham
79ddafcc85 Fix for Linux remote script debugging hang (#2213)
* Fix for Linux remote debugging hang bug.

* Removing dependency in PSReadLine on new engine helper API since it needs to be compatible with V3.
2016-09-13 11:31:48 -07:00
George Chakhidze
db330207dd Make sure we log that tests for Cert:\ and WSMan:\ provider-specific help are skipped 2016-09-13 10:26:53 +04:00
George Chakhidze
e8190a569b Use prefixed QNames in XPath expressions used by all implementations of ICmdletProviderSupportsHelp interface
Also includes these bugfixes:
  - WSManConfigProvider.GetHelpMaml: Tried to load XML from
    MemoryStream that was created from file name string. Use XmlReader
    instead.
  - WSManConfigProvider.GetHelpMaml: Use Path.Combine instead of
    platform-specific directory separator character.
  - WSManConfigProvider.GetHelpMaml: CmdletHelpPath MAML XML element
    attribute `ID` name casing seems inconsistent with other help.xml
    files. XPath 1.0 does not support case-insensitive expressions,
    use both `id` and `ID` in query.
  - Add Pester test to verify that Get-Help shows provider-specific help.

Fixes #2088
2016-09-13 09:40:14 +04:00
Yanbing
fd4552bfb8 Added tests for hashtabletoPSCustomObjectConversion, OutErrorVairable tests (#2160) 2016-09-12 18:29:55 -07:00
Yanbing
e1bfe97d87 Add tests to language part 1 (#2086) 2016-09-12 10:43:53 -07:00
Sergei Vorobev
ea5b6720cd Merge pull request #2092 from bingbing8/Add-Tests-to-language-part-2
Add tests to language part 2
2016-09-10 10:07:35 -07:00
Yanbing Wang
2530207d2a move help tests to feature. It generate two much log 2016-09-07 17:34:38 -07:00
Yanbing Wang
c5b90ca656 fixed indentation 2016-09-02 13:28:20 -07:00
Yanbing Wang
11e279d688 Update based on PR feedback 2016-09-02 11:07:18 -07:00
Dongbo Wang
58a2ba730d Merge pull request #2046 from xiaoyinl/use-https-links
Use HTTPS links for go.microsoft.com
2016-09-01 17:23:09 -07:00
Jason Shirk
bc8d537884 Merge pull request #2067 from JamesWTruher/jameswtruher/testgapfile-002
Fill more gaps in cmdlet test coverage
2016-09-01 11:16:32 -07:00
Yanbing Wang
b488d7eb35 Update the path to LanguageTestSupport.psm1 -force 2016-09-01 10:31:10 -07:00
Yanbing Wang
c06becaadd update map.json 2016-08-31 16:00:06 -07:00
Sergei Vorobev
1638bdf3e6 Merge pull request #2063 from jsoref/spelling-test
spelling fixes: tests
2016-08-31 14:13:49 -07:00
Jason Shirk
cf18010ad5 Fix multi-line input w/ redirected stdin (#2090)
The input loop reading from stdin did not handle multi-line input correctly
because it was adding a newline character where none was expected.

The fix was to not include the final newline character to accept input,
just like Console.ReadLine or PSReadline would.
2016-08-31 13:52:46 -07:00
Dave Wyatt
22aac12c3e Add support for multiple paths to Join-Path
Multiple child paths can be specified via the new positional parameter -AdditionalChildPath.
2016-08-31 13:48:31 -07:00
Travis Plunk
a814e6660c Mark failing test as pending 2016-08-31 12:17:07 -07:00
James Truher
4dc09f504c change throw message 2016-08-30 16:52:00 -07:00
James Truher
2824e136cb update exception messages 2016-08-30 16:15:10 -07:00
James Truher
3ceca01b64 address some review feedback 2016-08-30 16:15:10 -07:00
James Truher
f4ed351f86 fix typos in test descriptions 2016-08-30 16:15:10 -07:00
James Truher
6aac4976fb Add simple runspace debugging tests 2016-08-30 16:15:10 -07:00
James Truher
9c99bdbef9 Add new debugging tests which are based on existing earlier non-Pester tests 2016-08-30 16:15:10 -07:00
James Truher
d3a177d6ae Add simple securestring conversion cmdlet tests 2016-08-30 16:15:10 -07:00
James Truher
52ba25be69 Add simple Enable-PSBreakpoint and Disable-PSBreakpoint cmdlet tests 2016-08-30 16:15:10 -07:00
James Truher
763fe2bdbf fix missing ";" in Streams.Clear 2016-08-30 16:15:10 -07:00
James Truher
f6ae238641 quiet the start-process tests by redirecting all output 2016-08-30 16:15:10 -07:00
James Truher
01c495b5e6 Change Import-PowerShellDataFile tag to CI and simplify tests 2016-08-30 16:15:10 -07:00
James Truher
c610ea7941 Add Set-Date test 2016-08-30 16:15:10 -07:00
James Truher
e639240ecb Add set-Date test
this one is a bit tricky, unless you're elevated you can't set the date
however, if you are not elevated you should get an error. This file
does one or the other based on whether you're elevated
2016-08-30 16:15:10 -07:00
James Truher
feae8e4b2d add read-host tests 2016-08-30 16:15:10 -07:00
Yanbing Wang
08d65596cd removed the first 3 lines in i18n.Tests.ps1 2016-08-30 12:17:27 -07:00
Yanbing Wang
04f225a4a1 Update i18n.Testsps1 to use PSDefaultParameterValues 2016-08-29 17:54:20 -07:00
Jumping Yang[Wicresoft]
d59b322032 Add BooleanParameterDCR and Eventing Pester Test (#2031)
* Add BooleanParameterDCR and Eventing Pester Test

* Correct describe for Eventing Pester Test

* Add ProviderIntrinsics and Serialization Pester Test
2016-08-29 13:01:03 -04:00
Yanbing Wang
bbbd6a9dfc Change some context to it 2016-08-26 19:37:51 -07:00
Manikyam Bavandla
1e13d7897a Update PowerShellGet to install the modules and scripts to proper locations in PowerShell Core on Windows (#2078)
* 1. Update PowerShellGet to install the modules and scripts to proper locations in PowerShell Core on Windows. 2. Added few CI tests for PowerShellGet

* Handling the scenario of FullCLR-based PowerShell on Windows.
2016-08-26 16:58:22 -07:00
Yanbing Wang
312ec5ffd0 Add Tests for parsing, international, and script help. 2016-08-26 14:49:44 -07:00
Josh Soref
2badb244de spelling fixes: test 2016-08-25 17:49:32 +00:00
xiaoyinl
f538eeb416 Use HTTPS links for go.microsoft.com
I replace all occurrences of http://go.microsoft.com with https://go.microsoft.com in text files.
2016-08-23 21:21:31 -04:00
Mike Richmond
18f3589d68 Fixing the path to the user's JSON configuration file 2016-08-23 15:45:49 -07:00