diff options
author | Joram Wilander <jwawilander@gmail.com> | 2018-07-16 16:56:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 16:56:55 -0400 |
commit | f2c180390599e66fee2f1a8c1a4ab52eea920c51 (patch) | |
tree | b89a130b3b26d6a739eaa66dc2e06315970628ed /model/manifest_test.go | |
parent | 275731578e72d2c6e12cfb2fc315d3446474faec (diff) | |
download | chat-f2c180390599e66fee2f1a8c1a4ab52eea920c51.tar.gz chat-f2c180390599e66fee2f1a8c1a4ab52eea920c51.tar.bz2 chat-f2c180390599e66fee2f1a8c1a4ab52eea920c51.zip |
Make plugin IDs case insensitive (#9117)
Diffstat (limited to 'model/manifest_test.go')
-rw-r--r-- | model/manifest_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/model/manifest_test.go b/model/manifest_test.go index b63e388bc..0c55b5b66 100644 --- a/model/manifest_test.go +++ b/model/manifest_test.go @@ -27,9 +27,11 @@ func TestFindManifest(t *testing.T) { {"foo", "bar", true, true}, {"plugin.json", "bar", true, false}, {"plugin.json", `{"id": "foo"}`, false, false}, + {"plugin.json", `{"id": "FOO"}`, false, false}, {"plugin.yaml", `id: foo`, false, false}, {"plugin.yaml", "bar", true, false}, {"plugin.yml", `id: foo`, false, false}, + {"plugin.yml", `id: FOO`, false, false}, {"plugin.yml", "bar", true, false}, } { dir, err := ioutil.TempDir("", "mm-plugin-test") @@ -54,6 +56,7 @@ func TestFindManifest(t *testing.T) { if !tc.ExpectError { require.NotNil(t, m, tc.Filename) assert.NotEmpty(t, m.Id, tc.Filename) + assert.Equal(t, strings.ToLower(m.Id), m.Id) } } } |