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
.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:
@@ -9,5 +9,6 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(VoiceCatIosStatic)' == 'true'">
|
||||
<DefineConstants>$(DefineConstants);VOICECAT_IOS_STATIC</DefineConstants>
|
||||
<RuntimeIdentifiers>ios-arm64;iossimulator-arm64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"net10.0/ios-arm64": {},
|
||||
"net10.0/iossimulator-arm64": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"version": 1,
|
||||
"dependencies": {
|
||||
"net10.0": {},
|
||||
"net10.0/ios-arm64": {},
|
||||
"net10.0/iossimulator-arm64": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"net10.0/ios-arm64": {},
|
||||
"net10.0/iossimulator-arm64": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"net10.0/ios-arm64": {},
|
||||
"net10.0/iossimulator-arm64": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"version": 1,
|
||||
"dependencies": {
|
||||
"net10.0": {},
|
||||
"net10.0/ios-arm64": {},
|
||||
"net10.0/iossimulator-arm64": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"contentHash": "vK2Go/83W0v2Nn7tTP9fGrX4IjmOa93s3M0SZeFimU1vIIr2wL9yNJlIyK21y85SGm3++JncB8IF751cjoLHuQ=="
|
||||
}
|
||||
},
|
||||
"net10.0/ios-arm64": {},
|
||||
"net10.0/iossimulator-arm64": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user