summaryrefslogtreecommitdiffstats
path: root/api/license_test.go
blob: b34aeb7a6375d718b729ca5201d93b865b5fbb62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)
		}
	}
}