Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
633
Issues
633
List
Boards
Labels
Service Desk
Milestones
Merge Requests
106
Merge Requests
106
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
9a1caf99
Commit
9a1caf99
authored
Jun 22, 2019
by
Evan Hunt
6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add geoip2 system test
parent
6399a70c
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
3095 additions
and
1 deletion
+3095
-1
bin/tests/system/conf.sh.common
bin/tests/system/conf.sh.common
+2
-1
bin/tests/system/geoip2/clean.sh
bin/tests/system/geoip2/clean.sh
+18
-0
bin/tests/system/geoip2/conf/bad-areacode.conf
bin/tests/system/geoip2/conf/bad-areacode.conf
+36
-0
bin/tests/system/geoip2/conf/bad-dbname.conf
bin/tests/system/geoip2/conf/bad-dbname.conf
+28
-0
bin/tests/system/geoip2/conf/bad-netspeed.conf
bin/tests/system/geoip2/conf/bad-netspeed.conf
+35
-0
bin/tests/system/geoip2/conf/bad-regiondb.conf
bin/tests/system/geoip2/conf/bad-regiondb.conf
+42
-0
bin/tests/system/geoip2/conf/bad-threeletter.conf
bin/tests/system/geoip2/conf/bad-threeletter.conf
+33
-0
bin/tests/system/geoip2/conf/good-options.conf
bin/tests/system/geoip2/conf/good-options.conf
+34
-0
bin/tests/system/geoip2/data/GeoIP2-City.json
bin/tests/system/geoip2/data/GeoIP2-City.json
+506
-0
bin/tests/system/geoip2/data/GeoIP2-City.mmdb
bin/tests/system/geoip2/data/GeoIP2-City.mmdb
+0
-0
bin/tests/system/geoip2/data/GeoIP2-Country.json
bin/tests/system/geoip2/data/GeoIP2-Country.json
+242
-0
bin/tests/system/geoip2/data/GeoIP2-Country.mmdb
bin/tests/system/geoip2/data/GeoIP2-Country.mmdb
+0
-0
bin/tests/system/geoip2/data/GeoIP2-Domain.json
bin/tests/system/geoip2/data/GeoIP2-Domain.json
+72
-0
bin/tests/system/geoip2/data/GeoIP2-Domain.mmdb
bin/tests/system/geoip2/data/GeoIP2-Domain.mmdb
+0
-0
bin/tests/system/geoip2/data/GeoIP2-ISP.json
bin/tests/system/geoip2/data/GeoIP2-ISP.json
+86
-0
bin/tests/system/geoip2/data/GeoIP2-ISP.mmdb
bin/tests/system/geoip2/data/GeoIP2-ISP.mmdb
+0
-0
bin/tests/system/geoip2/data/GeoLite2-ASN.json
bin/tests/system/geoip2/data/GeoLite2-ASN.json
+86
-0
bin/tests/system/geoip2/data/GeoLite2-ASN.mmdb
bin/tests/system/geoip2/data/GeoLite2-ASN.mmdb
+0
-0
bin/tests/system/geoip2/data/README.md
bin/tests/system/geoip2/data/README.md
+12
-0
bin/tests/system/geoip2/data/write-test-data.pl
bin/tests/system/geoip2/data/write-test-data.pl
+192
-0
bin/tests/system/geoip2/ns2/example.db.in
bin/tests/system/geoip2/ns2/example.db.in
+19
-0
bin/tests/system/geoip2/ns2/named1.conf.in
bin/tests/system/geoip2/ns2/named1.conf.in
+106
-0
bin/tests/system/geoip2/ns2/named10.conf.in
bin/tests/system/geoip2/ns2/named10.conf.in
+98
-0
bin/tests/system/geoip2/ns2/named11.conf.in
bin/tests/system/geoip2/ns2/named11.conf.in
+98
-0
bin/tests/system/geoip2/ns2/named12.conf.in
bin/tests/system/geoip2/ns2/named12.conf.in
+39
-0
bin/tests/system/geoip2/ns2/named2.conf.in
bin/tests/system/geoip2/ns2/named2.conf.in
+106
-0
bin/tests/system/geoip2/ns2/named3.conf.in
bin/tests/system/geoip2/ns2/named3.conf.in
+98
-0
bin/tests/system/geoip2/ns2/named4.conf.in
bin/tests/system/geoip2/ns2/named4.conf.in
+82
-0
bin/tests/system/geoip2/ns2/named5.conf.in
bin/tests/system/geoip2/ns2/named5.conf.in
+90
-0
bin/tests/system/geoip2/ns2/named6.conf.in
bin/tests/system/geoip2/ns2/named6.conf.in
+98
-0
bin/tests/system/geoip2/ns2/named7.conf.in
bin/tests/system/geoip2/ns2/named7.conf.in
+98
-0
bin/tests/system/geoip2/ns2/named8.conf.in
bin/tests/system/geoip2/ns2/named8.conf.in
+98
-0
bin/tests/system/geoip2/ns2/named9.conf.in
bin/tests/system/geoip2/ns2/named9.conf.in
+98
-0
bin/tests/system/geoip2/prereq.sh
bin/tests/system/geoip2/prereq.sh
+19
-0
bin/tests/system/geoip2/setup.sh
bin/tests/system/geoip2/setup.sh
+22
-0
bin/tests/system/geoip2/tests.sh
bin/tests/system/geoip2/tests.sh
+487
-0
util/copyrights
util/copyrights
+15
-0
No files found.
bin/tests/system/conf.sh.common
View file @
9a1caf99
...
...
@@ -63,7 +63,8 @@ PARALLEL_COMMON="dnssec rpzrecurse serve-stale \
dns64 dscp dsdigest dyndb
\
ednscompliance emptyzones
\
fetchlimit filter-aaaa formerr forward
\
geoip glue idna inline integrity ixfr keepalive legacy limits
\
geoip geoip2 glue idna inline integrity ixfr
\
keepalive legacy limits
\
masterfile masterformat metadata mirror mkeys
\
names notify nslookup nsupdate nzd2nzf
\
padding pending pipelined qmin
\
...
...
bin/tests/system/geoip2/clean.sh
0 → 100644
View file @
9a1caf99
#!/bin/sh
#
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
rm
-f
ns2/named.conf
rm
-f
ns2/example
*
.db
rm
-f
dig.out.
*
rndc.out.
*
rm
-f
ns?/named.run
rm
-f
ns?/named.memstats
rm
-f
ns
*
/named.lock
rm
-f
ns
*
/managed-keys.bind
*
ns
*
/
*
.mkeys
*
bin/tests/system/geoip2/conf/bad-areacode.conf
0 → 100644
View file @
9a1caf99
/*
*
Copyright
(
C
)
Internet
Systems
Consortium
,
Inc
. (
"ISC"
)
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2
.
0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
://
mozilla
.
org
/
MPL
/
2
.
0
/.
*
*
See
the
COPYRIGHT
file
distributed
with
this
work
for
additional
*
information
regarding
copyright
ownership
.
*/
//
NS2
controls
{ /*
empty
*/ };
options
{
query
-
source
address
10
.
53
.
0
.
2
;
notify
-
source
10
.
53
.
0
.
2
;
transfer
-
source
10
.
53
.
0
.
2
;
port
5300
;
pid
-
file
"named.pid"
;
listen
-
on
{
10
.
53
.
0
.
2
; };
listen
-
on
-
v6
{
none
; };
recursion
no
;
geoip
-
directory
"data"
;
allow
-
query
{
geoip
area
831
;
geoip
areacode
831
;
geoip
metro
828
;
geoip
metrocode
828
;
geoip
tz
"America/Los_Angeles"
;
geoip
timezone
"America/Los_Angeles"
;
geoip
postal
95060
;
geoip
postalcode
95060
;
};
};
bin/tests/system/geoip2/conf/bad-dbname.conf
0 → 100644
View file @
9a1caf99
/*
*
Copyright
(
C
)
Internet
Systems
Consortium
,
Inc
. (
"ISC"
)
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2
.
0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
://
mozilla
.
org
/
MPL
/
2
.
0
/.
*
*
See
the
COPYRIGHT
file
distributed
with
this
work
for
additional
*
information
regarding
copyright
ownership
.
*/
//
NS2
options
{
query
-
source
address
10
.
53
.
0
.
2
;
notify
-
source
10
.
53
.
0
.
2
;
transfer
-
source
10
.
53
.
0
.
2
;
pid
-
file
"named.pid"
;
listen
-
on
{
10
.
53
.
0
.
2
; };
};
view
one
{
match
-
clients
{
geoip
db
unknown
asnum
"WX"
; };
zone
"example"
{
type
master
;
file
"example1.db"
;
};
};
bin/tests/system/geoip2/conf/bad-netspeed.conf
0 → 100644
View file @
9a1caf99
/*
*
Copyright
(
C
)
Internet
Systems
Consortium
,
Inc
. (
"ISC"
)
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2
.
0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
://
mozilla
.
org
/
MPL
/
2
.
0
/.
*
*
See
the
COPYRIGHT
file
distributed
with
this
work
for
additional
*
information
regarding
copyright
ownership
.
*/
//
NS2
controls
{ /*
empty
*/ };
options
{
query
-
source
address
10
.
53
.
0
.
2
;
notify
-
source
10
.
53
.
0
.
2
;
transfer
-
source
10
.
53
.
0
.
2
;
port
5300
;
pid
-
file
"named.pid"
;
listen
-
on
{
10
.
53
.
0
.
2
; };
listen
-
on
-
v6
{
none
; };
recursion
no
;
geoip
-
directory
"data"
;
allow
-
query
{
geoip
netspeed
100
;
geoip
metro
828
;
geoip
metrocode
828
;
geoip
tz
"America/Los_Angeles"
;
geoip
timezone
"America/Los_Angeles"
;
geoip
postal
95060
;
geoip
postalcode
95060
;
};
};
bin/tests/system/geoip2/conf/bad-regiondb.conf
0 → 100644
View file @
9a1caf99
/*
*
Copyright
(
C
)
Internet
Systems
Consortium
,
Inc
. (
"ISC"
)
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2
.
0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
://
mozilla
.
org
/
MPL
/
2
.
0
/.
*
*
See
the
COPYRIGHT
file
distributed
with
this
work
for
additional
*
information
regarding
copyright
ownership
.
*/
//
NS2
options
{
query
-
source
address
10
.
53
.
0
.
2
;
notify
-
source
10
.
53
.
0
.
2
;
transfer
-
source
10
.
53
.
0
.
2
;
port
@
PORT
@;
pid
-
file
"named.pid"
;
listen
-
on
{
10
.
53
.
0
.
2
; };
listen
-
on
-
v6
{
none
; };
recursion
no
;
dnssec
-
validation
no
;
geoip
-
directory
"../data"
;
};
key
rndc_key
{
secret
"1234abcd8765"
;
algorithm
hmac
-
sha256
;
};
controls
{
inet
10
.
53
.
0
.
2
port
@
CONTROLPORT
@
allow
{
any
; }
keys
{
rndc_key
; };
};
view
one
{
match
-
clients
{
geoip
db
region
region
"California"
; };
zone
"example"
{
type
master
;
file
"example1.db"
;
};
};
bin/tests/system/geoip2/conf/bad-threeletter.conf
0 → 100644
View file @
9a1caf99
/*
*
Copyright
(
C
)
Internet
Systems
Consortium
,
Inc
. (
"ISC"
)
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2
.
0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
://
mozilla
.
org
/
MPL
/
2
.
0
/.
*
*
See
the
COPYRIGHT
file
distributed
with
this
work
for
additional
*
information
regarding
copyright
ownership
.
*/
//
NS2
options
{
query
-
source
address
10
.
53
.
0
.
2
;
notify
-
source
10
.
53
.
0
.
2
;
transfer
-
source
10
.
53
.
0
.
2
;
port
@
PORT
@;
pid
-
file
"named.pid"
;
listen
-
on
{
10
.
53
.
0
.
2
; };
listen
-
on
-
v6
{
none
; };
recursion
no
;
dnssec
-
validation
no
;
geoip
-
directory
"../data"
;
};
view
one
{
match
-
clients
{
geoip
db
country
country
AUS
; };
zone
"example"
{
type
master
;
file
"example1.db"
;
};
};
bin/tests/system/geoip2/conf/good-options.conf
0 → 100644
View file @
9a1caf99
/*
*
Copyright
(
C
)
Internet
Systems
Consortium
,
Inc
. (
"ISC"
)
*
*
This
Source
Code
Form
is
subject
to
the
terms
of
the
Mozilla
Public
*
License
,
v
.
2
.
0
.
If
a
copy
of
the
MPL
was
not
distributed
with
this
*
file
,
You
can
obtain
one
at
http
://
mozilla
.
org
/
MPL
/
2
.
0
/.
*
*
See
the
COPYRIGHT
file
distributed
with
this
work
for
additional
*
information
regarding
copyright
ownership
.
*/
//
NS2
controls
{ /*
empty
*/ };
options
{
query
-
source
address
10
.
53
.
0
.
2
;
notify
-
source
10
.
53
.
0
.
2
;
transfer
-
source
10
.
53
.
0
.
2
;
port
5300
;
pid
-
file
"named.pid"
;
listen
-
on
{
10
.
53
.
0
.
2
; };
listen
-
on
-
v6
{
none
; };
recursion
no
;
geoip
-
directory
"data"
;
allow
-
query
{
geoip
metro
828
;
geoip
metrocode
828
;
geoip
tz
"America/Los_Angeles"
;
geoip
timezone
"America/Los_Angeles"
;
geoip
postal
95060
;
geoip
postalcode
95060
;
};
};
bin/tests/system/geoip2/data/GeoIP2-City.json
0 → 100644
View file @
9a1caf99
[
{
"::10.53.0.1/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Redwood City"
}
},
"location"
:
{
"metro_code"
:
"807"
,
"time_zone"
:
"America/Los_Angeles"
},
"postal"
:
{
"code"
:
"94063"
},
"subdivisions"
:
[
{
"iso_code"
:
"CA"
,
"names"
:
{
"en"
:
"California"
}
}
]
}
},
{
"::10.53.0.2/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Santa Cruz"
}
},
"location"
:
{
"metro_code"
:
"828"
,
"time_zone"
:
"America/Los_Angeles"
},
"postal"
:
{
"code"
:
"95060"
},
"subdivisions"
:
[
{
"iso_code"
:
"CA"
,
"names"
:
{
"en"
:
"California"
}
}
]
}
},
{
"::10.53.0.3/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Oklahoma City"
}
},
"location"
:
{
"metro_code"
:
"650"
,
"time_zone"
:
"America/Chicago"
},
"postal"
:
{
"code"
:
"73120"
},
"subdivisions"
:
[
{
"iso_code"
:
"OK"
,
"names"
:
{
"en"
:
"Oklahoma"
}
}
]
}
},
{
"::10.53.0.4/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Ashland"
}
},
"location"
:
{
"metro_code"
:
"556"
,
"time_zone"
:
"America/New_York"
},
"postal"
:
{
"code"
:
"23005"
},
"subdivisions"
:
[
{
"iso_code"
:
"VA"
,
"names"
:
{
"en"
:
"Virginia"
}
}
]
}
},
{
"::10.53.0.5/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Atlanta"
}
},
"location"
:
{
"metro_code"
:
"524"
,
"time_zone"
:
"America/New_York"
},
"postal"
:
{
"code"
:
"30345"
},
"subdivisions"
:
[
{
"iso_code"
:
"GA"
,
"names"
:
{
"en"
:
"Georgia"
}
}
]
}
},
{
"::10.53.0.6/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Morrison"
}
},
"location"
:
{
"metro_code"
:
"751"
,
"time_zone"
:
"America/Denver"
},
"postal"
:
{
"code"
:
"80465"
},
"subdivisions"
:
[
{
"iso_code"
:
"CO"
,
"names"
:
{
"en"
:
"Colorado"
}
}
]
}
},
{
"::10.53.0.7/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Ketchikan"
}
},
"location"
:
{
"metro_code"
:
"747"
,
"time_zone"
:
"America/Anchorage"
},
"postal"
:
{
"code"
:
"99901"
},
"subdivisions"
:
[
{
"iso_code"
:
"AK"
,
"names"
:
{
"en"
:
"Alaska"
}
}
]
}
},
{
"fd92:7065:b8e:ffff::1/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Redwood City"
}
},
"location"
:
{
"metro_code"
:
"807"
,
"time_zone"
:
"America/Los_Angeles"
},
"postal"
:
{
"code"
:
"94063"
},
"subdivisions"
:
[
{
"iso_code"
:
"CA"
,
"names"
:
{
"en"
:
"California"
}
}
]
}
},
{
"fd92:7065:b8e:ffff::2/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Santa Cruz"
}
},
"location"
:
{
"metro_code"
:
"828"
,
"time_zone"
:
"America/Los_Angeles"
},
"postal"
:
{
"code"
:
"95060"
},
"subdivisions"
:
[
{
"iso_code"
:
"CA"
,
"names"
:
{
"en"
:
"California"
}
}
]
}
},
{
"fd92:7065:b8e:ffff::3/128"
:
{
"continent"
:
{
"code"
:
"NA"
,
"names"
:
{
"en"
:
"North America"
}
},
"country"
:
{
"iso_code"
:
"US"
,
"names"
:
{
"en"
:
"United States"
}
},
"city"
:
{
"names"
:
{
"en"
:
"Oklahoma City"
}
},
"location"
:
{
"metro_code"
:
"650"
,
"time_zone"
:
"America/Chicago"