summaryrefslogtreecommitdiffstats
path: root/model/license_test.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-07-07 15:36:17 +0100
committerGitHub <noreply@github.com>2017-07-07 15:36:17 +0100
commitdb2f6cf0766543b6d9e9fb4ecd10947ce60b46b9 (patch)
treebadd2021308c320d893824bc1ac1b28ba92d384d /model/license_test.go
parent0495a519499d6cefa289982a94d8f42de541c1f0 (diff)
downloadchat-db2f6cf0766543b6d9e9fb4ecd10947ce60b46b9.tar.gz
chat-db2f6cf0766543b6d9e9fb4ecd10947ce60b46b9.tar.bz2
chat-db2f6cf0766543b6d9e9fb4ecd10947ce60b46b9.zip
PLT-6976: Elasticsearch capitalisation and tests. (#6839)
* Fixes Elasticsearch to have consistent capitalisation everywhere across the code and UI (except the config file unfortunately). * Adds basic unit tests for Elastichsearch. * Adds a Elasticsearch docker image to the Makefile to enable testing the Elasticsearch feature.
Diffstat (limited to 'model/license_test.go')
-rw-r--r--model/license_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/model/license_test.go b/model/license_test.go
index 8b65d0700..952ab493e 100644
--- a/model/license_test.go
+++ b/model/license_test.go
@@ -45,7 +45,7 @@ func TestLicenseFeaturesSetDefaults(t *testing.T) {
CheckTrue(t, *f.MHPNS)
CheckTrue(t, *f.SAML)
CheckTrue(t, *f.PasswordRequirements)
- CheckTrue(t, *f.ElasticSearch)
+ CheckTrue(t, *f.Elasticsearch)
CheckTrue(t, *f.FutureFeatures)
f = Features{}
@@ -64,7 +64,7 @@ func TestLicenseFeaturesSetDefaults(t *testing.T) {
*f.MHPNS = true
*f.SAML = true
*f.PasswordRequirements = true
- *f.ElasticSearch = true
+ *f.Elasticsearch = true
f.SetDefaults()
@@ -80,7 +80,7 @@ func TestLicenseFeaturesSetDefaults(t *testing.T) {
CheckTrue(t, *f.MHPNS)
CheckTrue(t, *f.SAML)
CheckTrue(t, *f.PasswordRequirements)
- CheckTrue(t, *f.ElasticSearch)
+ CheckTrue(t, *f.Elasticsearch)
CheckFalse(t, *f.FutureFeatures)
}
@@ -161,7 +161,7 @@ func TestLicenseToFromJson(t *testing.T) {
CheckBool(t, *f1.MHPNS, *f.MHPNS)
CheckBool(t, *f1.SAML, *f.SAML)
CheckBool(t, *f1.PasswordRequirements, *f.PasswordRequirements)
- CheckBool(t, *f1.ElasticSearch, *f.ElasticSearch)
+ CheckBool(t, *f1.Elasticsearch, *f.Elasticsearch)
CheckBool(t, *f1.FutureFeatures, *f.FutureFeatures)
invalid := `{"asdf`