PowerShell/test/powershell/engine/Module
Robert Holt c94fc31f97 Enforce the 'CompatiblePSEditions' check for modules from the legacy 'System32' module path (#7183)
- Add `%WINDIR%\System32\WindowsPowerShell\v1.0\Modules` (Windows PowerShell $PSHOME) to the end of the default PSCore 6 module path (i.e. the module path as initially set at startup).
- Cause an error to be thrown by `Import-Module` when a module with `CompatiblePSEditions` not containing `"Core"` is being loaded from the 'System32' module path.
- Suppress output of modules listed by `Get-Module -ListAvailable` from Windows PowerShell $PSHOME when `CompatiblePSEditions` does not contain `"Core"`.
- Introduce the `-SkipCompatibilityCheck` switch parameter on both `Import-Module` and `Get-Module` to respectively allow importing incompatible modules and listing incompatible modules.
- Adds a  `PSEdition` column to the `PSModuleInfo` table view format.
- Ensures that completions are not given for incompatible modules on the System32 module path.
2018-07-16 16:58:40 -07:00
..
assets/testmodulerunspace Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
ModulePath.Tests.ps1 Enforce the 'CompatiblePSEditions' check for modules from the legacy 'System32' module path (#7183) 2018-07-16 16:58:40 -07:00
ModuleSpecification.Tests.ps1 Add tests for module specifications (#7140) 2018-06-27 12:11:32 -07:00
NewModuleManifest.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00
SubmodulePathInManifest.Tests.ps1 Use new Pester syntax: -Parameter for Pester tests in engine. (#6298) 2018-03-14 12:13:32 -07:00
TestModuleManifest.Tests.ps1 Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests (#6682) 2018-05-17 14:42:04 -07:00