Add OBS podcast ingestion and account withdrawal privacy controls
Support scoped RTMPS publishing through MediaMTX, authenticated replay, resource accounting and PostIt activation/revocation. Close withdrawn accounts, erase managed files and purge eligible payment residues after one year. Include migrations, documentation and regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
97b350be2d
commit
b157dce4e4
54 changed files with 12996 additions and 50 deletions
|
|
@ -62,6 +62,15 @@ public sealed class PodcastScheduleTests(ApiWebServerFixture fixture) : IClassFi
|
|||
Assert.NotNull(plan.FlowId);
|
||||
Assert.Equal(request.ScheduledStartAt, plan.ScheduledStartAt);
|
||||
Assert.Equal(90, plan.PlannedDurationMinutes);
|
||||
using var obsStatus = await owner.GetAsync(path + "/obs", Ct);
|
||||
Assert.Equal(HttpStatusCode.OK, obsStatus.StatusCode);
|
||||
Assert.True(obsStatus.Headers.CacheControl?.NoStore);
|
||||
var status = await obsStatus.Content.ReadFromJsonAsync<PodcastObsStatus>(Ct);
|
||||
Assert.False(status!.Enabled);
|
||||
using var obsDenied = await other.GetAsync(path + "/obs", Ct);
|
||||
Assert.Equal(HttpStatusCode.Forbidden, obsDenied.StatusCode);
|
||||
using var obsAnonymous = await anonymous.GetAsync(path + "/obs", Ct);
|
||||
Assert.Equal(HttpStatusCode.Unauthorized, obsAnonymous.StatusCode);
|
||||
using (var scope = fixture.Services.CreateScope())
|
||||
{
|
||||
var flow = await scope.ServiceProvider.GetRequiredService<ApplicationDbContext>().LiveFlow
|
||||
|
|
|
|||
Loading…
Reference in a new issue