docs(tests): fix CommentChecker findings across tests/ — 13,392 → 0 (repo-wide scan clean)
Comment/XML-doc changes only: - add summaries to ~10k test methods, fixtures, fakes and helpers (+ <param> on theories, <returns> on async Task methods, <inheritdoc/> on interface implementations the checker can resolve) - strip ~2.6k project-tracking references (WP*, P*-*, row-NN, Task N, #NN, Component-0NN) from comments, keeping the explanatory text; reword false positives in comments only - real docs on fakes implementing BCL/library interfaces (IDisposable, ILogger, IOptionsMonitor, IAsyncLifetime) - reword the last 5 src/ false positives (CWE-1236, failures-1, year-0001, M365) Only non-comment edits: four one-line nested classes split across lines so members can carry docs. Build 0 errors / 0 warnings.
This commit is contained in:
@@ -4,7 +4,7 @@ using System.Text.Json;
|
||||
namespace ZB.MOM.WW.ScadaBridge.Host.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Host-003 regression: secrets must not be committed in plaintext in the
|
||||
/// Regression: secrets must not be committed in plaintext in the
|
||||
/// shipped <c>appsettings.Central.json</c>. Connection-string passwords, the LDAP
|
||||
/// service-account password and the JWT signing key must be supplied via
|
||||
/// environment variables (or another secret store) at deployment time — the
|
||||
@@ -35,6 +35,7 @@ public class ConfigSecretsTests
|
||||
return doc.RootElement.GetProperty("ScadaBridge").Clone();
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the central config's connection strings contain no plaintext password.</summary>
|
||||
[Fact]
|
||||
public void CentralConfig_ConnectionStrings_ContainNoPlaintextPassword()
|
||||
{
|
||||
@@ -58,10 +59,11 @@ public class ConfigSecretsTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the central config does not commit the LDAP service-account password.</summary>
|
||||
[Fact]
|
||||
public void CentralConfig_LdapServiceAccountPassword_IsNotCommitted()
|
||||
{
|
||||
// Task 1.4 cutover: the LDAP service-account password moved out of the flat
|
||||
// Cutover: the LDAP service-account password moved out of the flat
|
||||
// Security:LdapServiceAccountPassword key into the nested Security:Ldap
|
||||
// sub-section (Security:Ldap:ServiceAccountPassword), bound to the shared
|
||||
// ZB.MOM.WW.Auth LdapOptions. Walk into Security:Ldap and guard the nested
|
||||
@@ -78,6 +80,7 @@ public class ConfigSecretsTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the central config does not commit the JWT signing key.</summary>
|
||||
[Fact]
|
||||
public void CentralConfig_JwtSigningKey_IsNotCommitted()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user