sftpd: fix keyboard interactive test cases
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
75e6ef6132
commit
132d18d5d1
1 changed files with 4 additions and 0 deletions
|
@ -393,9 +393,13 @@ func TestInitialization(t *testing.T) {
|
|||
sftpdConf.KeyboardInteractiveHook = "invalid_file"
|
||||
err = sftpdConf.Initialize(configDir)
|
||||
assert.Error(t, err)
|
||||
sftpdConf.KeyboardInteractiveAuthentication = true
|
||||
sftpdConf.KeyboardInteractiveHook = filepath.Join(homeBasePath, "invalid_file")
|
||||
err = sftpdConf.Initialize(configDir)
|
||||
assert.Error(t, err)
|
||||
sftpdConf.KeyboardInteractiveAuthentication = false
|
||||
err = sftpdConf.Initialize(configDir)
|
||||
assert.Error(t, err)
|
||||
sftpdConf.Bindings = []sftpd.Binding{
|
||||
{
|
||||
Port: 4444,
|
||||
|
|
Loading…
Reference in a new issue