This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/plancontext/context_test.go
Andrea Luzzardi a58ca16c3d plancontext cleanup
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-07 14:20:08 -05:00

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())
}