Stackdriver: Restructured ds proxy tests

This commit is contained in:
Erik Sundell
2018-09-10 17:23:50 +02:00
committed by Daniel Lee
parent 05f6710454
commit db170845b0
2 changed files with 21 additions and 12 deletions
@@ -0,0 +1,21 @@
package pluginproxy
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestDsAuthProvider(t *testing.T) {
Convey("When interpolating string", t, func() {
data := templateData{
SecureJsonData: map[string]string{
"Test": "0asd+asd",
},
}
interpolated, err := interpolateString("{{.SecureJsonData.Test}}", data)
So(err, ShouldBeNil)
So(interpolated, ShouldEqual, "0asd+asd")
})
}