PowerShell/test/powershell/engine/Module
Andrew c0aafdb3d0 Fixing a bug related to ModuleSpec syntax in RequiredModules (#3594)
This fixes issue #2607.
'RequiredModules' is a field in module manifest that can reference other modules using ModuleSpecification format.
The basic version of this format (just module name) was working fine, however, there was a problem when a more detailed version of the format was used (the one that uses module versions or/and GUIDs).
During module import, there is a check for cyclic references through 'RequiredModules' field. The bug was in this check for cyclic references, related to comparison rules for ModuleSpecification objects - as a result, the code was incorrectly reporting 'cyclic reference' error in cases when there was none.
Also, added tests for different ModuleSpecification formats and a test for error when there is actually a cyclic reference.
2017-04-30 17:58:44 -07:00
..
ModulePath.Tests.ps1 corrected use of PSModulePath casing to be consistent with Windows PowerShell (#3255) 2017-03-15 12:04:28 -07:00
NewModuleManifest.Tests.ps1 New-ModuleManifest was incorrectly checking if a Uri was well formed by using ToString() which just outputs the original (#3631) 2017-04-25 17:45:24 -07:00
TestModuleManifest.Tests.ps1 Fixing a bug related to ModuleSpec syntax in RequiredModules (#3594) 2017-04-30 17:58:44 -07:00