summaryrefslogtreecommitdiffstats
path: root/utils/config_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-08 11:50:10 -0400
committerChristopher Speller <crspeller@gmail.com>2015-07-20 17:45:23 -0400
commitc6fb95912bb481791c1ca370a46a4da9c05d05ad (patch)
treebb33ff7b494b45c9d95c15f290d97914e911ce91 /utils/config_test.go
parenta1876cf6cc827743d8687a9113b727ef7190f452 (diff)
downloadchat-c6fb95912bb481791c1ca370a46a4da9c05d05ad.tar.gz
chat-c6fb95912bb481791c1ca370a46a4da9c05d05ad.tar.bz2
chat-c6fb95912bb481791c1ca370a46a4da9c05d05ad.zip
Changing the way we mattermost handles URLs. team.domain.com becomes domain.com/team.
Renaming team.Name to team.DisplayName and team.Domain to team.Name. So: team.Name -> url safe name. team.DisplayName -> nice name for users
Diffstat (limited to 'utils/config_test.go')
-rw-r--r--utils/config_test.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/config_test.go b/utils/config_test.go
index 9067dc647..4d37b4e88 100644
--- a/utils/config_test.go
+++ b/utils/config_test.go
@@ -4,24 +4,9 @@
package utils
import (
- "os"
"testing"
)
func TestConfig(t *testing.T) {
LoadConfig("config.json")
}
-
-func TestEnvOverride(t *testing.T) {
- os.Setenv("MATTERMOST_DOMAIN", "testdomain.com")
-
- LoadConfig("config_docker.json")
- if Cfg.ServiceSettings.Domain != "testdomain.com" {
- t.Fail()
- }
-
- LoadConfig("config.json")
- if Cfg.ServiceSettings.Domain == "testdomain.com" {
- t.Fail()
- }
-}