From ef904a15a8825c91f78707bbd310167c10a6af45 Mon Sep 17 00:00:00 2001 From: hejieehe <904696180@qq.com> Date: Tue, 14 Nov 2023 16:27:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90PAC=E3=80=91feat=EF=BC=9A=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BB=8E=E4=BB=A3=E7=A0=81=E5=BA=93=E7=BB=B4=E5=BA=A6?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=AF=B9=E5=BA=94=E7=9A=84=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=BA=93=E4=BA=8B=E4=BB=B6=20#8122?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/filter/PathRegexFilterTest.kt | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/backend/ci/core/common/common-webhook/biz-common-webhook/src/test/kotlin/com/tencent/devops/common/webhook/service/code/filter/PathRegexFilterTest.kt b/src/backend/ci/core/common/common-webhook/biz-common-webhook/src/test/kotlin/com/tencent/devops/common/webhook/service/code/filter/PathRegexFilterTest.kt index 272f49abbf6..024db5177d6 100644 --- a/src/backend/ci/core/common/common-webhook/biz-common-webhook/src/test/kotlin/com/tencent/devops/common/webhook/service/code/filter/PathRegexFilterTest.kt +++ b/src/backend/ci/core/common/common-webhook/biz-common-webhook/src/test/kotlin/com/tencent/devops/common/webhook/service/code/filter/PathRegexFilterTest.kt @@ -313,7 +313,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -332,7 +332,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -350,7 +350,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -368,7 +368,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -386,7 +386,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -404,7 +404,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -422,7 +422,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -448,7 +448,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -476,7 +476,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -498,7 +498,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -519,7 +519,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf( @@ -540,7 +540,7 @@ class PathRegexFilterTest { caseSensitive = true ) Assertions.assertTrue(pathRegexFilter.doFilter(response)) - response.getParam()[MATCH_PATHS]?.let { + response.params[MATCH_PATHS]?.let { Assertions.assertTrue( it.split(",").toSet().containsAll( setOf(