CloudWatch: Fix high CPU load (#20579)

* Cache decrypted securejsondata
* Models: Add datasource cache tests

(cherry picked from commit 3fc5f4552a)
This commit is contained in:
Marcus Efraimsson
2019-11-22 14:21:23 +01:00
parent 15f8fb5004
commit 5e294f321d
5 changed files with 118 additions and 20 deletions
+1
View File
@@ -463,6 +463,7 @@ func TestDSRouteRule(t *testing.T) {
createAuthTest(m.DS_ES, AUTHTYPE_BASIC, AUTHCHECK_HEADER, true),
}
for _, test := range tests {
m.ClearDSDecryptionCache()
runDatasourceAuthTest(test)
}
})