File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 22# Licensed under the MIT License.
33
44Describe ' tests for metadata versioning' {
5- It ' returns the correct dsc semantic version in metadata' {
6- $config_yaml = @"
5+ It ' returns the correct dsc semantic version in metadata' {
6+ $config_yaml = @"
77 `$ schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
88 resources:
99 - name: Echo
1010 type: Microsoft.DSC.Debug/Echo
1111 properties:
1212 output: 'Hello, World!'
1313"@
14- $out = $config_yaml | dsc config get -f - | ConvertFrom-Json
15- $version = $out.metadata .' Microsoft.DSC' .version -as [System.Management.Automation.SemanticVersion ]
16- $version | Should -Not - BeNullOrEmpty
17- $dscVersion = (dsc -- version).Split(" " )[1 ]
18- $version | Should - Be $dscVersion
19- }
14+ $out = $config_yaml | dsc config get -f - | ConvertFrom-Json
15+ $version = $out.metadata .' Microsoft.DSC' .version -as [System.Management.Automation.SemanticVersion ]
16+ $version | Should -Not - BeNullOrEmpty
17+ $dscVersion = (dsc -- version).Split(" " )[1 ]
18+ $version | Should - Be $dscVersion
19+ }
2020}
You can’t perform that action at this time.
0 commit comments