diff --git a/plancontext/context_test.go b/plancontext/context_test.go new file mode 100644 index 00000000..652c22fa --- /dev/null +++ b/plancontext/context_test.go @@ -0,0 +1,18 @@ +package plancontext + +import ( + "testing" + + "github.com/stretchr/testify/require" +) + +func TestContext(t *testing.T) { + ctx := New() + + id := ctx.Secrets.Register(&Secret{ + PlainText: "test", + }) + secret := ctx.Secrets.Get(id) + require.NotNil(t, secret) + require.Equal(t, "test", secret.PlainText) +}