CLEANUP: tests: removed completely obsolete test files

A number of config files were present in the tests/ directory and which
would either test features that are easier to test using more recent files
or test obsolete features. All of them emit tons of useless warnings, and
instead of fixing them, better remove them since they have never been used
in the last 10 years or so.

The remaining files may still emit warnings and require some fixing but
they provide some value for some tests.
This commit is contained in:
Willy Tarreau 2015-10-13 17:07:34 +02:00
parent 29e7aca645
commit 7e0c9713b4
19 changed files with 0 additions and 6731 deletions

View File

@ -1,29 +0,0 @@
# This is a test configuration.
# It must load-balance across active servers. Check local apache logs to
# verify :
#
# tail /var/log/apache/access_log
global
maxconn 100
listen sample1
mode http
option httplog
option dontlognull
retries 1
redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8081
balance source
server srv1 127.0.0.1:80 cookie s1 check port 80 inter 1000 fall 1
server srv2 127.0.0.2:80 cookie s2 check port 80 inter 1000 fall 1
server srv3 127.0.0.3:80 cookie s3 check port 80 inter 1000 fall 1
#server srv4 127.0.0.4:80 cookie s4 check port 80 inter 1000 fall 1
option httpclose
errorloc 503 /503

View File

@ -1,29 +0,0 @@
# This is a test configuration.
# It must load-balance across active servers. Check local apache logs to
# verify :
#
# tail /var/log/apache/access_log
global
maxconn 100
listen sample1
mode http
option httplog
option dontlognull
retries 1
redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8081
balance roundrobin
server srv1 127.0.0.1:80 cookie s1 check port 80 inter 1000 fall 1
server srv2 127.0.0.2:80 cookie s2 check port 80 inter 1000 fall 1
server srv3 127.0.0.3:80 cookie s3 check port 80 inter 1000 fall 1
server srv4 127.0.0.4:80 cookie s4 check port 80 inter 1000 fall 1
option httpclose
errorloc 503 /503

View File

@ -1,35 +0,0 @@
# This is a test configuration.
# It must load-balance across backup servers depending on the souce hash.
# Check local apache logs to verify :
#
# tail /var/log/apache/access_log
global
maxconn 100
listen sample1
mode http
option httplog
option dontlognull
retries 1
redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8081
balance source
option allbackups
server srv1 127.0.0.1:80 cookie s1 check port 81 inter 1000 fall 1
server srv2 127.0.0.2:80 cookie s2 check port 81 inter 1000 fall 1
server srv3 127.0.0.3:80 cookie s3 check port 81 inter 1000 fall 1
server srv4 127.0.0.4:80 cookie s4 check port 81 inter 1000 fall 1
server bck1 127.0.1.1:80 cookie b1 check port 80 inter 1000 fall 1 backup
server bck2 127.0.1.2:80 cookie b2 check port 80 inter 1000 fall 1 backup
server bck3 127.0.1.3:80 cookie b3 check port 80 inter 1000 fall 1 backup
server bck4 127.0.1.4:80 cookie b4 check port 80 inter 1000 fall 1 backup
server bck5 127.0.1.5:80 cookie b4 check port 80 inter 1000 fall 1 backup
option httpclose
errorloc 503 /503

View File

@ -1,34 +0,0 @@
# This is a test configuration.
# It must load-balance across backup servers. Check local apache logs to
# verify :
#
# tail /var/log/apache/access_log
global
maxconn 100
listen sample1
mode http
option httplog
option dontlognull
retries 1
redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8081
balance roundrobin
option allbackups
server srv1 127.0.0.1:80 cookie s1 check port 81 inter 1000 fall 1
server srv2 127.0.0.2:80 cookie s2 check port 81 inter 1000 fall 1
server srv3 127.0.0.3:80 cookie s3 check port 81 inter 1000 fall 1
server srv4 127.0.0.4:80 cookie s4 check port 81 inter 1000 fall 1
server bck1 127.0.1.1:80 cookie b1 check port 80 inter 1000 fall 1 backup
server bck2 127.0.1.2:80 cookie b2 check port 80 inter 1000 fall 1 backup
server bck3 127.0.1.3:80 cookie b3 check port 80 inter 1000 fall 1 backup
server bck4 127.0.1.4:80 cookie b4 check port 80 inter 1000 fall 1 backup
option httpclose
errorloc 503 /503

View File

@ -1,33 +0,0 @@
# This is a test configuration.
# It must use only the first backup server. Check local apache logs to
# verify :
#
# tail /var/log/apache/access_log
global
maxconn 100
listen sample1
mode http
option httplog
option dontlognull
retries 1
redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8081
balance roundrobin
server srv1 127.0.0.1:80 cookie s1 check port 81 inter 1000 fall 1
server srv2 127.0.0.2:80 cookie s2 check port 81 inter 1000 fall 1
server srv3 127.0.0.3:80 cookie s3 check port 81 inter 1000 fall 1
server srv4 127.0.0.4:80 cookie s4 check port 81 inter 1000 fall 1
server bck1 127.0.1.1:80 cookie b1 check port 80 inter 1000 fall 1 backup
server bck2 127.0.1.2:80 cookie b2 check port 80 inter 1000 fall 1 backup
server bck3 127.0.1.3:80 cookie b3 check port 80 inter 1000 fall 1 backup
server bck4 127.0.1.4:80 cookie b4 check port 80 inter 1000 fall 1 backup
option httpclose
errorloc 503 /503

View File

@ -1,34 +0,0 @@
# This is a test configuration.
# It must use only the first backup server. Check local apache logs to
# verify :
#
# tail /var/log/apache/access_log
global
maxconn 100
listen sample1
mode http
option httplog
option dontlognull
retries 1
redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8081
balance source
server srv1 127.0.0.1:80 cookie s1 check port 81 inter 1000 fall 1
server srv2 127.0.0.2:80 cookie s2 check port 81 inter 1000 fall 1
server srv3 127.0.0.3:80 cookie s3 check port 81 inter 1000 fall 1
server srv4 127.0.0.4:80 cookie s4 check port 81 inter 1000 fall 1
server bck1 127.0.1.1:80 cookie b1 check port 81 inter 1000 fall 1 backup
server bck2 127.0.1.2:80 cookie b2 check port 80 inter 1000 fall 1 backup
server bck3 127.0.1.3:80 cookie b3 check port 80 inter 1000 fall 1 backup
server bck4 127.0.1.4:80 cookie b4 check port 80 inter 1000 fall 1 backup
server bck5 127.0.1.5:80 cookie b5 check port 80 inter 1000 fall 1 backup
option httpclose
errorloc 503 /503

View File

@ -1,33 +0,0 @@
# This is a test configuration.
# It must use only the first backup server. Check local apache logs to
# verify :
#
# tail /var/log/apache/access_log
global
maxconn 100
listen sample1
mode http
option httplog
option dontlognull
retries 1
redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8081
balance roundrobin
server srv1 127.0.0.1:80 cookie s1 check port 81 inter 1000 fall 1
server srv2 127.0.0.2:80 cookie s2 check port 81 inter 1000 fall 1
server srv3 127.0.0.3:80 cookie s3 check port 81 inter 1000 fall 1
server srv4 127.0.0.4:80 cookie s4 check port 81 inter 1000 fall 1
server bck1 127.0.1.1:80 cookie b1 check port 81 inter 1000 fall 1 backup
server bck2 127.0.1.2:80 cookie b2 check port 80 inter 1000 fall 1 backup
server bck3 127.0.1.3:80 cookie b3 check port 80 inter 1000 fall 1 backup
server bck4 127.0.1.4:80 cookie b4 check port 80 inter 1000 fall 1 backup
option httpclose
errorloc 503 /503

View File

@ -1,43 +0,0 @@
# This is a test configuration.
# It requires another server running on local port 9000, preferably httpterm
# with the file 'httpterm-basic.cfg' from the same directory.
#
# It will wait for HTTP connections on port 8000 and TCP connections on port
# 8001. It will load-balance them across active servers, and will be able to
# validate queuing. Stats are available at URI /?stats.
global
maxconn 500
defaults
contimeout 1000
clitimeout 5000
srvtimeout 5000
retries 1
redispatch
listen http_1
mode http
bind :8000
option httplog
option dontlognull
maxconn 400
balance roundrobin
server srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
server srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
server srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
server srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1
option httpclose
errorloc 503 /503
stats uri /?stats
listen tcp_1
bind :8001
mode tcp
maxconn 400
balance roundrobin
server srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
server srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
server srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
server srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1

View File

