summaryrefslogtreecommitdiffstats
path: root/api/license_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/license_test.go')
-rw-r--r--api/license_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/api/license_test.go b/api/license_test.go
new file mode 100644
index 000000000..b34aeb7a6
--- /dev/null
+++ b/api/license_test.go
@@ -0,0 +1,22 @@
+// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package api
+
+import (
+ "testing"
+)
+
+func TestGetLicenceConfig(t *testing.T) {
+ Setup()
+
+ if result, err := Client.GetClientLicenceConfig(); err != nil {
+ t.Fatal(err)
+ } else {
+ cfg := result.Data.(map[string]string)
+
+ if _, ok := cfg["IsLicensed"]; !ok {
+ t.Fatal(cfg)
+ }
+ }
+}