summaryrefslogtreecommitdiffstats
path: root/api4/system_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/system_test.go')
-rw-r--r--api4/system_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/api4/system_test.go b/api4/system_test.go
index ba30dd1eb..850705040 100644
--- a/api4/system_test.go
+++ b/api4/system_test.go
@@ -180,6 +180,13 @@ func TestGetOldClientLicense(t *testing.T) {
if _, err := Client.DoApiGet("/license/client?format=junk", ""); err == nil || err.StatusCode != http.StatusBadRequest {
t.Fatal("should have errored with 400")
}
+
+ license, resp = th.SystemAdminClient.GetOldClientLicense("")
+ CheckNoError(t, resp)
+
+ if len(license["IsLicensed"]) == 0 {
+ t.Fatal("license not returned correctly")
+ }
}
func TestGetAudits(t *testing.T) {