diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-05-17 12:40:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 12:40:40 -0700 |
commit | 11cbb597471127c1b29e78e6cad0a1a4d93ea24c (patch) | |
tree | 0eceb950872c7234348f0b41d4492073908840d0 /cmd/commands/config_test.go | |
parent | 1f6c271b3bedd6656ae7155714423b1b39a669c1 (diff) | |
download | chat-11cbb597471127c1b29e78e6cad0a1a4d93ea24c.tar.gz chat-11cbb597471127c1b29e78e6cad0a1a4d93ea24c.tar.bz2 chat-11cbb597471127c1b29e78e6cad0a1a4d93ea24c.zip |
Renaming platform binary to mattermost. (#8801)
Diffstat (limited to 'cmd/commands/config_test.go')
-rw-r--r-- | cmd/commands/config_test.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/cmd/commands/config_test.go b/cmd/commands/config_test.go deleted file mode 100644 index 54ddfcb61..000000000 --- a/cmd/commands/config_test.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -package commands - -import ( - "io/ioutil" - "os" - "path/filepath" - "testing" - - "github.com/mattermost/mattermost-server/cmd" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - - "github.com/mattermost/mattermost-server/model" -) - -func TestConfigValidate(t *testing.T) { - dir, err := ioutil.TempDir("", "") - require.NoError(t, err) - defer os.RemoveAll(dir) - - path := filepath.Join(dir, "config.json") - config := &model.Config{} - config.SetDefaults() - require.NoError(t, ioutil.WriteFile(path, []byte(config.ToJson()), 0600)) - - assert.Error(t, cmd.RunCommand(t, "--config", "foo.json", "config", "validate")) - assert.NoError(t, cmd.RunCommand(t, "--config", path, "config", "validate")) -} |