Skip to content

Commit 84e8976

Browse files
committed
test: Avoid to use deprecated pattern names
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent e1b3ad2 commit 84e8976

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_grok_parser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class GrokParserTest < ::Test::Unit::TestCase
5555

5656
sub_test_case "complex pattern w/ grok_pattern_series" do
5757
test "legacy" do
58-
internal_test_grok_pattern("%{COMBINEDAPACHELOG}", '127.0.0.1 192.168.0.1 - [28/Feb/2013:12:00:00 +0900] "GET / HTTP/1.1" 200 777 "-" "Opera/12.0"',
58+
internal_test_grok_pattern("%{HTTPD_COMBINEDLOG}", '127.0.0.1 192.168.0.1 - [28/Feb/2013:12:00:00 +0900] "GET / HTTP/1.1" 200 777 "-" "Opera/12.0"',
5959
str2time("28/Feb/2013:12:00:00 +0900", "%d/%b/%Y:%H:%M:%S %z"),
6060
{
6161
"clientip" => "127.0.0.1",
@@ -76,7 +76,7 @@ class GrokParserTest < ::Test::Unit::TestCase
7676
end
7777

7878
test "ecs-v1" do
79-
internal_test_grok_pattern("%{COMBINEDAPACHELOG}", '127.0.0.1 192.168.0.1 - [28/Feb/2013:12:00:00 +0900] "GET / HTTP/1.1" 200 777 "-" "Opera/12.0"',
79+
internal_test_grok_pattern("%{HTTPD_COMBINEDLOG}", '127.0.0.1 192.168.0.1 - [28/Feb/2013:12:00:00 +0900] "GET / HTTP/1.1" 200 777 "-" "Opera/12.0"',
8080
str2time("28/Feb/2013:12:00:00 +0900", "%d/%b/%Y:%H:%M:%S %z"),
8181
{
8282
"[apache][access][user][identity]" => "192.168.0.1",

0 commit comments

Comments
 (0)