96bea1d478
Restyles the Blazor dashboard onto a portable token-based theme so it reads like an instrument panel: warm-paper background, hairline-ruled panels, IBM Plex type, monospace tabular numerics, and status carried by colour chips. Vendors theme.css + IBM Plex fonts, rewrites dashboard.css as a thin token-driven view layer, and swaps the Bootstrap navbar and status badges for the design-system app bar and chips. Also includes pending API-key management, Galaxy hierarchy projection, and constraint-enforcement work with their tests. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
22 lines
1.0 KiB
C#
22 lines
1.0 KiB
C#
using MxGateway.Server.Dashboard;
|
|
|
|
namespace MxGateway.Tests.Gateway.Dashboard;
|
|
|
|
public sealed class DashboardConnectionStringDisplayTests
|
|
{
|
|
[Fact]
|
|
public void GalaxyRepositoryConnectionString_WithSqlCredentials_OnlyKeepsNonSecretFields()
|
|
{
|
|
string display = DashboardConnectionStringDisplay.GalaxyRepositoryConnectionString(
|
|
"Server=localhost;Database=ZB;User ID=mxuser;Password=secret;Encrypt=True;Trust Server Certificate=False;");
|
|
|
|
Assert.Contains("Data Source=localhost", display, StringComparison.Ordinal);
|
|
Assert.Contains("Initial Catalog=ZB", display, StringComparison.Ordinal);
|
|
Assert.Contains("Encrypt=True", display, StringComparison.Ordinal);
|
|
Assert.DoesNotContain("User", display, StringComparison.OrdinalIgnoreCase);
|
|
Assert.DoesNotContain("Password", display, StringComparison.OrdinalIgnoreCase);
|
|
Assert.DoesNotContain("secret", display, StringComparison.OrdinalIgnoreCase);
|
|
Assert.DoesNotContain("mxuser", display, StringComparison.OrdinalIgnoreCase);
|
|
}
|
|
}
|