PLT-2976 Adding checkout for missing SMTP server when testing email connection (#3115)
* PLT-2976 Adding checkout for missing SMTP server when testing email connection * Fixing unit test
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
7b2538fc6c
Коммит
56cca6be7c
@@ -138,8 +138,13 @@ func TestEmailTest(t *testing.T) {
|
||||
t.Fatal("Shouldn't have permissions")
|
||||
}
|
||||
|
||||
if _, err := th.SystemAdminClient.TestEmail(utils.Cfg); err != nil {
|
||||
t.Fatal(err)
|
||||
if _, err := th.SystemAdminClient.TestEmail(utils.Cfg); err == nil {
|
||||
t.Fatal("should have errored")
|
||||
} else {
|
||||
println(err.Id)
|
||||
if err.Id != "api.admin.test_email.missing_server" {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user