mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 23:46:57 +01:00
Remove the ssh debug profiling commands (#1965)
We plan to move this functionality into the debug socket.
This commit is contained in:
1 parent
bbc49669b7
commit
49207da077
4 files changed
+6
-194
No files matched your search
@@ -165,18 +165,6 @@ func TestSSHDReload_ChangedConfigRestarts(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// sandbox_dir is only read at startup, restarting sshd for it would drop every session and still not apply it
|
||||
func TestSSHDReload_SandboxDirKeepsSessions(t *testing.T) {
|
||||
h := newSSHDReloadHarness(t)
|
||||
client, _ := h.connect(t)
|
||||
|
||||
h.extra = " sandbox_dir: " + t.TempDir() + "\n"
|
||||
res := h.c.ReloadConfigString(h.config())
|
||||
require.NoError(t, res.Err)
|
||||
assert.Equal(t, []string{"sshd.sandbox_dir"}, res.RestartKeys)
|
||||
assert.False(t, dropped(client, 500*time.Millisecond), "sshd was restarted")
|
||||
}
|
||||
|
||||
// The config can stay the same while the host key file it names changes. New connections get the new key, open
|
||||
// sessions are left alone
|
||||
func TestSSHDReload_ChangedHostKeyFile(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user