changes needed for sessions.AuthorizeConnection (#377)

This commit is contained in:
Jim authored and GitHub committed 2020-09-19 14:21:09 -04:00
1 parent ee7cdde7de
commit 66400c9cff
11 files changed
+184 -92

No files matched your search

-36
View File
@@ -194,42 +194,6 @@ func TestConnection_ImmutableFields(t *testing.T) {
}(),
fieldMask: []string{"SessionId"},
},
{
name: "client_tcp_address",
update: func() *Connection {
c := new.Clone().(*Connection)
c.ClientTcpAddress = "0.0.0.0"
return c
}(),
fieldMask: []string{"ClientTcpAddress"},
},
{
name: "client_tcp_port",
update: func() *Connection {
c := new.Clone().(*Connection)
c.ClientTcpPort = 443
return c
}(),
fieldMask: []string{"ClientTcpPort"},
},
{
name: "endpoint_tcp_address",
update: func() *Connection {
c := new.Clone().(*Connection)
c.EndpointTcpAddress = "0.0.0.0"
return c
}(),
fieldMask: []string{"EndpointTcpAddress"},
},
{
name: "endpoint_tcp_port",
update: func() *Connection {
c := new.Clone().(*Connection)
c.EndpointTcpPort = 443
return c
}(),
fieldMask: []string{"EndpointTcpPort"},
},
{
name: "create time",
update: func() *Connection {