win basic - do not warn on case insensitive matches (#54371)

This commit is contained in:
Jordan Borean 2019-03-26 10:54:33 +10:00 committed by GitHub
parent c291d04bd5
commit 3044326b4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 13 deletions

View file

@ -584,7 +584,8 @@ $tests = @{
option1 = 1
}
}
warnings = @($expected_warnings)
# We have disabled the warning for now
#warnings = @($expected_warnings)
}
$actual | Assert-DictionaryEquals -Expected $expected
}
@ -1779,8 +1780,9 @@ test_no_log - Invoked with:
$expected_warning += "Case insensitive matches were: ABC"
$output.invocation | Assert-DictionaryEquals -Expected @{module_args = @{option_key = "ABC"}}
$output.warnings.Count | Assert-Equals -Expected 1
$output.warnings[0] | Assert-Equals -Expected $expected_warning
# We have disabled the warnings for now
#$output.warnings.Count | Assert-Equals -Expected 1
#$output.warnings[0] | Assert-Equals -Expected $expected_warning
}
"Case insensitive choice no_log" = {
@ -1807,8 +1809,9 @@ test_no_log - Invoked with:
$expected_warning += "Case insensitive matches were: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
$output.invocation | Assert-DictionaryEquals -Expected @{module_args = @{option_key = "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"}}
$output.warnings.Count | Assert-Equals -Expected 1
$output.warnings[0] | Assert-Equals -Expected $expected_warning
# We have disabled the warnings for now
#$output.warnings.Count | Assert-Equals -Expected 1
#$output.warnings[0] | Assert-Equals -Expected $expected_warning
}
"Case insentitive choice as list" = {
@ -1836,8 +1839,9 @@ test_no_log - Invoked with:
$expected_warning += "Case insensitive matches were: AbC, jkl"
$output.invocation | Assert-DictionaryEquals -Expected @{module_args = $complex_args}
$output.warnings.Count | Assert-Equals -Expected 1
$output.warnings[0] | Assert-Equals -Expected $expected_warning
# We have disabled the warnings for now
#$output.warnings.Count | Assert-Equals -Expected 1
#$output.warnings[0] | Assert-Equals -Expected $expected_warning
}
"Invalid choice" = {