Skip to content

Commit 688e8d3

Browse files
committed
update tests
1 parent 5474461 commit 688e8d3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

dsc/tests/dsc_sshdconfig.tests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ metadata:
2323
resources:
2424
- name: sshdconfig
2525
type: Microsoft.OpenSSH.SSHD/sshd_config
26+
metadata:
27+
filepath: $filepath
2628
properties:
27-
_metadata:
28-
filepath: $filepath
2929
"@
3030
}
3131

@@ -60,10 +60,10 @@ metadata:
6060
resources:
6161
- name: sshdconfig
6262
type: Microsoft.OpenSSH.SSHD/sshd_config
63+
metadata:
64+
filepath: $filepath
6365
properties:
6466
passwordauthentication: 'yes'
65-
_metadata:
66-
filepath: $filepath
6767
"@
6868
$out = dsc config export -i "$export_yaml" | ConvertFrom-Json -Depth 10
6969
$LASTEXITCODE | Should -Be 0
@@ -86,10 +86,10 @@ metadata:
8686
resources:
8787
- name: sshdconfig
8888
type: Microsoft.OpenSSH.SSHD/sshd_config
89+
metadata:
90+
filepath: $filepath
8991
properties:
9092
_includeDefaults: $includeDefaults
91-
_metadata:
92-
filepath: $filepath
9393
"@
9494
$out = dsc config $command -i "$input" | ConvertFrom-Json -Depth 10
9595
$LASTEXITCODE | Should -Be 0

sshdconfig/src/get.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use crate::util::{
2929
///
3030
/// This function will return an error if the desired settings cannot be retrieved.
3131
pub fn invoke_get(input: Option<&String>, setting: &Setting) -> Result<Map<String, Value>, SshdConfigError> {
32-
debug!("{}: {:?}", t!("get.debugSetting").to_string(), setting);
32+
debug!("{}: {:?} {:?}", t!("get.debugSetting").to_string(), setting, input);
3333
match *setting {
3434
Setting::SshdConfig => {
3535
let cmd_info = build_command_info(input, true)?;

0 commit comments

Comments
 (0)