(action *tailcfg.SSHAction)
| 465 | } |
| 466 | |
| 467 | func newSSHRule(action *tailcfg.SSHAction) *tailcfg.SSHRule { |
| 468 | return &tailcfg.SSHRule{ |
| 469 | SSHUsers: map[string]string{ |
| 470 | "alice": currentUser, |
| 471 | }, |
| 472 | Action: action, |
| 473 | Principals: []*tailcfg.SSHPrincipal{ |
| 474 | { |
| 475 | Any: true, |
| 476 | }, |
| 477 | }, |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | func TestSSHRecordingCancelsSessionsOnUploadFailure(t *testing.T) { |
| 482 | if runtime.GOOS == "darwin" { |
no outgoing calls
no test coverage detected
searching dependent graphs…