Encryption: Fix tests

This commit is contained in:
Emil Tullstedt
2020-10-15 14:27:31 +02:00
parent 92c1b1e4c6
commit 3c152dc5bd
6 changed files with 50 additions and 38 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ func TestDSRouteRule(t *testing.T) {
}
setting.SecretKey = "password" //nolint:goconst
key, _ := util.Encrypt([]byte("123"), "password")
key, _ := util.Encrypt([]byte("123"))
ds := &models.DataSource{
JsonData: simplejson.NewFromAny(map[string]interface{}{
@@ -189,7 +189,7 @@ func TestDSRouteRule(t *testing.T) {
}
setting.SecretKey = "password"
key, _ := util.Encrypt([]byte("123"), "password")
key, _ := util.Encrypt([]byte("123"))
ds := &models.DataSource{
JsonData: simplejson.NewFromAny(map[string]interface{}{