Skip to content

Commit

Permalink
fix test after merge
Browse files Browse the repository at this point in the history
Signed-off-by: Adi Suissa-Peleg <[email protected]>
  • Loading branch information
adisuissa committed Jun 24, 2024
1 parent 3e35948 commit 6b63898
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/common/router/config_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10070,7 +10070,8 @@ TEST_F(RouteMatcherTest, PatternMatchConfigMissingBracket) {
factory_context_.cluster_manager_.initializeClusters({"path-pattern-cluster-one"}, {});

EXPECT_THROW_WITH_MESSAGE(
TestConfigImpl config(parseRouteConfigurationFromYaml(yaml), factory_context_, true, creation_status_),
TestConfigImpl config(parseRouteConfigurationFromYaml(yaml), factory_context_, true,
creation_status_),
EnvoyException,
"path_match_policy.path_template /rest/{one/{two} is invalid: Invalid variable name: "
"\"one/{two\"");
Expand Down Expand Up @@ -10169,7 +10170,8 @@ TEST_F(RouteMatcherTest, PatternMatchInvalidPlacedWildcard) {
factory_context_.cluster_manager_.initializeClusters({"path-pattern-cluster-one"}, {});

EXPECT_THROW_WITH_MESSAGE(
TestConfigImpl config(parseRouteConfigurationFromYaml(yaml), factory_context_, true, creation_status_),
TestConfigImpl config(parseRouteConfigurationFromYaml(yaml), factory_context_, true,
creation_status_),
EnvoyException,
"path_match_policy.path_template /rest/{middlewildcard=**}/{two} is invalid: Implicit "
"variable path glob after text glob.");
Expand Down Expand Up @@ -10374,7 +10376,8 @@ TEST_F(RouteMatcherTest, PatternMatchCaseTooManyVariableNames) {
factory_context_.cluster_manager_.initializeClusters({"path-pattern-cluster-one"}, {});

EXPECT_THROW_WITH_MESSAGE(
TestConfigImpl config(parseRouteConfigurationFromYaml(yaml), factory_context_, true, creation_status_),
TestConfigImpl config(parseRouteConfigurationFromYaml(yaml), factory_context_, true,
creation_status_),
EnvoyException,
"path_match_policy.path_template /rest/{one}/{two}/{three}/{four}/{five}/{six} is invalid: "
"Exceeded variable count limit (5)");
Expand Down

0 comments on commit 6b63898

Please sign in to comment.