feat: add remote control plane and whitelist reads
Build web service image / build (push) Successful in 1m53s
Build web service image / build (push) Successful in 1m53s
This commit is contained in:
@@ -21,6 +21,25 @@ public sealed class EventHubTests
|
||||
Assert.True(await subscription.Channel.Reader.WaitToReadAsync());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ReplayNeverCrossesPrincipalBoundary()
|
||||
{
|
||||
var hub = new EventHub();
|
||||
hub.Publish("alice", new AgentEvent("alice-1", "account-a", "chat-a", "message", "summary", DateTimeOffset.UtcNow));
|
||||
hub.Publish("bob", new AgentEvent("bob-1", "account-b", "chat-b", "message", "summary", DateTimeOffset.UtcNow));
|
||||
|
||||
var alice = hub.Subscribe("alice", "alice-1");
|
||||
var bob = hub.Subscribe("bob", "bob-1");
|
||||
Assert.Empty(alice.Replay);
|
||||
Assert.Empty(bob.Replay);
|
||||
Assert.False(alice.Gap);
|
||||
Assert.False(bob.Gap);
|
||||
|
||||
var aliceAfterBob = hub.Subscribe("alice", "bob-1");
|
||||
Assert.Empty(aliceAfterBob.Replay);
|
||||
Assert.True(aliceAfterBob.Gap);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SlowConsumerGetsAnExplicitGapInsteadOfSilentDrop()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user