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

Build breaks if I decide to not use environments and locations #107

Open
danielniccoli opened this issue Jul 15, 2021 · 0 comments
Open

Comments

@danielniccoli
Copy link
Contributor

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.

image

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
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

1 participant