-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Expect export files to be named after "test" source and not "ripe" source. Use "public" for external (filtered) dump vs. "internal" for private dump * Fixed tests (renamed external directory from "dbase" to "public")
- Loading branch information
Showing
5 changed files
with
87 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ port.nrtm=0 | |
dir.rpsl.export=var${jvmId:}/export | ||
dir.rpsl.export.tmp=var${jvmId:}/export_tmp | ||
dir.rpsl.export.internal=internal | ||
dir.rpsl.export.external=dbase | ||
dir.rpsl.export.external=public | ||
dir.update.audit.log=var${jvmId:}/log/audit | ||
dir.grs.import.download=var${jvmId:}/grs | ||
|
||
|
@@ -30,7 +30,29 @@ ipranges.trusted=127.0.0.1,::1 | |
ipranges.loadbalancer=127.0.0.1,::1 | ||
|
||
# Bogon space (ref. http://www.team-cymru.com/bogon-reference.html) | ||
ipranges.bogons=0.0.0.0/8,10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.2.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,240.0.0.0/4,::/8,0100::/64,2001:2::/48,2001:10::/28,2001:db8::/32,3ffe::/16,fc00::/7,fe80::/10,fec0::/10,ff00::/8, | ||
ipranges.bogons=0.0.0.0/8,\ | ||
10.0.0.0/8,\ | ||
100.64.0.0/10,\ | ||
127.0.0.0/8,\ | ||
169.254.0.0/16,\ | ||
172.16.0.0/12,\ | ||
192.0.2.0/24,\ | ||
192.168.0.0/16,\ | ||
198.18.0.0/15,\ | ||
198.51.100.0/24,\ | ||
203.0.113.0/24,\ | ||
224.0.0.0/4,\ | ||
240.0.0.0/4,\ | ||
::/8,\ | ||
0100::/64,\ | ||
2001:2::/48,\ | ||
2001:10::/28,\ | ||
2001:db8::/32,\ | ||
3ffe::/16,\ | ||
fc00::/7,\ | ||
fe80::/10,\ | ||
fec0::/10,\ | ||
ff00::/8 | ||
|
||
# Mail properties | ||
mail.smtp.enabled=true | ||
|
@@ -40,13 +62,10 @@ mail.from=RIPE Database Administration local <[email protected]> | |
mail.update.threads=2 | ||
mail.dequeue.interval=1000 | ||
|
||
mail.smtp.retrySending=true | ||
|
||
# NRTM server | ||
nrtm.enabled=true | ||
nrtm.update.interval=15 | ||
|
||
|
||
# NRTM client | ||
nrtm.import.enabled=false | ||
nrtm.import.sources= | ||
|
@@ -109,21 +128,21 @@ nrtm.slave.database.url=jdbc:mysql://${db.host:localhost}/NRTM_LOCAL | |
nrtm.slave.database.username=dbint | ||
nrtm.slave.database.password= | ||
|
||
# NRTMv4 | ||
nrtm.file.path=/tmp | ||
nrtm.snapshot.window=23:00 - 05:00 | ||
nrtm.baseUrl= https://nrtm.db.ripe.net | ||
|
||
#Feature Toggles | ||
feature.toggle.changed.attr.available=true | ||
|
||
#Dummy attributes | ||
whois.dummy={'auth':'MD5-PW $1$SaltSalt$DummifiedMD5HashValue.', 'tech-c':'DR1-TEST', 'admin-c':'DR1-TEST'} | ||
|
||
# Zonemaster | ||
whois.zonemaster.baseUrl=http://zonemaster-test.ripe.net:5000 | ||
|
||
client.cert.auth.enabled=true | ||
|
||
nrtm.baseUrl= https://nrtm.db.ripe.net | ||
# RDAP properties | ||
# RDAP | ||
rdap.tnc.title=Terms and Conditions | ||
rdap.tnc.description=This is the RIPE Database query service. The objects are in RDAP format. | ||
rdap.tnc.linkrel=terms-of-service | ||
|
@@ -147,3 +166,4 @@ instance.name=localhost | |
|
||
#Dump size limit in MB | ||
dump.total.size.limit= 15 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,13 +100,13 @@ public void export() throws IOException { | |
assertThat(exportDir.exists(), is(true)); | ||
|
||
for (final ObjectType objectType : ObjectType.values()) { | ||
checkFile("dbase/split/test.db." + objectType.getName() + ".gz"); | ||
checkFile("public/split/test.db." + objectType.getName() + ".gz"); | ||
checkFile("internal/split/test.db." + objectType.getName() + ".gz"); | ||
} | ||
|
||
checkFile("dbase/TEST.CURRENTSERIAL", "120"); | ||
checkFile("public/TEST.CURRENTSERIAL", "120"); | ||
|
||
checkFile("dbase/test.db.gz", | ||
checkFile("public/test.db.gz", | ||
"person: Placeholder Person Object\n", | ||
"mntner: DEV-MNT0\n", | ||
"mntner: DEV-MNT1\n", | ||
|
@@ -128,9 +128,9 @@ public void export() throws IOException { | |
"remarks: * http://www.ripe.net/whois\n" + | ||
"remarks: ****************************\n"); | ||
|
||
checkFile("dbase/split/test.db.person.gz", "person: Placeholder Person Object"); | ||
checkFile("public/split/test.db.person.gz", "person: Placeholder Person Object"); | ||
|
||
checkFile("dbase/split/test.db.mntner.gz", | ||
checkFile("public/split/test.db.mntner.gz", | ||
"mntner: DEV-MNT0\n", | ||
"mntner: DEV-MNT1\n", | ||
"mntner: DEV-MNT2\n", | ||
|
@@ -140,16 +140,16 @@ public void export() throws IOException { | |
"mntner: DEV-MNT6\n", | ||
"mntner: DEV-MNT7\n", | ||
"" + | ||
"mntner: DEV-MNT99\n" + | ||
"auth: MD5-PW $1$SaltSalt$DummifiedMD5HashValue. # Real value hidden for security\n" + | ||
"source: TEST\n" + | ||
"remarks: ****************************\n" + | ||
"remarks: * THIS OBJECT IS MODIFIED\n" + | ||
"remarks: * Please note that all data that is generally regarded as personal\n" + | ||
"remarks: * data has been removed from this object.\n" + | ||
"remarks: * To view the original object, please query the RIPE Database at:\n" + | ||
"remarks: * http://www.ripe.net/whois\n" + | ||
"remarks: ****************************\n"); | ||
"mntner: DEV-MNT99\n" + | ||
"auth: MD5-PW $1$SaltSalt$DummifiedMD5HashValue. # Real value hidden for security\n" + | ||
"source: TEST\n" + | ||
"remarks: ****************************\n" + | ||
"remarks: * THIS OBJECT IS MODIFIED\n" + | ||
"remarks: * Please note that all data that is generally regarded as personal\n" + | ||
"remarks: * data has been removed from this object.\n" + | ||
"remarks: * To view the original object, please query the RIPE Database at:\n" + | ||
"remarks: * http://www.ripe.net/whois\n" + | ||
"remarks: ****************************\n"); | ||
|
||
checkFile("internal/split/test.db.person.gz", | ||
"person: Test person 0", | ||
|
@@ -158,9 +158,9 @@ public void export() throws IOException { | |
"person: Test person 3", | ||
"person: Test person 4", | ||
"" + | ||
"person: Test person 9\n" + | ||
"nic-hdl: PN9-TEST\n" + | ||
"source: TEST"); | ||
"person: Test person 9\n" + | ||
"nic-hdl: PN9-TEST\n" + | ||
"source: TEST"); | ||
|
||
checkFile("internal/split/test.db.role.gz", | ||
"role: Test role 0", | ||
|
@@ -169,9 +169,9 @@ public void export() throws IOException { | |
"role: Test role 3", | ||
"role: Test role 4", | ||
"" + | ||
"role: Test role 9\n" + | ||
"nic-hdl: ROLE9-TEST\n" + | ||
"source: TEST"); | ||
"role: Test role 9\n" + | ||
"nic-hdl: ROLE9-TEST\n" + | ||
"source: TEST"); | ||
|
||
checkFile("internal/split/test.db.mntner.gz", | ||
"" + | ||
|
@@ -241,19 +241,19 @@ public void export_role_with_abuse_mailbox() throws IOException { | |
assertThat(exportDir.exists(), is(true)); | ||
|
||
for (final ObjectType objectType : ObjectType.values()) { | ||
checkFile("dbase/split/test.db." + objectType.getName() + ".gz"); | ||
checkFile("public/split/test.db." + objectType.getName() + ".gz"); | ||
checkFile("internal/split/test.db." + objectType.getName() + ".gz"); | ||
} | ||
|
||
checkFile("dbase/split/test.db.person.gz", "person: Placeholder Person Object"); | ||
checkFile("public/split/test.db.person.gz", "person: Placeholder Person Object"); | ||
|
||
checkFile("dbase/split/test.db.role.gz", "" + | ||
checkFile("public/split/test.db.role.gz", "" + | ||
"role: Abuse role\n" + | ||
"nic-hdl: AR1-TEST\n" + | ||
"abuse-mailbox: [email protected]\n" + | ||
"source: TEST"); | ||
|
||
checkFile("dbase/split/test.db.organisation.gz", "" + | ||
checkFile("public/split/test.db.organisation.gz", "" + | ||
"organisation: ORG1\n" + | ||
"abuse-c: AR1-TEST\n" + | ||
"source: TEST"); | ||
|
@@ -320,17 +320,17 @@ public void export_mix_of_sources() throws IOException { | |
assertThat(exportDir.exists(), is(true)); | ||
|
||
for (final ObjectType objectType : ObjectType.values()) { | ||
checkFile("dbase/split/test.db." + objectType.getName() + ".gz"); | ||
checkFile("public/split/test.db." + objectType.getName() + ".gz"); | ||
checkFile("internal/split/test.db." + objectType.getName() + ".gz"); | ||
if (ExportFileWriterFactory.NONAUTH_OBJECT_TYPES.contains(objectType)) { | ||
checkFile("dbase/split/test-nonauth.db." + objectType.getName() + ".gz"); | ||
checkFile("public/split/test-nonauth.db." + objectType.getName() + ".gz"); | ||
checkFile("internal/split/test-nonauth.db." + objectType.getName() + ".gz"); | ||
} | ||
} | ||
|
||
checkFile("dbase/split/test.db.aut-num.gz", "aut-num: AS252"); | ||
checkFile("dbase/split/test-nonauth.db.aut-num.gz", "aut-num: AS251"); | ||
checkFile("dbase/split/test-nonauth.db.as-set.gz", "as-set: AS251:AS-ALL"); | ||
checkFile("public/split/test.db.aut-num.gz", "aut-num: AS252"); | ||
checkFile("public/split/test-nonauth.db.aut-num.gz", "aut-num: AS251"); | ||
checkFile("public/split/test-nonauth.db.as-set.gz", "as-set: AS251:AS-ALL"); | ||
} | ||
|
||
} |
Oops, something went wrong.