diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-10-24 06:52:53 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2018-10-24 11:52:53 +0100 |
commit | 159c2a44dced5d6331f5fc5e7220e561e6468ad1 (patch) | |
tree | de48ae39e63658228f76cd453ab77a2901e04492 /api4/system_test.go | |
parent | 7393d23261a41f00332f5f0b1e3cdf3ad3151802 (diff) | |
download | chat-159c2a44dced5d6331f5fc5e7220e561e6468ad1.tar.gz chat-159c2a44dced5d6331f5fc5e7220e561e6468ad1.tar.bz2 chat-159c2a44dced5d6331f5fc5e7220e561e6468ad1.zip |
MM-10987 Turn on ExperimentalLimitClientConfig by default and remove setting (#9696)
Diffstat (limited to 'api4/system_test.go')
-rw-r--r-- | api4/system_test.go | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/api4/system_test.go b/api4/system_test.go index 32fadd380..fe56794aa 100644 --- a/api4/system_test.go +++ b/api4/system_test.go @@ -218,10 +218,9 @@ func TestGetOldClientConfig(t *testing.T) { testKey := "supersecretkey" th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.GoogleDeveloperKey = testKey }) - t.Run("with session, without limited config", func(t *testing.T) { + t.Run("with session", func(t *testing.T) { th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.GoogleDeveloperKey = testKey - *cfg.ServiceSettings.ExperimentalLimitClientConfig = false }) Client := th.Client @@ -238,50 +237,9 @@ func TestGetOldClientConfig(t *testing.T) { } }) - t.Run("without session, without limited config", func(t *testing.T) { + t.Run("without session", func(t *testing.T) { th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.GoogleDeveloperKey = testKey - *cfg.ServiceSettings.ExperimentalLimitClientConfig = false - }) - - Client := th.CreateClient() - - config, resp := Client.GetOldClientConfig("") - CheckNoError(t, resp) - - if len(config["Version"]) == 0 { - t.Fatal("config not returned correctly") - } - - if config["GoogleDeveloperKey"] != testKey { - t.Fatal("config missing developer key") - } - }) - - t.Run("with session, with limited config", func(t *testing.T) { - th.App.UpdateConfig(func(cfg *model.Config) { - cfg.ServiceSettings.GoogleDeveloperKey = testKey - *cfg.ServiceSettings.ExperimentalLimitClientConfig = true - }) - - Client := th.Client - - config, resp := Client.GetOldClientConfig("") - CheckNoError(t, resp) - - if len(config["Version"]) == 0 { - t.Fatal("config not returned correctly") - } - - if config["GoogleDeveloperKey"] != testKey { - t.Fatal("config missing developer key") - } - }) - - t.Run("without session, without limited config", func(t *testing.T) { - th.App.UpdateConfig(func(cfg *model.Config) { - cfg.ServiceSettings.GoogleDeveloperKey = testKey - *cfg.ServiceSettings.ExperimentalLimitClientConfig = true }) Client := th.CreateClient() |