Skip to content

Commit

Permalink
Backup commit
Browse files Browse the repository at this point in the history
🛫
  • Loading branch information
fclairamb committed Feb 25, 2024
1 parent 3de19fb commit 4054ae2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions handle_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,24 @@ func TestLoginFailure(t *testing.T) {
require.Error(t, err, "We should have failed to login")
}

func TestLoginCustom(t *testing.T) {
s := NewTestServerWithDriver(t, &TestServerDriver{Debug: true, customAuthMessage: true})
r := require.New(t)

conf := goftp.Config{
User: authUser,
Password: authPass + "_wrong",
}

c, err := goftp.DialConfig(conf, s.Addr())
r.NoError(err, "Couldn't connect")

defer func() { panicOnError(c.Close()) }()

_, err = c.OpenRawConn()
r.Error(err, "We should have failed to login")
}

func TestAuthTLS(t *testing.T) {
s := NewTestServerWithDriver(t, &TestServerDriver{
Debug: false,
Expand Down

0 comments on commit 4054ae2

Please sign in to comment.