From 5a60ea0d756531fef4e6e94be1377c10a7022260 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 27 Apr 2017 10:57:58 -0400 Subject: PLT-6268 Clear blue bar correctly when removing expiring license (#6247) * Don't sanitize license for system admin * Clear blue bar error whe removing expiring license * Fix unit test --- api4/system_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'api4/system_test.go') 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) { -- cgit v1.2.3-1-g7c22