@ -49,7 +49,7 @@ func TestImpersonationHeaders(t *testing.T) {
name : "user-with-cap" ,
name : "user-with-cap" ,
emailish : "foo@example.com" ,
emailish : "foo@example.com" ,
capMap : tailcfg . PeerCapMap {
capMap : tailcfg . PeerCapMap {
capabilityName : {
tailcfg. PeerCapabilityKubernetes : {
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group1","group2"]}} ` ) ,
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group1","group2"]}} ` ) ,
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group1","group3"]}} ` ) , // One group is duplicated.
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group1","group3"]}} ` ) , // One group is duplicated.
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group4"]}} ` ) ,
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group4"]}} ` ) ,
@ -71,7 +71,7 @@ func TestImpersonationHeaders(t *testing.T) {
emailish : "tagged-device" ,
emailish : "tagged-device" ,
tags : [ ] string { "tag:foo" , "tag:bar" } ,
tags : [ ] string { "tag:foo" , "tag:bar" } ,
capMap : tailcfg . PeerCapMap {
capMap : tailcfg . PeerCapMap {
capabilityName : {
tailcfg. PeerCapabilityKubernetes : {
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group1"]}} ` ) ,
tailcfg . RawMessage ( ` { "impersonate": { "groups":["group1"]}} ` ) ,
} ,
} ,
} ,
} ,
@ -85,7 +85,7 @@ func TestImpersonationHeaders(t *testing.T) {
emailish : "tagged-device" ,
emailish : "tagged-device" ,
tags : [ ] string { "tag:foo" , "tag:bar" } ,
tags : [ ] string { "tag:foo" , "tag:bar" } ,
capMap : tailcfg . PeerCapMap {
capMap : tailcfg . PeerCapMap {
capabilityName : {
tailcfg. PeerCapabilityKubernetes : {
tailcfg . RawMessage ( ` [] ` ) ,
tailcfg . RawMessage ( ` [] ` ) ,
} ,
} ,
} ,
} ,