diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-21 14:05:05 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-21 14:05:05 +0200 |
commit | 105ed9cb264eb3569b5ae0d65ac2fd8cb636f8e8 (patch) | |
tree | c09b6644a14032b3c636cc7dbc6e225ca3256e85 /kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala | |
parent | e1e7853255131f26702229735e37e160c38f2d08 (diff) | |
download | Kamon-105ed9cb264eb3569b5ae0d65ac2fd8cb636f8e8.tar.gz Kamon-105ed9cb264eb3569b5ae0d65ac2fd8cb636f8e8.tar.bz2 Kamon-105ed9cb264eb3569b5ae0d65ac2fd8cb636f8e8.zip |
wip, trying to get something that could be tested
Diffstat (limited to 'kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala')
-rw-r--r-- | kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala b/kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala index 15dfc5ff..16481ccd 100644 --- a/kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala +++ b/kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala @@ -9,7 +9,7 @@ class EntityFilterSpec extends WordSpec with Matchers { val testConfig = ConfigFactory.parseString( """ |kamon.metric.filters { - | accept-unmatched = false + | accept-unmatched-categories = false | | some-category { | includes = ["**"] @@ -32,9 +32,9 @@ class EntityFilterSpec extends WordSpec with Matchers { ) "the entity filters" should { - "use the accept-unmatched setting when there is no configuration for a given category" in { - val acceptUnmatched = EntityFilter.fromConfig(ConfigFactory.parseString("kamon.metric.filters.accept-unmatched=true")) - val rejectUnmatched = EntityFilter.fromConfig(ConfigFactory.parseString("kamon.metric.filters.accept-unmatched=false")) + "use the accept-unmatched-categories setting when there is no configuration for a given category" in { + val acceptUnmatched = EntityFilter.fromConfig(ConfigFactory.parseString("kamon.metric.filters.accept-unmatched-categories=true")) + val rejectUnmatched = EntityFilter.fromConfig(ConfigFactory.parseString("kamon.metric.filters.accept-unmatched-categories=false")) acceptUnmatched.accept(Entity("a", "b", Map.empty)) shouldBe true rejectUnmatched.accept(Entity("a", "b", Map.empty)) shouldBe false |