You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deleted all environment and location YAML files and removed the keys from my node. I moved the node to the AllNodes folder, not into one of the environment subfolders.
The error is:
===============================================================================
TESTCONFIGDATA
-------------------------------------------------------------------------------
/./TestConfigData
C:\Users\daniel\source\repos\Windows Server DSC\DSC\Build\Tasks\TestConfigData.ps1:1
testResultsPath is: C:\Users\daniel\source\repos\Windows Server DSC\DSC\BuildOutput\IntegrationTestResults.xml
testsPath is: C:\Users\daniel\source\repos\Windows Server DSC\DSC\Tests
BuildOutput is: C:\Users\daniel\source\repos\Windows Server DSC\DSC\BuildOutput
Node count: 1
[-] 'DSCFile01' is in the right environment 39ms
Expected $true, but got $false.
70: $pathElements -contains $node.Environment | Should Be $true
at <ScriptBlock>, C:\Users\daniel\source\repos\Windows Server DSC\DSC\Tests\ConfigData\ConfigData.Tests.ps1: line 70
[-] Location of 'DSCFile01' is '' and does exist 41ms
Expected $true, but got $false.
75: $node.Location -in $locations | Should Be $true
at <ScriptBlock>, C:\Users\daniel\source\repos\Windows Server DSC\DSC\Tests\ConfigData\ConfigData.Tests.ps1: line 75
[-] Environment of 'DSCFile01' is '' and does exist 27ms
Expected $true, but got $false.
80: $node.Environment -in $environments | Should Be $true
at <ScriptBlock>, C:\Users\daniel\source\repos\Windows Server DSC\DSC\Tests\ConfigData\ConfigData.Tests.ps1: line 80
Tests completed in 1.32s
Tests Passed: 12, Failed: 3, Skipped: 0, Pending: 0, Inconclusive: 0
ERROR: Assertion failed.
At C:\Users\daniel\source\repos\Windows Server DSC\DSC\Build\Tasks\TestConfigData.ps1:19 char:5
+ assert ($testResults.FailedCount -eq 0)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At C:\Users\daniel\source\repos\Windows Server DSC\DSC\Build\Tasks\TestConfigData.ps1:1 char:1
+ task TestConfigData {
+ ~~~~~~~~~~~~~~~~~~~~~
At C:\Users\daniel\source\repos\Windows Server DSC\DSC\Build.ps1:159 char:5
+ task . Init,
+ ~~~~~~~~~~~~
Build FAILED. 9 tasks, 1 errors, 0 warnings 00:04:07.2629572
assert : Assertion failed.
At C:\Users\daniel\source\repos\Windows Server DSC\DSC\Build\Tasks\TestConfigData.ps1:19 char:5
+ assert ($testResults.FailedCount -eq 0)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Assert-Build], Exception
+ FullyQualifiedErrorId : Assert-Build
The text was updated successfully, but these errors were encountered:
I chose not to use environments and locations.
I deleted all environment and location YAML files and removed the keys from my node. I moved the node to the
AllNodes
folder, not into one of the environment subfolders.The error is:
The text was updated successfully, but these errors were encountered: