Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent
Commits
1190595a
Commit
1190595a
authored
Dec 12, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some more tests
parent
460b4f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
test_format.c
src/test/test_format.c
+11
-4
No files found.
src/test/test_format.c
View file @
1190595a
...
@@ -1980,7 +1980,8 @@ static const char
...
@@ -1980,7 +1980,8 @@ static const char
"%{Varnish:hitmiss}x %{Varnish:handling}x %{VCL_Log:baz}x "\
"%{Varnish:hitmiss}x %{Varnish:handling}x %{VCL_Log:baz}x "\
"%{tag:VCL_acl}x %{tag:Debug}x %{tag:Timestamp:Req}x "\
"%{tag:VCL_acl}x %{tag:Debug}x %{tag:Timestamp:Req}x "\
"%{tag:ReqAcct[0]}x %{tag:Timestamp:Resp[2]}x %{vxid}x %{pvxid}x "\
"%{tag:ReqAcct[0]}x %{tag:Timestamp:Resp[2]}x %{vxid}x %{pvxid}x "\
"%{Varnish:side}x"
"%{Varnish:side}x %{VSL:VCL_acl}x %{VSL:Debug}x %{VSL:Timestamp:Req}x "\
"%{VSL:ReqAcct[0]}x %{VSL:Timestamp:Resp[2]}x"
VSB_clear
(
config
.
cformat
);
VSB_clear
(
config
.
cformat
);
VSB_cat
(
config
.
cformat
,
FULL_CLIENT_FMT
);
VSB_cat
(
config
.
cformat
,
FULL_CLIENT_FMT
);
VSB_finish
(
config
.
cformat
);
VSB_finish
(
config
.
cformat
);
...
@@ -2053,7 +2054,9 @@ static const char
...
@@ -2053,7 +2054,9 @@ static const char
"http://foobar.com/foo?bar=baz&quux=wilco HTTP/1.1 200 "\
"http://foobar.com/foo?bar=baz&quux=wilco HTTP/1.1 200 "\
"[%d/%b/%Y:%T %z] 0 %F-%T.529143 /foo varnish 0.000166 hit hit "\
"[%d/%b/%Y:%T %z] 0 %F-%T.529143 /foo varnish 0.000166 hit hit "\
"logload MATCH ACL \"10.0.0.0\"/8 \"foo\\0\\377 bar\" " \
"logload MATCH ACL \"10.0.0.0\"/8 \"foo\\0\\377 bar\" " \
"1429213569.602005 0.000000 0.000000 60 0.000125 4711 1147 c\n"
"1429213569.602005 0.000000 0.000000 60 0.000125 4711 1147 c "\
"MATCH ACL \"10.0.0.0\"/8 \"foo\\0\\377 bar\" "\
"1429213569.602005 0.000000 0.000000 60 0.000125\n"
tm
=
localtime
(
&
t
);
tm
=
localtime
(
&
t
);
MAN
(
strftime
(
strftime_s
,
BUFSIZ
,
EXP_FULL_CLIENT_OUTPUT
,
tm
));
MAN
(
strftime
(
strftime_s
,
BUFSIZ
,
EXP_FULL_CLIENT_OUTPUT
,
tm
));
VMASSERT
(
strcmp
(
os
,
strftime_s
)
==
0
,
"'%s' != '%s'"
,
os
,
strftime_s
);
VMASSERT
(
strcmp
(
os
,
strftime_s
)
==
0
,
"'%s' != '%s'"
,
os
,
strftime_s
);
...
@@ -2066,7 +2069,9 @@ static const char
...
@@ -2066,7 +2069,9 @@ static const char
"%t %T %{%F-%T.%i}t %U %u %{Varnish:time_firstbyte}x %{VCL_Log:baz}x "\
"%t %T %{%F-%T.%i}t %U %u %{Varnish:time_firstbyte}x %{VCL_Log:baz}x "\
"%{tag:Fetch_Body}x %{tag:Debug}x %{tag:Timestamp:Bereq}x "\
"%{tag:Fetch_Body}x %{tag:Debug}x %{tag:Timestamp:Bereq}x "\
"%{tag:BereqAcct[5]}x %{tag:Timestamp:Bereq[1]}x %{vxid}x %{pvxid}x "\
"%{tag:BereqAcct[5]}x %{tag:Timestamp:Bereq[1]}x %{vxid}x %{pvxid}x "\
"%{Varnish:side}x"
"%{Varnish:side}x %{VSL:Fetch_Body}x %{VSL:Debug}x "\
"%{VSL:Timestamp:Bereq}x %{VSL:BereqAcct[5]}x "\
"%{VSL:Timestamp:Bereq[1]}x"
VSB_clear
(
config
.
bformat
);
VSB_clear
(
config
.
bformat
);
VSB_cat
(
config
.
bformat
,
FULL_BACKEND_FMT
);
VSB_cat
(
config
.
bformat
,
FULL_BACKEND_FMT
);
VSB_finish
(
config
.
bformat
);
VSB_finish
(
config
.
bformat
);
...
@@ -2131,7 +2136,9 @@ static const char
...
@@ -2131,7 +2136,9 @@ static const char
"http://foobar.com/foo?bar=baz&quux=wilco HTTP/1.1 200 "\
"http://foobar.com/foo?bar=baz&quux=wilco HTTP/1.1 200 "\
"[%d/%b/%Y:%T %z] 0 %F-%T.529143 /foo varnish 0.002837 logload "\
"[%d/%b/%Y:%T %z] 0 %F-%T.529143 /foo varnish 0.002837 logload "\
"2 chunked stream \"foo\\0\\377 bar\" "\
"2 chunked stream \"foo\\0\\377 bar\" "\
"1429210777.728290 0.000048 0.000048 283 0.000048 4711 1147 b\n"
"1429210777.728290 0.000048 0.000048 283 0.000048 4711 1147 b "\
"2 chunked stream \"foo\\0\\377 bar\" "\
"1429210777.728290 0.000048 0.000048 283 0.000048\n"
tm
=
localtime
(
&
t
);
tm
=
localtime
(
&
t
);
MAN
(
strftime
(
strftime_s
,
BUFSIZ
,
EXP_FULL_BACKEND_OUTPUT
,
tm
));
MAN
(
strftime
(
strftime_s
,
BUFSIZ
,
EXP_FULL_BACKEND_OUTPUT
,
tm
));
VMASSERT
(
strcmp
(
os
,
strftime_s
)
==
0
,
"'%s' != '%s'"
,
os
,
strftime_s
);
VMASSERT
(
strcmp
(
os
,
strftime_s
)
==
0
,
"'%s' != '%s'"
,
os
,
strftime_s
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment