2019-11-02 21:32:58 +07:00
|
|
|
package suites
|
|
|
|
|
2020-05-27 18:55:44 +07:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
)
|
2019-11-02 21:32:58 +07:00
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// BaseDomain the base domain.
|
2019-11-02 21:32:58 +07:00
|
|
|
var BaseDomain = "example.com:8080"
|
|
|
|
|
2020-05-27 18:55:44 +07:00
|
|
|
// PathPrefix the prefix/url_base of the login portal.
|
|
|
|
var PathPrefix = os.Getenv("PathPrefix")
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// LoginBaseURL the base URL of the login portal.
|
2019-11-25 03:27:59 +07:00
|
|
|
var LoginBaseURL = fmt.Sprintf("https://login.%s", BaseDomain)
|
2019-11-02 21:32:58 +07:00
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// SingleFactorBaseURL the base URL of the singlefactor domain.
|
2019-11-02 21:32:58 +07:00
|
|
|
var SingleFactorBaseURL = fmt.Sprintf("https://singlefactor.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// AdminBaseURL the base URL of the admin domain.
|
2019-11-02 21:32:58 +07:00
|
|
|
var AdminBaseURL = fmt.Sprintf("https://admin.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// MailBaseURL the base URL of the mail domain.
|
2019-11-02 21:32:58 +07:00
|
|
|
var MailBaseURL = fmt.Sprintf("https://mail.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// HomeBaseURL the base URL of the home domain.
|
2019-11-25 03:27:59 +07:00
|
|
|
var HomeBaseURL = fmt.Sprintf("https://home.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// PublicBaseURL the base URL of the public domain.
|
2019-11-25 03:27:59 +07:00
|
|
|
var PublicBaseURL = fmt.Sprintf("https://public.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// SecureBaseURL the base URL of the secure domain.
|
2019-11-25 03:27:59 +07:00
|
|
|
var SecureBaseURL = fmt.Sprintf("https://secure.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// DevBaseURL the base URL of the dev domain.
|
2019-11-25 03:27:59 +07:00
|
|
|
var DevBaseURL = fmt.Sprintf("https://dev.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// MX1MailBaseURL the base URL of the mx1.mail domain.
|
2019-11-25 03:27:59 +07:00
|
|
|
var MX1MailBaseURL = fmt.Sprintf("https://mx1.mail.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// MX2MailBaseURL the base URL of the mx2.mail domain.
|
2019-11-25 03:27:59 +07:00
|
|
|
var MX2MailBaseURL = fmt.Sprintf("https://mx2.mail.%s", BaseDomain)
|
|
|
|
|
2021-05-05 05:06:05 +07:00
|
|
|
// OIDCBaseURL the base URL of the oidc domain.
|
|
|
|
var OIDCBaseURL = fmt.Sprintf("https://oidc.%s", BaseDomain)
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// DuoBaseURL the base URL of the Duo configuration API.
|
2019-11-25 03:27:59 +07:00
|
|
|
var DuoBaseURL = "https://duo.example.com"
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// AutheliaBaseURL the base URL of Authelia service.
|
2020-03-03 14:18:25 +07:00
|
|
|
var AutheliaBaseURL = "https://authelia.example.com:9091"
|
2020-05-02 23:20:40 +07:00
|
|
|
|
|
|
|
const stringTrue = "true"
|
2020-11-16 17:59:24 +07:00
|
|
|
const defaultChromeDriverPort = "4444"
|
2020-05-02 23:20:40 +07:00
|
|
|
|
|
|
|
const testUsername = "john"
|
|
|
|
const testPassword = "password"
|