diff --git a/lib/test/rrs/dnskey.json b/lib/test/rrs/dnskey.json index 67689ef..c4c8511 100644 --- a/lib/test/rrs/dnskey.json +++ b/lib/test/rrs/dnskey.json @@ -1,11 +1,11 @@ { "id": 4096, "zid": 4096, - "owner": "mail.example.com.", + "owner": "example.com.", "ttl": 86400, - "type": "CERT", - "cert type": "PGP", - "key tag": 0, - "algorithm": 0, - "certificate": "hexidecimalkeystring1" + "type": "DNSKEY", + "flags": 256, + "protocol": 3, + "algorithm": 5, + "publickey": "( AQPSKmynfzW4kyBv015MUG2DeIQ3 Cbl+BBZH4b/0PY1kxkmvHjcZc8no kfzj31GajIQKY+5CptLr3buXA10h WqTkF7H6RfoRqXQeogmMHfpftf6z Mv1LyBUgia7za6ZEzOJBOztyvhjL 742iU/TpPSEDhm2SNKLijfUppn1U aNvv4w== )" } diff --git a/lib/zone_record.js b/lib/zone_record.js index 4d67e79..204d576 100644 --- a/lib/zone_record.js +++ b/lib/zone_record.js @@ -236,7 +236,7 @@ function getMap(rrType) { return { address: 'target' } case 'DNSKEY': return { - address: 'public key', + address: 'publickey', weight: 'flags', priority: 'protocol', other: 'algorithm', diff --git a/test.js b/test-fixtures.js similarity index 100% rename from test.js rename to test-fixtures.js diff --git a/test.sh b/test.sh index 1feccad..3bad8fe 100755 --- a/test.sh +++ b/test.sh @@ -3,12 +3,12 @@ set -eu NODE="node --no-warnings=ExperimentalWarning" -$NODE test.js teardown -$NODE test.js setup +$NODE test-fixtures.js teardown +$NODE test-fixtures.js setup cleanup() { echo "cleaning DB objects" - $NODE test.js teardown + $NODE test-fixtures.js teardown } trap cleanup EXIT 1 2 3 6 @@ -20,7 +20,7 @@ else # npm i --no-save node-test-github-reporter # $NODE --test --test-reporter=node-test-github-reporter # else - $NODE --test --test-reporter=spec + $NODE --test --test-reporter=spec lib/*.test.js routes/*.test.js # fi fi