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

This commit is contained in:
Erik Sundell
2018-10-08 15:57:30 +02:00
parent 2a0d7a8803
commit 5f7795aa1f
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -398,7 +398,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}`)
})
})
})
}