mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
bc2813ef06
* fix goimports * fix goimports order
20 lines
378 B
Go
20 lines
378 B
Go
package provider
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func Test_aesCfbCipher(t *testing.T) {
|
|
cipher := aesCfbCipher{}
|
|
ctx := context.Background()
|
|
|
|
encrypted, err := cipher.Encrypt(ctx, []byte("grafana"), "1234")
|
|
require.NoError(t, err)
|
|
assert.NotNil(t, encrypted)
|
|
assert.NotEmpty(t, encrypted)
|
|
}
|