Adding LDAP test connection button. Reordering LDAP settings. (#3912)

This commit is contained in:
Christopher Speller
2016-09-01 17:05:20 -04:00
committed by GitHub
parent 949e57076a
commit 5d7f239962
11 changed files with 272 additions and 53 deletions

View File

@@ -161,6 +161,18 @@ func TestEmailTest(t *testing.T) {
}
}
func TestLdapTest(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()
if _, err := th.BasicClient.TestLdap(utils.Cfg); err == nil {
t.Fatal("Shouldn't have permissions")
}
if _, err := th.SystemAdminClient.TestLdap(utils.Cfg); err == nil {
t.Fatal("should have errored")
}
}
func TestGetTeamAnalyticsStandard(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()
th.CreatePrivateChannel(th.BasicClient, th.BasicTeam)