refactor(routing): move session allocation out of router

This commit is contained in:
Hoshina committed 2026-04-01 14:26:12 +08:00
1 parent 2095ec8700
commit fcab3a1b7c
6 files changed
+188 -40

No files matched your search

+6
View File
@@ -37,6 +37,12 @@ func TestResolveRoute_DefaultAgent_NoBindings(t *testing.T) {
if route.MatchedBy != "default" {
t.Errorf("MatchedBy = %q, want 'default'", route.MatchedBy)
}
if route.SessionPolicy.DMScope != DMScopePerPeer {
t.Errorf("SessionPolicy.DMScope = %q, want %q", route.SessionPolicy.DMScope, DMScopePerPeer)
}
if route.SessionPolicy.IdentityLinks != nil {
t.Errorf("SessionPolicy.IdentityLinks = %v, want nil", route.SessionPolicy.IdentityLinks)
}
}
func TestResolveRoute_PeerBinding(t *testing.T) {