@@ -8,7 +8,7 @@ Describe 'resource export tests' {
8
8
$out = dsc resource export - r Microsoft/ Process
9
9
$LASTEXITCODE | Should - Be 0
10
10
$config_with_process_list = $out | ConvertFrom-Json
11
- $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08 /config/document.json'
11
+ $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json'
12
12
$config_with_process_list .' resources' | Should -Not - BeNullOrEmpty
13
13
$config_with_process_list.resources.count | Should - BeGreaterThan 1
14
14
}
@@ -25,7 +25,7 @@ Describe 'resource export tests' {
25
25
It ' Export can be called on a configuration' {
26
26
27
27
$yaml = @'
28
- $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/10 /config/document.json
28
+ $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json
29
29
resources:
30
30
- name: Processes
31
31
type: Microsoft/Process
@@ -35,7 +35,7 @@ Describe 'resource export tests' {
35
35
$out = $yaml | dsc config export
36
36
$LASTEXITCODE | Should - Be 0
37
37
$config_with_process_list = $out | ConvertFrom-Json
38
- $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08 /config/document.json'
38
+ $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json'
39
39
$config_with_process_list .' resources' | Should -Not - BeNullOrEmpty
40
40
$config_with_process_list.resources.count | Should - BeGreaterThan 1
41
41
$config_with_process_list.metadata .' Microsoft.DSC' .operation | Should - BeExactly ' Export'
@@ -44,7 +44,7 @@ Describe 'resource export tests' {
44
44
It ' Configuration Export can be piped to configuration Set' - Skip:(! $IsWindows ) {
45
45
46
46
$yaml = @'
47
- $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/10 /config/document.json
47
+ $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json
48
48
resources:
49
49
- name: Processes
50
50
type: Microsoft/Process
@@ -60,7 +60,7 @@ Describe 'resource export tests' {
60
60
It ' Duplicate resource types in Configuration Export should not result in error' {
61
61
62
62
$yaml = @'
63
- $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/10 /config/document.json
63
+ $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json
64
64
resources:
65
65
- name: Processes
66
66
type: Microsoft/Process
@@ -80,15 +80,15 @@ Describe 'resource export tests' {
80
80
$out = dsc resource export - r Microsoft/ Process -f pretty- json
81
81
$LASTEXITCODE | Should - Be 0
82
82
$config_with_process_list = $out | ConvertFrom-Json
83
- $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08 /config/document.json'
83
+ $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json'
84
84
$config_with_process_list .' resources' | Should -Not - BeNullOrEmpty
85
85
$config_with_process_list.resources.count | Should - BeGreaterThan 1
86
86
}
87
87
88
88
It ' Export can be called on a configuration with the use of --format as a subcommand' {
89
89
90
90
$yaml = @'
91
- $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/10 /config/document.json
91
+ $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json
92
92
resources:
93
93
- name: Processes
94
94
type: Microsoft/Process
@@ -98,7 +98,7 @@ Describe 'resource export tests' {
98
98
$out = $yaml | dsc config export -f pretty- json
99
99
$LASTEXITCODE | Should - Be 0
100
100
$config_with_process_list = $out | ConvertFrom-Json
101
- $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08 /config/document.json'
101
+ $config_with_process_list .' $schema' | Should - BeExactly ' https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04 /config/document.json'
102
102
$config_with_process_list .' resources' | Should -Not - BeNullOrEmpty
103
103
$config_with_process_list.resources.count | Should - BeGreaterThan 1
104
104
}
0 commit comments