diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-10-15 13:20:48 +0300 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2021-10-19 19:02:57 +0300 |
| commit | 10314cef906fd9b73e003be69c2f6b7b3d66570c (patch) | |
| tree | 03e8b96ad97d3382d439725166f83c774dc999a4 /integrationtests/dtail_test.go | |
| parent | b27fc108ecd6eead5c97cf6e894bf8d639fff75c (diff) | |
Can configure DTail client not to mess with ~/.ssh/known_hosts via env var - this is useful for running unit and integration tests in jenkins
Diffstat (limited to 'integrationtests/dtail_test.go')
| -rw-r--r-- | integrationtests/dtail_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/integrationtests/dtail_test.go b/integrationtests/dtail_test.go index a03056c..4af7401 100644 --- a/integrationtests/dtail_test.go +++ b/integrationtests/dtail_test.go @@ -9,7 +9,6 @@ import ( "time" ) -// TODO: Have a serverless variant too. func TestDTailWithServer(t *testing.T) { followFile := "dtail.follow.tmp" greetings := []string{"world!", "sol-system!", "milky-way!", "universe!", "multiverse!"} @@ -40,6 +39,8 @@ func TestDTailWithServer(t *testing.T) { return } + // TODO: In testmode, the client should not try to manipulate any known_hosts files. + // TODO: In testmode, never read a config file (use none for all commands) clientCh, _, _, err := startCommand(ctx, t, "../dtail", "--logger", "stdout", @@ -91,6 +92,7 @@ func TestDTailWithServer(t *testing.T) { } case <-ctx.Done(): t.Log("Done reading client and server pipes") + break } } |