@ -1,46 +0,0 @@
global
#log 127.0.0.1 local0
#log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /var/empty
#uid 11
#gid 2
#daemon
#debug
#quiet
defaults applications TCP # :10000-10100,192.168.1.2:3129
#bind 127.0.0.1:1234-1237
log global
mode tcp
#mode http
#option httplog
#option dontlognull
balance roundrobin
#server app1_0 127.0.0.2:0# check inter 100 rise 2 fall 5
# server app1_1 127.0.0.1:8000 check inter 100 rise 2 fall 5
#server app1_2 127.0.0.1:8001 check inter 100 rise 2 fall 5 backup
retries 1
maxconn 2000
contimeout 5000
clitimeout 20000
srvtimeout 20000
listen appli3-relais 127.0.0.1:10000-10100#,192.168.1.2:3129
#bind 127.0.0.1:1234-1237
#log global
#mode tcp
#mode http
#option httplog
#option dontlognull
#balance roundrobin
server app1_0 127.0.0.1:+12000 check port 113 inter 100 rise 2 fall 5
# server app1_1 127.0.0.1:8000 check inter 100 rise 2 fall 5
#server app1_2 127.0.0.1:8001 check inter 100 rise 2 fall 5 backup
#retries 1
#maxconn 2000
#contimeout 5000
#clitimeout 20000
#srvtimeout 20000

View File

@ -1,38 +0,0 @@
global
maxconn 500
daemon
#ulimit-n 80
#uid 0
#gid 0
#chroot /tmp
#nbproc 2
#debug
#quiet
listen serv9000 0.0.0.0:9000
maxconn 30000
object weight 1 name test1 code 200 size 1048576
#object weight 1 name test1 code 304 size 0 time 50 no-cache
#object weight 1 name test2 code 200 size 100 time 50
#object weight 1 name test3 code 200 size 1000 time 50
#object weight 1 name test4 code 200 size 300 time 50
clitimeout 10000
listen serv9001 0.0.0.0:9001
maxconn 30000
object weight 1 name test1 code 304 size 0
#object weight 1 name test1 code 304 size 0 time 50 no-cache
#object weight 1 name test2 code 200 size 100 time 50
#object weight 1 name test3 code 200 size 1000 time 50
#object weight 1 name test4 code 200 size 300 time 50
clitimeout 10000
listen serv9002 0.0.0.0:9002
maxconn 30000
#object weight 1 name test1 code 304 size 0
#object weight 1 name test1 code 304 size 0 time 50 no-cache
object weight 1 name test2 code 200 size 100 time 500
#object weight 1 name test3 code 200 size 1000 time 50
#object weight 1 name test4 code 200 size 300 time 50
clitimeout 10000

View File

@ -1,26 +0,0 @@
# This sample configuration tests multiple ACL combinations. It requires
# HAProxy version 1.3.15 minimum.
global
maxconn 100
frontend http-in
bind :8000-8003
mode http
clitimeout 30000
acl p1 dst_port 8001
acl p2 dst_port 8002
acl p3 dst_port 8003
acl d1 dst 127.0.0.1
acl d2 dst 127.0.0.2
acl d3 dst 127.0.0.3
redirect location d1&p2|d2&p1 if d1 p2 or d2 p1
redirect location d1&p1 if d1 p1
redirect location !(d2|d3) unless d2 or d3
redirect location d2&!p1 if d2 !p1
redirect location !d2&p1 if !d2 p1
redirect location !!d2 unless !d2
block if d3

View File

@ -1,65 +0,0 @@
# This is a test configuration.
# It tests the "balance" parser for several parameter combinations.
global
maxconn 10000
defaults
balance
defaults
balance roundrobin
defaults
balance source
defaults
balance uri
defaults
balance url_param foo
defaults
mode tcp
# must produce an error
#defaults
# balance url_param
backend tcp-bk1
balance
backend tcp-bk2
balance roundrobin
backend tcp-bk3
balance source
backend tcp-bk4
balance uri
backend tcp-bk5
balance url_param foo
defaults
mode http
backend http-bk1
balance
backend http-bk2
balance roundrobin
backend http-bk3
balance source
backend http-bk4
balance uri
backend http-bk5
balance url_param foo
# must produce an error
#backend http-bk6
# balance url_param

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +0,0 @@
# This is a test configuration.
# Its purpose is simply to emit logs on the loopback in order to verify
# that the time is correct. To be used with tcpdump on lo, or with
# "strace -s100 -esendmsg".
global
log 127.0.0.1:514 local0
defaults
balance uri
contimeout 5000
clitimeout 5000
srvtimeout 5000
listen http
log global
log 127.0.0.1:514 local0
option httplog
mode http
bind :8000
option dontlognull
balance roundrobin
server tux 127.0.0.1:65535 check inter 1000

