(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestSSHController_TryLogin_CacheNotFound(t *testing.T) { |
| 62 | cfg := newTestMainConfig() |
| 63 | ctrl := NewSSHController("10.0.0.1", cfg) |
| 64 | |
| 65 | server, idx, found := config.SelectServerCache("", ctrl.targetIP, ctrl.configuration) |
| 66 | assert.False(t, found) |
| 67 | assert.Nil(t, server) |
| 68 | assert.Equal(t, 0, idx) |
| 69 | } |
| 70 | |
| 71 | func TestSSHController_TryLogin_AliasResolution(t *testing.T) { |
| 72 | cfg := newTestMainConfig() |
nothing calls this directly
no test coverage detected