From 105ed9cb264eb3569b5ae0d65ac2fd8cb636f8e8 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Sun, 21 May 2017 14:05:05 +0200 Subject: wip, trying to get something that could be tested --- kamon-core/src/test/scala/kamon/metric/EntityFilterSpec.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kamon-core/src/test') 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 -- cgit v1.2.3