|
|
|
@ -657,25 +657,25 @@ $tests = @{
|
|
|
|
|
dict = @{
|
|
|
|
|
pass = "plain"
|
|
|
|
|
hide = "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
|
|
|
|
|
sub_hide = "****word"
|
|
|
|
|
sub_hide = "********word"
|
|
|
|
|
int_hide = "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
|
|
|
|
|
}
|
|
|
|
|
custom = "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
|
|
|
|
|
list = @(
|
|
|
|
|
"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
|
|
|
|
|
"****word",
|
|
|
|
|
"********word",
|
|
|
|
|
"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
|
|
|
|
|
"pa ss",
|
|
|
|
|
@{
|
|
|
|
|
pass = "plain"
|
|
|
|
|
hide = "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
|
|
|
|
|
sub_hide = "****word"
|
|
|
|
|
sub_hide = "********word"
|
|
|
|
|
int_hide = "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
data = "Oops this is secret: ****"
|
|
|
|
|
data = "Oops this is secret: ********"
|
|
|
|
|
}
|
|
|
|
|
username = "user - **** - name"
|
|
|
|
|
username = "user - ******** - name"
|
|
|
|
|
password = "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -686,21 +686,21 @@ $tests = @{
|
|
|
|
|
|
|
|
|
|
$expected_event = @'
|
|
|
|
|
test_no_log - Invoked with:
|
|
|
|
|
username: user - **** - name
|
|
|
|
|
username: user - ******** - name
|
|
|
|
|
dict: dict: sub_hide: ****word
|
|
|
|
|
pass: plain
|
|
|
|
|
int_hide: ****56
|
|
|
|
|
int_hide: ********56
|
|
|
|
|
hide: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
|
|
|
|
|
data: Oops this is secret: ****
|
|
|
|
|
data: Oops this is secret: ********
|
|
|
|
|
custom: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
|
|
|
|
|
list:
|
|
|
|
|
- VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
|
|
|
|
|
- ****word
|
|
|
|
|
- ****567
|
|
|
|
|
- ********word
|
|
|
|
|
- ********567
|
|
|
|
|
- pa ss
|
|
|
|
|
- sub_hide: ****word
|
|
|
|
|
- sub_hide: ********word
|
|
|
|
|
pass: plain
|
|
|
|
|
int_hide: ****56
|
|
|
|
|
int_hide: ********56
|
|
|
|
|
hide: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
|
|
|
|
|
password2: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
|
|
|
|
|
password: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
|
|
|
|
@ -1898,7 +1898,7 @@ test_no_log - Invoked with:
|
|
|
|
|
}
|
|
|
|
|
$failed | Assert-Equals -Expected $true
|
|
|
|
|
|
|
|
|
|
$expected_msg = "value of option_key must be one of: a, b. Got no match for: ***"
|
|
|
|
|
$expected_msg = "value of option_key must be one of: a, b. Got no match for: ********"
|
|
|
|
|
|
|
|
|
|
$actual.Keys.Count | Assert-Equals -Expected 4
|
|
|
|
|
$actual.changed | Assert-Equals -Expected $false
|
|
|
|
|