tests/SimpleModule.Tests.Shared/ contains exactly the helpers a consumer needs to write integration tests with auth:
SimpleModuleWebApplicationFactory : WebApplicationFactory<TProgram>
TestAuthHandler — header-based test auth (reads X-Test-Claims)
CreateAuthenticatedClient(string[] permissions, params Claim[] claims) and CreateAuthenticatedClient(params Claim[] claims)
But it's not packed/published — no simplemodule.tests.shared exists on NuGet (verified via nuget.org flatcontainer). Consumers either:
- Copy the file out of the framework repo (and drift from upstream improvements), or
- Reinvent
TestAuthHandler from scratch (loses the tenant_id claim conventions, etc.)
Fix
- Set
IsPackable=true on the project (currently false)
- Add it to the release workflow's pack pass
- Publish to NuGet alongside other 0.0.x bumps
Could also be re-named SimpleModule.Testing if the Tests.Shared name implies "internal" too strongly.
tests/SimpleModule.Tests.Shared/contains exactly the helpers a consumer needs to write integration tests with auth:SimpleModuleWebApplicationFactory : WebApplicationFactory<TProgram>TestAuthHandler— header-based test auth (readsX-Test-Claims)CreateAuthenticatedClient(string[] permissions, params Claim[] claims)andCreateAuthenticatedClient(params Claim[] claims)But it's not packed/published — no
simplemodule.tests.sharedexists on NuGet (verified vianuget.orgflatcontainer). Consumers either:TestAuthHandlerfrom scratch (loses thetenant_idclaim conventions, etc.)Fix
IsPackable=trueon the project (currentlyfalse)Could also be re-named
SimpleModule.Testingif theTests.Sharedname implies "internal" too strongly.