stackdriver: test that no interpolation is done when there are no wildcards

(cherry picked from commit 5f7795aa1f)
This commit is contained in:
Erik Sundell
2018-10-02 17:58:31 +02:00
committed by bergquist
parent 84094b5051
commit 93fb427310
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -440,7 +440,13 @@ func TestStackdriver(t *testing.T) {
value := interpolateFilterWildcards("us-ce*tral1-*")
So(value, ShouldEqual, `monitoring.regex.full_match("^us\\-ce.*tral1\\-.*$")`)
})
Convey("and no wildcard is used", func() {
value := interpolateFilterWildcards("us-central1-a}")
So(value, ShouldEqual, `us-central1-a}`)
})
})
})
}