chore(secrets): deprecate Replicator.Grpc — out of the build and pack (scadaproj#8)

Owner chose option (b). ZB.MOM.WW.Secrets.Replicator.Grpc has had no consumer
since ScadaBridge retired the gRPC secrets hub (2026-09-28); OtOpcUa never used it.
- removed the project and its test project from ZB.MOM.WW.Secrets.slnx, so the
  family build/test and build/push.sh's `dotnet pack` skip it;
- csproj IsPackable=false (a direct pack of the project yields nothing);
- SecretsGrpcHubServerExtensions / SecretsGrpcHubClientExtensions [Obsolete];
- README, CHANGELOG (0.6.6 Deprecated), CLAUDE.md and clustered-secrets.md say so.
Source + tests stay in the tree and still build/run standalone (test csproj
suppresses CS0618): 200/200. Feed versions 0.4.1-0.6.3 are left for the owner
to unlist.

Also zeroes the solution's pre-existing warnings: CA1416 on two Unix-only
permission tests (guarded by Skip.IfNot, which the analyzer cannot see — now
[UnsupportedOSPlatform("windows")]) and two xUnit2031 Assert.Single(Where).
Build 0 warnings; tests 429 passed / 21 skipped / 0 failed; pack = 5 nupkgs.

Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
This commit is contained in:
Joseph Doherty
2026-11-09 22:30:57 -05:00
parent be5e9fd436
commit ab1ad689df
13 changed files with 44 additions and 11 deletions
@@ -1,7 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Tests for the DEPRECATED Replicator.Grpc package (scadaproj#8). Removed from
ZB.MOM.WW.Secrets.slnx with the package, so the family test run skips them; they still build
and run standalone (`dotnet test tests/ZB.MOM.WW.Secrets.Replicator.Grpc.Tests`).
CS0618: they exercise the [Obsolete] entry points on purpose. -->
<PropertyGroup>
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);CS0618</NoWarn>
</PropertyGroup>
<ItemGroup>
@@ -233,6 +233,8 @@ public sealed class BundleFlowTests : IDisposable
}
[SkippableFact]
// Skip.IfNot is invisible to CA1416; this states the platform guard the analyzer can see.
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public async Task Import_source_key_file_permission_denied_renders_friendly_error_without_importing()
{
Skip.IfNot(!OperatingSystem.IsWindows(), "Unix permission bits are exercised via UnixFileMode.");
@@ -227,6 +227,8 @@ public sealed class KekDoctorFlowTests : IAsyncLifetime, IDisposable
}
[SkippableFact]
// Skip.IfNot is invisible to CA1416; this states the platform guard the analyzer can see.
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public async Task File_old_key_source_permission_denied_renders_friendly_error_and_still_re_diagnoses()
{
Skip.IfNot(!OperatingSystem.IsWindows(), "Unix permission bits are exercised via UnixFileMode.");
@@ -214,8 +214,8 @@ public sealed class SecretsStorePathRulesTests
services.AddZbSecrets(config, "Secrets");
services.AddZbSecrets(config, "Secrets");
Assert.Single(services.Where(d => d.ServiceType == typeof(SecretsOptionsValidator)));
Assert.Single(services.Where(d => d.ServiceType == typeof(IValidateOptions<SecretsOptions>)));
Assert.Single(services, d => d.ServiceType == typeof(SecretsOptionsValidator));
Assert.Single(services, d => d.ServiceType == typeof(IValidateOptions<SecretsOptions>));
}
[Fact]