Bring managed iOS client to feature parity
.NET port / test (macos-latest) (push) Canceled after 0s
.NET port / test (ubuntu-24.04) (push) Canceled after 0s
.NET port / test (windows-latest) (push) Canceled after 0s
.NET port / apple-client (push) Canceled after 0s
.NET port / cpp-conformance (push) Canceled after 0s

This commit is contained in:
2026-09-19 19:33:10 +02:00
parent c6715028c1
commit 9fc5598e8e
30 changed files with 959 additions and 144 deletions
@@ -89,6 +89,10 @@ public class ManagedClientTests
Assert.True((await admin.AuthenticateUserAsync("Admin", "secret")).Ok);
await Event(admin, envelope => envelope.ServerState is not null);
Assert.True(admin.Permissions.IsAdmin);
await using var member = NewClient(fixture, "ManagedMember"); await Connect(member, fixture);
AuthResult memberAuth = await member.AuthenticateGuestAsync("ManagedMember"); Assert.True(memberAuth.Ok);
await Event(member, envelope => envelope.ServerState is not null);
await Event(admin, envelope => envelope.UserEvent?.User?.Id == memberAuth.Self.Id);
Assert.True((await admin.CreateAccountAsync("managed-ui", "first")).Ok);
Assert.Contains(await admin.ListAccountsAsync(), account => account.Username == "managed-ui");
@@ -97,6 +101,13 @@ public class ManagedClientTests
{ SampleRate = 48000, BitrateBps = 64000, FrameMs = 20, Complexity = 10, Fec = true } };
Assert.True((await admin.CreateChannelAsync(room, "protected")).Ok);
Envelope created = await Event(admin, envelope => envelope.ChannelEvent?.Channel?.Name == room.Name);
Channel edited = created.ChannelEvent.Channel.Clone(); edited.Topic = "Edited from managed UI";
Assert.True((await admin.EditChannelAsync(edited)).Ok);
Assert.True((await admin.SetPermissionsAsync(memberAuth.Self.Id, new() { CanCreateTempChannel = true })).Ok);
Assert.True((await admin.SetServerMuteAsync(memberAuth.Self.Id, true, true)).Ok);
Assert.True((await admin.SetServerMuteAsync(memberAuth.Self.Id, false, false)).Ok);
Assert.True((await admin.MoveUserAsync(memberAuth.Self.Id, created.ChannelEvent.Channel.Id)).Ok);
Assert.True((await admin.KickUserAsync(memberAuth.Self.Id, "managed helper test")).Ok);
Assert.True((await admin.DeleteChannelAsync(created.ChannelEvent.Channel.Id)).Ok);
Assert.True((await admin.DeleteAccountAsync("managed-ui")).Ok);
}