diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-20 14:06:03 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-20 14:06:03 +0200 |
commit | e1e7853255131f26702229735e37e160c38f2d08 (patch) | |
tree | 98202bb2b62a9c0dd29d0fb7f020da232703844a /kamon-core/src/legacy-test/scala | |
parent | 77f2666650726352a9e15dcf6019064d91393b2e (diff) | |
download | Kamon-e1e7853255131f26702229735e37e160c38f2d08.tar.gz Kamon-e1e7853255131f26702229735e37e160c38f2d08.tar.bz2 Kamon-e1e7853255131f26702229735e37e160c38f2d08.zip |
implement entity filters
Diffstat (limited to 'kamon-core/src/legacy-test/scala')
-rw-r--r-- | kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala | 1 | ||||
-rw-r--r-- | kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala b/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala index 7d585087..ee195ed2 100644 --- a/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala +++ b/kamon-core/src/legacy-test/scala/kamon/util/GlobPathFilterSpec.scala @@ -16,6 +16,7 @@ package kamon.util +import kamon.metric.GlobPathFilter import org.scalatest.{Matchers, WordSpecLike} class GlobPathFilterSpec extends WordSpecLike with Matchers { diff --git a/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala b/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala index a2cc8629..f0da5c55 100644 --- a/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala +++ b/kamon-core/src/legacy-test/scala/kamon/util/RegexPathFilterSpec.scala @@ -16,13 +16,14 @@ package kamon.util +import kamon.metric.RegexNameFilter import org.scalatest.{Matchers, WordSpecLike} class RegexPathFilterSpec extends WordSpecLike with Matchers { "The RegexPathFilter" should { "match a single expression" in { - val filter = new RegexPathFilter("/user/actor") + val filter = new RegexNameFilter("/user/actor") filter.accept("/user/actor") shouldBe true @@ -31,7 +32,7 @@ class RegexPathFilterSpec extends WordSpecLike with Matchers { } "match arbitray expressions ending with wildcard" in { - val filter = new RegexPathFilter("/user/.*") + val filter = new RegexNameFilter("/user/.*") filter.accept("/user/actor") shouldBe true filter.accept("/user/otherActor") shouldBe true @@ -45,7 +46,7 @@ class RegexPathFilterSpec extends WordSpecLike with Matchers { } "match numbers" in { - val filter = new RegexPathFilter("/user/actor-\\d") + val filter = new RegexNameFilter("/user/actor-\\d") filter.accept("/user/actor-1") shouldBe true filter.accept("/user/actor-2") shouldBe true |