assert.EqualError(t,nonFatalErrs[0],"could not load system certificate pool which may result in untrusted certificate issues: crypto/x509: system root pool is not available on Windows")
assert.EqualError(t,errs[0],"could not read certificates from directory open /tmp/asdfzyxabc123/not/a/real/dir: The system cannot find the path specified.")
}else{
assert.EqualError(t,errs[0],"could not read certificates from directory open /tmp/asdfzyxabc123/not/a/real/dir: no such file or directory")
assert.EqualError(t,nonFatalErrs[0],"could not load system certificate pool which may result in untrusted certificate issues: crypto/x509: system root pool is not available on Windows")
assert.EqualError(t,nonFatalErrs[0],"could not load system certificate pool which may result in untrusted certificate issues: crypto/x509: system root pool is not available on Windows")
index=1
}else{
require.Len(t,nonFatalErrs,1)
}
assert.Len(t,errs,0)
assert.EqualError(t,nonFatalErrs[index],"defining the trusted cert in the SMTP notifier is deprecated and will be removed in 4.28.0, please use the global certificates_directory instead")
assert.EqualError(t,nonFatalErrs[0],"could not load system certificate pool which may result in untrusted certificate issues: crypto/x509: system root pool is not available on Windows")
assert.EqualError(t,errs[0],"could not import legacy SMTP trusted_cert (see the new certificates_directory option) certificate /tmp/asdfzyxabc123/not/a/real/cert.pem (file does not exist)")
assert.EqualError(t,nonFatalErrs[index],"defining the trusted cert in the SMTP notifier is deprecated and will be removed in 4.28.0, please use the global certificates_directory instead")
assert.EqualError(t,nonFatalErrs[0],"could not load system certificate pool which may result in untrusted certificate issues: crypto/x509: system root pool is not available on Windows")