Dongbo Wang
5fbde6eb40
Fix bytewise operators to work on enum types with 'System.Byte' as the underlying type ( #2411 )
2016-10-03 15:24:39 -07:00
Andrew Schwartzmeyer
f62dd4bf54
Allow Start-PSBuild -Output to take absolute path ( #2398 )
...
There was no point to using Join-Path here,
but it made it impossible to specify absolute paths
(or any path outside of the PowerShell repo).
2016-10-03 11:04:40 -07:00
Chris Ubben
9885917481
Adding test coverage for Variable provider
2016-10-03 10:39:32 -07:00
Aditya Patwardhan
3700d108b3
Start process test ( #2397 )
...
Mark test as pending to unblock daily builds
2016-09-30 16:33:42 -07:00
Aditya Patwardhan
877c193af0
Add RequireAdminOnWindows tag for install-package tests ( #2390 )
...
Add the tag RequireAdminOnWindows tags so that these tests do not fail on
daily builds.
2016-09-29 18:13:33 -07:00
Mike Richmond
374e1d1b21
Merge pull request #2280 from vors/admin-tests
...
Separate tests on Windows CI to Admin-Required and Non-Admin-Required
2016-09-29 16:28:29 -07:00
Aditya Patwardhan
f1270cdc28
Add PS_DAILY_BUILD variable check in Test-DailyBuild ( #2386 )
...
The PS_DAILY_BUILD variable is set in the Appveyor environment in the
PowerShell [Daily] project. When this is set we want to have full daily
build.
2016-09-29 16:26:34 -07:00
James Truher [MSFT]
24f9dea287
Add tests for queries against userdata ( #2388 )
...
add a custom evtx file for the userdata tests to use
2016-09-29 16:23:12 -07:00
Sergei Vorobev
9cc905dea4
Add verbose comment about the execution policy test
...
'-Scope LocalMachine is Settable, but overridden'
2016-09-29 16:06:42 -07:00
Aditya Patwardhan
561824c306
Change fwlink to use http instead of https.
...
An issue was filed for corefx team for httpclient.getasync with https and
redirects. https://github.com/dotnet/corefx/issues/12171
2016-09-29 12:39:56 -07:00
Aditya Patwardhan
f31d4a5ac2
Add archive with test content to AppVeyor artifacts for daily builds.
...
The change adds Compress-TestContent cmdlet to build.psm1 so that it can
compress the powershell test content. This is done only for daily builds.
2016-09-29 12:38:12 -07:00
Sergei Vorobev
735bcca4d0
Allow ExecutionPolicy tests to throw specific type of error
...
Split LocalMachine test case into two separate tests:
- One without overriden policy (throws exception)
- One with overriden policy
2016-09-29 12:29:27 -07:00
Sergei Vorobev
a1ee6d840d
Make ExecutionPolicy.Tests.ps1 admin-aware
2016-09-29 12:29:27 -07:00
Sergei Vorobev
06d274995e
Make LocalGroup tests admin-aware
2016-09-29 12:29:27 -07:00
Sergei Vorobev
5fe1c431fa
Make Get-PesterTag allow only one scope tag (CI, Feature, Priority)
2016-09-29 12:29:27 -07:00
Sergei Vorobev
56489b17bc
Make Registry.Tests.ps1 admin-aware
2016-09-29 12:29:27 -07:00
Sergei Vorobev
ed36f037ae
Fix appveyor test runner logic for Admin and non-Admin tests
2016-09-29 12:29:27 -07:00
Sergei Vorobev
917bf5abc9
Fix bug about Admin tests defaults Start-PSPester in build.psm1
2016-09-29 12:29:27 -07:00
Sergei Vorobev
93495a4f54
Timezone tests require Admin on Windows
2016-09-29 12:29:27 -07:00
Sergei Vorobev
911c7d9976
Replace Transcription by *> redirection
...
due to the issue https://github.com/PowerShell/PowerShell/issues/2334
2016-09-29 12:29:27 -07:00
Sergei Vorobev
d1d82d03b4
Make Invoke-AppVeyorTest run elevated and non-elevated tests separately
...
- Add RequireAdminOnWindows to the list of blessed tags
- Fix a bug in Get-PesterTag where we accepted 'Slow' as a proper priority
- Fix missed comma in Start-PSPester parameters
- Add documentation about new Pester tag
- Fix finishing logic for Start-PSPester -Unelevate
2016-09-29 12:29:27 -07:00
Sergei Vorobev
339c7d80e4
Add Start-PSPester -Unelevated
...
That will enable running tests without Admin in CI
2016-09-29 12:29:27 -07:00
Sergei Vorobev
50b04212c6
Restructure PowerShellGet.Tests.ps1 to enable 'RequireAdminOnWindows' tagging
2016-09-29 12:29:27 -07:00
Sergei Vorobev
dcc10bc771
Change install scope for Install-PackageProvider.Tests.ps1
...
This helps avoid problem when run as non-elevated user.
2016-09-29 12:29:27 -07:00
Sergei Vorobev
fdc69f0c3f
Add 'RequireAdminOnWindows' tag to some tests suites
2016-09-29 12:29:27 -07:00
Dongbo Wang
124a59b8a8
Merge pull request #2363 from lzybkr/maxvars
...
Remove most Maximum* capacity variables
2016-09-28 17:28:16 -07:00
Jason Shirk (POWERSHELL)
39db1ec402
Add capacity test for initialsessionstate
2016-09-28 16:54:31 -07:00
Mike Richmond
0c9abbc9a4
Merge pull request #2379 from JamesWTruher/jameswtruher/moveEngineCoreTest
...
Move tests to more appropriate places now that we have the directory structure defined
2016-09-28 15:59:40 -07:00
Jason Shirk (POWERSHELL)
f252683e90
Remove SessionStateOverflowException
...
This exception is no longer used by PowerShell, so it has been removed.
It is a public api, so removing it risks breaking somebody. Nobody has any reason
to catch or throw this exception, so it seems safe to remove, but I decided to
be conservative and keep it for Windows PowerShell. It seems safe enough to remove
in Nano.
2016-09-28 15:47:08 -07:00
Dongbo Wang
d32bf23708
Merge pull request #2378 from JamesWTruher/jameswtruher/addwineventtest
...
Add additional tests for Get-WinEvent cmdlet
2016-09-28 15:35:26 -07:00
Manikyam Bavandla MSFT
c69520c261
Updating the ModuleVersion to 1.1.0.0
2016-09-28 15:33:05 -07:00
Manikyam Bavandla MSFT
16b86bfb89
Merging the changes from Windows Source Depot.
...
Change details:
- Add metadata to the PowerShellGet.psd1
- Fixed special chars in PSGet.Resource.psd1
- Catalog signing verification changes from Windows Source Depot
2016-09-28 15:33:05 -07:00
James Truher
a8aeb55edb
Move tests to more appropriate places now that we have the directory structure defined
2016-09-28 14:57:50 -07:00
JamesWTruher
bfac47f3f1
Add return in BeforeAll to avoid running get-winevent cmdlet on non-Windows platforms
2016-09-28 14:29:47 -07:00
JamesWTruher
f1c854176d
Add additional tests for get-winevent for the xpath, xml and hashtable filters
...
Still left to do is handling the non-System queries (such as UserData)
2016-09-28 14:23:20 -07:00
JamesWTruher
4809414af5
Add new tests for Get-WinEvent
2016-09-28 12:21:56 -07:00
Sergei Vorobev
f45c6f2242
Merge pull request #2375 from mirichmo/mirichmo/validating-properties-reads
...
Validating JSON Properties File Reads Prior to Processing
2016-09-28 11:31:17 -07:00
Mike Richmond
adf6250175
Moving ExecutionPolicy tests to Microsoft.PowerShell.Security and refactoring test skipping for Windows.
2016-09-28 10:55:50 -07:00
Mike Richmond
9f9add03f6
Fixing PowerShellProperties.json reads to do a basic validity check prior to processing the JSON
2016-09-28 10:55:48 -07:00
Dongbo Wang
18f732f1e0
Improve Start-PSPackage to support zip package, downlevel packages for win-plat. Fix the version issue and package name for creating msi and appx ( #2361 )
...
* Improve Start-PSPackage to support zip package, downlevel packages for win-plat. Fix the version issue and package name for creating msi and appx
* Address comments about New-PSOptions
* Update Start-PSPackage to not show the warning from New-PSOptions
2016-09-28 10:47:16 -07:00
Mike Richmond
20d4374fa8
Fixing how the LocalAcccounts tests are skipped in Pester
2016-09-27 16:30:25 -07:00
Charu Bassi
5cbf1b43de
Fix 'Get-ChildItem -Hidden' to work on system hidden files like c:\hiberfil.sys c:\pagefile.sys and c:\swapfile.sys
2016-09-27 16:13:03 -07:00
James Truher [MSFT]
379cc52b95
update testing guidelines
...
* correct links in test-guidelines.md (issue #1665 )
added specific links for PesterDoAndDont and WritingPesterTests
added new section in WritingPesterTests.md on bulk skipping tests
* update test directories to include a directory for remoting tests
* fix lines in document to use semantic line breaks
also remove trailing spaces after "."
2016-09-27 12:55:47 -07:00
Dongbo Wang
d04460657d
Merge pull request #2336 from lzybkr/stdin_fixes
...
Fix some issues with `powershell -Command -`
2016-09-27 11:20:43 -07:00
Aditya Patwardhan
9d1d927ecd
Fix CategoryInfo.Activity so that it has the specified value
...
CategoryInfo.Activity of Write-Error does not honor the value for
'activity' but uses the hard-coded string 'write-error'. The change sets
the value if specified by Write-Error cmdlet or set 'write-error'.
2016-09-27 09:50:43 -07:00
Dongbo Wang
1ea555810c
Fix Get-Credential to not prompt twice when no parameter is specified
2016-09-27 09:49:28 -07:00
Jason Shirk (POWERSHELL)
c7951e13c0
Remove most Maximum* capacity variables
...
MaximumErrorCount is fixed at 256 (we may want to consider an environment variable to make this bigger)
MaximumAliasCount, MaximumDriveCount, MaximumFunctionCount, and MaximumVariableCount have been removed.
2016-09-26 15:16:35 -07:00
Andrew Schwartzmeyer
f4b565161e
Remove bundler v1.13.1
...
The new version of bundler is buggy and causing installation of fpm to
fail, which causes builds to fail.
2016-09-26 14:51:54 -07:00
Aditya Patwardhan
a27b2303bb
Add test coverage for Command discovery and requires ( #2285 )
2016-09-26 13:36:04 -07:00
Dongbo Wang
5d2f52e4e9
Fix indentation in the test
2016-09-26 11:56:12 -07:00