a58ca16c3d
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
17 lines
293 B
Go
17 lines
293 B
Go
package plancontext
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestContext(t *testing.T) {
|
|
ctx := New()
|
|
|
|
secret := ctx.Secrets.New("test")
|
|
get, err := ctx.Secrets.FromValue(secret.MarshalCUE())
|
|
require.NoError(t, err)
|
|
require.Equal(t, "test", get.PlainText())
|
|
}
|