Skip to content

Commit c9adccf

Browse files
authored
Fix false positive credscan violations in ConfigurationSchemaGenerator tests (dotnet#4725)
1 parent a2e7e4b commit c9adccf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.config/CredScanSuppressions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
{
2121
"placeholder": "p@ssw0rd1",
22-
"_justification": "This is fake password, used in integration tests."
22+
"_justification": "This is a fake password, used in integration, and other tests."
2323
},
2424
{
2525
"placeholder": "thisIsAFakeSecret",

tests/ConfigurationSchemaGenerator.Tests/GeneratorTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ public static void Run()
622622
builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
623623
{
624624
["TestComponent:TestSettings:TestProperty1:UserName"] = "[email protected]",
625-
["TestComponent:TestSettings:TestProperty1:Password"] = "P@ssw0rd!",
625+
["TestComponent:TestSettings:TestProperty1:Password"] = "p@ssw0rd1",
626626
["TestComponent:TestSettings:TestProperty1:Options:RequireSSL"] = "false",
627627
["TestComponent:TestSettings:TestProperty2:UserName"] = "[email protected]",
628628
["TestComponent:TestSettings:TestProperty2:Auth:Token:Key"] = "39B4D4E4-AC46-471D-A89A-EBEAB4CA1697",
@@ -646,7 +646,7 @@ public static void Run()
646646
TestProperty1
647647
Options
648648
RequireSSL = false
649-
Password = P@ssw0rd!
649+
Password = p@ssw0rd1
650650
UserName = [email protected]
651651
TestProperty2
652652
Auth

0 commit comments

Comments
 (0)