Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Composite resources fail the common tests #236

Open
johlju opened this issue Jun 18, 2018 · 0 comments
Open

Composite resources fail the common tests #236

johlju opened this issue Jun 18, 2018 · 0 comments
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@johlju
Copy link
Contributor

johlju commented Jun 18, 2018

If a resource module contain a composite resources the common tests fail, because the dependent resource modules are not in any of the PowerShell module paths.

This is currently failing in xMySql.

Describing Common Tests - .psm1 File Parsing

Context DscResources\xMySqlProvision\xMySqlProvision.Schema.psm1

There are parse errors in C:\projects\xmysql\DscResources\xMySqlProvision\xMySqlProvision.Schema.psm1:
Extent          : xMySqlServer
ErrorId         : ResourceNotDefined
Message         : Undefined DSC resource 'xMySqlServer'. Use Import-DSCResource to import the resource.
IncompleteInput : False
Extent          : xMySqlDatabase
ErrorId         : ResourceNotDefined
Message         : Undefined DSC resource 'xMySqlDatabase'. Use Import-DSCResource to import the resource.
IncompleteInput : False
Extent          : xMySqlUser
ErrorId         : ResourceNotDefined
Message         : Undefined DSC resource 'xMySqlUser'. Use Import-DSCResource to import the resource.
IncompleteInput : False
Extent          : xMySqlGrant
ErrorId         : ResourceNotDefined
Message         : Undefined DSC resource 'xMySqlGrant'. Use Import-DSCResource to import the resource.
IncompleteInput : False

      [-] Module file 'DscResources\xMySqlProvision\xMySqlProvision.Schema.psm1' should not contain parse errors 42ms
        Expected $false, but got $true.
        248:                 $containsParseErrors | Should Be $false
        at Invoke-LegacyAssertion, C:\Program Files\WindowsPowerShell\Modules\Pester\4.3.1\Functions\Assertions\Should.ps1: line 188
        at <ScriptBlock>, C:\projects\xmysql\DscResource.Tests\Meta.Tests.ps1: line 248
@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

1 participant