View File

@ -1,35 +0,0 @@
# This is a test configuration.
# It makes use of a farm built from 4 servers, 3 of which are remote and
# referenced only via an HTTP redirect (302), and the 4th one is normal.
# HTTP requests different from GET/HEAD should reach the servers directly
# while GET/HEAD should get redirected for the 3 first ones.
global
#log /dev/log local0
maxconn 1000
stats socket /tmp/sock1 mode 600
stats timeout 3000
stats maxconn 2000
listen sample1
#log global
#option httplog
mode http
retries 1
option redispatch
contimeout 1000
clitimeout 5000
srvtimeout 5000
maxconn 40000
bind :8080
#balance source
balance roundrobin
option allbackups
server rdr1 127.0.0.1:80 redir http://static1:80 weight 10 check inter 1000 fall 4
server rdr2 127.0.0.2:80 redir http://static2:80 weight 20 check inter 1000 fall 4
server rdr3 127.0.0.3:80 redir http://static3:80 weight 30 check inter 1000 fall 4
server dir4 127.0.0.4:80 redir weight 30 check inter 1000 fall 4
option httpclose
stats uri /stats
stats refresh 5

View File

@ -1,106 +0,0 @@
# This is a test configuration.
# It must load-balance across active servers. Check local apache logs to
# verify :
#
# tail /var/log/apache/access_log
global
maxconn 10000
defaults
log 127.0.0.1:514 local0
balance roundrobin
contimeout 3000
srvtimeout 20000
clitimeout 10000
option dontlognull
listen no_cookie
bind :8000
retries 2
redispatch
mode http
option httplog
balance roundrobin
server dead1 1.1.1.1:80
server good1 127.0.0.1:80
# this one sends the connection to dead1, retries, then to good1, assigns
# the cookie. Subsequent connection will try to s1 again and should try good1.
listen cookie
bind :8001
retries 2
redispatch
mode http
option httplog
cookie SRV insert indirect nocache
balance roundrobin
server dead1 1.1.1.1:80 cookie s1
server good1 127.0.0.1:80 cookie s1
# this one sends the connection to dead1, retries, then to good1, assigns
# the cookie. Subsequent connection will try to s1 again and will stick to it.
listen cookie_persist
bind :8002
retries 2
redispatch
option persist
mode http
option httplog
cookie SRV insert indirect nocache
balance roundrobin
server dead1 1.1.1.1:80 cookie s1
server good1 127.0.0.1:80 cookie s1
frontend frt_default_tcp
bind :8003
mode tcp
option httplog
default_backend bck_default_tcp
backend bck_default_tcp
mode tcp
option httplog
retries 2
redispatch
balance roundrobin
contimeout 1000
srvtimeout 25000
server dead1 1.1.1.1:80
server good1 127.0.0.1:80
frontend frt_default
bind :8004
mode http
option httplog
default_backend bck_default
backend bck_default
mode http
option httplog
retries 2
redispatch
balance roundrobin
contimeout 1000
srvtimeout 25000
server dead1 1.1.1.1:80
server good1 127.0.0.1:80
frontend frt_use_back
bind :8005
mode http
option httplog
use_backend bck_use_back if TRUE
backend bck_use_back
mode http
option httplog
retries 2
redispatch
balance roundrobin
contimeout 1000
srvtimeout 25000
server dead1 1.1.1.1:80
server good1 127.0.0.1:80

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +0,0 @@
# This is a test configuration. It must produce errors with the correct
# section types.
# out of section keyword
#keyword_out
global
# unknown keyword in section 'global'
#keyword_glob
defaults
# unknown keyword in section 'global'
#keyword_def
listen listen1
# unknown keyword in section 'listen'
#keyword_lis
frontend front1
# unknown keyword in section 'frontend'
#keyword_frt
backend back1
# unknown keyword in section 'backend'
#keyword_bck

View File

@ -1,24 +0,0 @@
# This is a test configuration.
# It presents an active, a failed server, and a backup server in the
# stats page. Connect to port 8000 to consult status.
global
maxconn 10000
#daemon
#nbproc 2
listen to-pcw
mode http
bind :8000
clitimeout 15000
srvtimeout 15000
contimeout 15000
maxconn 40000
option httpclose
balance roundrobin
server srv1 127.0.0.1:6000 check inter 1000 maxconn 1000 maxqueue 100
server srv2 127.0.0.1:65535 check inter 1000 maxqueue 100
server srv3 127.0.0.1:65535 backup
stats uri /