aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/util
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2015-01-29 03:42:27 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2015-01-29 03:42:27 +0100
commita80034229b12d42b420a9b2cc10bf23f8c5f613b (patch)
tree812d3756ffb1dd74f014a07959c79fd2e651f943 /kamon-core/src/test/scala/kamon/util
parent1f873f6f28b92db54d97ce82c967866de41008d1 (diff)
parentedceb598dd986c7a0b22f2f89e8dc9f8c0da19e8 (diff)
downloadKamon-a80034229b12d42b420a9b2cc10bf23f8c5f613b.tar.gz
Kamon-a80034229b12d42b420a9b2cc10bf23f8c5f613b.tar.bz2
Kamon-a80034229b12d42b420a9b2cc10bf23f8c5f613b.zip
Merge branch 'wip/improve-metric-recorders-infrastructure'
Conflicts: kamon-system-metrics/src/main/scala/kamon/system/SystemMetricsCollector.scala
Diffstat (limited to 'kamon-core/src/test/scala/kamon/util')
-rw-r--r--kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala9
1 files changed, 8 insertions, 1 deletions
diff --git a/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala b/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala
index 83992e61..ab98d0ac 100644
--- a/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala
+++ b/kamon-core/src/test/scala/kamon/util/GlobPathFilterSpec.scala
@@ -40,6 +40,13 @@ class GlobPathFilterSpec extends WordSpecLike with Matchers {
filter.accept("/user/something/otherActor") shouldBe false
}
+ "match all expressions in the same levelss" in {
+ val filter = new GlobPathFilter("**")
+
+ filter.accept("GET: /ping") shouldBe true
+ filter.accept("GET: /ping/pong") shouldBe true
+ }
+
"match all expressions and crosses the path boundaries" in {
val filter = new GlobPathFilter("/user/actor-**")
@@ -51,7 +58,7 @@ class GlobPathFilterSpec extends WordSpecLike with Matchers {
filter.accept("/user/something/otherActor") shouldBe false
}
- "match exactly one characterr" in {
+ "match exactly one character" in {
val filter = new GlobPathFilter("/user/actor-?")
filter.accept("/user/actor-1") shouldBe true