summaryrefslogtreecommitdiff
path: root/plugin/business/tsg-http/test/test_pattern_replace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/business/tsg-http/test/test_pattern_replace.cpp')
-rw-r--r--plugin/business/tsg-http/test/test_pattern_replace.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/business/tsg-http/test/test_pattern_replace.cpp b/plugin/business/tsg-http/test/test_pattern_replace.cpp
index 50fd239..0756313 100644
--- a/plugin/business/tsg-http/test/test_pattern_replace.cpp
+++ b/plugin/business/tsg-http/test/test_pattern_replace.cpp
@@ -183,15 +183,15 @@ TEST(PatternReplace, UrlReplace)
char replace_with[TFE_SYMBOL_MAX]={0};
char *rewrite_uri=NULL;
- const char *rd_url = "http://www.example.com/query?pageid=12345&policy_id={{tsg_policy_id}}&user_id={{tsg_subscriber_id}}&source_ip={{tsg_client_ip}}";
+ const char *rd_url = "http://www.example.com/query?pageid=12345&policy_id={{tsg_policy_uuid}}&user_id={{tsg_subscriber_id}}&source_ip={{tsg_client_ip}}";
struct replace_rule rule[3];
memset(rule, 0, sizeof(struct replace_rule));
- if(strcasestr(rd_url,"{{tsg_policy_id}}") != NULL)
+ if(strcasestr(rd_url,"{{tsg_policy_uuid}}") != NULL)
{
rule[n_rule].zone = kZoneRequestUri;
- rule[n_rule].find = tfe_strdup("{{tsg_policy_id}}");
+ rule[n_rule].find = tfe_strdup("{{tsg_policy_uuid}}");
snprintf(replace_with, TFE_SYMBOL_MAX, "%d", 23);
rule[n_rule].replace_with = tfe_strdup(replace_with);
n_rule++;