Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pester test not passing #7

Closed
BladeFireLight opened this issue Jun 25, 2015 · 5 comments
Closed

Pester test not passing #7

BladeFireLight opened this issue Jun 25, 2015 · 5 comments
Assignees

Comments

@BladeFireLight
Copy link

Errors from both xFirewall and xIPAddress tests
Describing Schema Validation for MSFT_xFirewall
[-] Error occurred in Describe block 50ms
Access to the path 'MSFT_xADRecycleBin' is denied.
At H:\GitHub\xNetworking\Tests\MSFT_xFirewall.Tests.ps1:10 char:5

Import-Module : The specified module 'xDSCResourceDesigner' was not loaded because no valid module file was found in any
module directory.
At H:\GitHub\xNetworking\Tests\MSFT_xIPAddress.Tests.ps1:3 char:5

  • Import-Module -Name xDSCResourceDesigner
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (xDSCResourceDesigner:String) [Import-Module], FileNotFoundException
    • FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
@BladeFireLight
Copy link
Author

Describing Schema Validation for MSFT_xFirewall
[10,5: Copy-Item] Access to the path 'MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[10,5: Copy-Item] Access to the path 'C:\Program Files\WindowsPowerShell\Modules\MSFT_xADRecycleBin' is denied.
[-] Error occurred in Describe block 489ms
The term 'Test-xDscResource' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At H:\GitHub\xNetworking\Tests\MSFT_xFirewall.Tests.ps1:11 char:15

@tysonjhayes
Copy link
Collaborator

I submitted a fix for the copy-item bug, basically removing it and referencing the path instead. This is the same way we do this in the xWebsite testing. This might fix the problem with the xDSCResourceDesigner which I'm assuming you have present on your machine.

@KarolKaczmarek
Copy link
Contributor

Thanks @tysonjhayes for the fix for copy-item issue.

@BladeFireLight The Test-xDscResource issue looks like there might be no DSC Resource Designer on the machine. Can you confirm it's there?

@KarolKaczmarek KarolKaczmarek added the in progress The issue is being actively worked on by someone. label Aug 3, 2015
@KarolKaczmarek KarolKaczmarek self-assigned this Aug 3, 2015
@tysonjhayes
Copy link
Collaborator

@BladeFireLight did this start working with you after my fix went in?

@tysonjhayes
Copy link
Collaborator

This has been fixed up in latest builds. If you are still having the issue please reopen this issue.

@vors vors removed the in progress The issue is being actively worked on by someone. label Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants