ds_auth_provider_test.go 425 B

123456789101112131415161718192021
  1. package pluginproxy
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestDsAuthProvider(t *testing.T) {
  7. Convey("When interpolating string", t, func() {
  8. data := templateData{
  9. SecureJsonData: map[string]string{
  10. "Test": "0asd+asd",
  11. },
  12. }
  13. interpolated, err := InterpolateString("{{.SecureJsonData.Test}}", data)
  14. So(err, ShouldBeNil)
  15. So(interpolated, ShouldEqual, "0asd+asd")
  16. })
  17. }