From 11484f70bac81d66d9a71bb8106bbd616a775cb7 Mon Sep 17 00:00:00 2001 From: dwes7 Date: Sat, 28 Jan 2017 13:53:54 -0700 Subject: [PATCH] reorganzing --- .gitmodules | 3 - native-dns-packet | 1 - test/fixtures/8.8.8.8.in-addr.arpa.ptr.bin | Bin 0 -> 82 bytes test/fixtures/8.8.8.8.in-addr.arpa.ptr.js | 23 +++++++ test/fixtures/_443._tcp.fedoraproject.org.bin | Bin 0 -> 103 bytes test/fixtures/_443._tcp.fedoraproject.org.js | 28 +++++++++ .../_xmpp-server._tcp.gmail.com.srv.bin | Bin 0 -> 285 bytes .../_xmpp-server._tcp.gmail.com.srv.js | 58 ++++++++++++++++++ test/fixtures/aol.com.txt.bin | Bin 0 -> 107 bytes test/fixtures/aol.com.txt.js | 28 +++++++++ ...0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.bin | Bin 0 -> 126 bytes ....0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.js | 26 ++++++++ test/fixtures/irc6.geo.oftc.net.aaaa.bin | Bin 0 -> 119 bytes test/fixtures/irc6.geo.oftc.net.aaaa.js | 33 ++++++++++ test/fixtures/linode.com.ns.bin | Bin 0 -> 118 bytes test/fixtures/linode.com.ns.js | 43 +++++++++++++ test/fixtures/microsoft.com.mx.bin | Bin 0 -> 85 bytes test/fixtures/microsoft.com.mx.js | 25 ++++++++ test/fixtures/www.google.com.a.bin | Bin 0 -> 112 bytes test/fixtures/www.google.com.a.js | 44 +++++++++++++ test/fixtures/www.linode.com.a.bin | Bin 0 -> 80 bytes test/fixtures/www.linode.com.a.js | 33 ++++++++++ test/fixtures/www.nodejs.org.cname.bin | Bin 0 -> 46 bytes test/fixtures/www.nodejs.org.cname.js | 23 +++++++ test/fixtures/www.yahoo.com.a.bin | Bin 0 -> 158 bytes test/fixtures/www.yahoo.com.a.js | 44 +++++++++++++ tests/.gitkeep | 0 tests/fixtures | 1 - 28 files changed, 408 insertions(+), 5 deletions(-) delete mode 160000 native-dns-packet create mode 100644 test/fixtures/8.8.8.8.in-addr.arpa.ptr.bin create mode 100644 test/fixtures/8.8.8.8.in-addr.arpa.ptr.js create mode 100644 test/fixtures/_443._tcp.fedoraproject.org.bin create mode 100644 test/fixtures/_443._tcp.fedoraproject.org.js create mode 100644 test/fixtures/_xmpp-server._tcp.gmail.com.srv.bin create mode 100644 test/fixtures/_xmpp-server._tcp.gmail.com.srv.js create mode 100644 test/fixtures/aol.com.txt.bin create mode 100644 test/fixtures/aol.com.txt.js create mode 100644 test/fixtures/b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.bin create mode 100644 test/fixtures/b.8.4.0.6.9.e.f.f.f.1.9.c.3.0.f.0.0.0.0.0.0.0.0.3.0.c.3.0.0.6.2.ip6.arpa.ptr.js create mode 100644 test/fixtures/irc6.geo.oftc.net.aaaa.bin create mode 100644 test/fixtures/irc6.geo.oftc.net.aaaa.js create mode 100644 test/fixtures/linode.com.ns.bin create mode 100644 test/fixtures/linode.com.ns.js create mode 100644 test/fixtures/microsoft.com.mx.bin create mode 100644 test/fixtures/microsoft.com.mx.js create mode 100644 test/fixtures/www.google.com.a.bin create mode 100644 test/fixtures/www.google.com.a.js create mode 100644 test/fixtures/www.linode.com.a.bin create mode 100644 test/fixtures/www.linode.com.a.js create mode 100644 test/fixtures/www.nodejs.org.cname.bin create mode 100644 test/fixtures/www.nodejs.org.cname.js create mode 100644 test/fixtures/www.yahoo.com.a.bin create mode 100644 test/fixtures/www.yahoo.com.a.js delete mode 100644 tests/.gitkeep delete mode 120000 tests/fixtures diff --git a/.gitmodules b/.gitmodules index 374ff93..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "native-dns-packet"] - path = native-dns-packet - url = git@github.com:tjfontaine/native-dns-packet.git diff --git a/native-dns-packet b/native-dns-packet deleted file mode 160000 index 296bfe5..0000000 --- a/native-dns-packet +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 296bfe5337b57e93a605838a4da48924e8d46e4b diff --git a/test/fixtures/8.8.8.8.in-addr.arpa.ptr.bin b/test/fixtures/8.8.8.8.in-addr.arpa.ptr.bin new file mode 100644 index 0000000000000000000000000000000000000000..af108f2cf073d33846f55efda6caacf6c879ac64 GIT binary patch literal 82 zcmbQE)7Zek2!ueuXaRxjo_@NHE-pbVjzIyA3=BLBj0bo?Bm+Z89D{;zdVYR-PO5G} XX;MyRvTjOVv2G$8M2tB(KbHXjbsQ3R literal 0 HcmV?d00001 diff --git a/test/fixtures/8.8.8.8.in-addr.arpa.ptr.js b/test/fixtures/8.8.8.8.in-addr.arpa.ptr.js new file mode 100644 index 0000000..e0eb675 --- /dev/null +++ b/test/fixtures/8.8.8.8.in-addr.arpa.ptr.js @@ -0,0 +1,23 @@ +{ header: + { id: 39980, + qr: 1, + opcode: 0, + aa: 0, + tc: 0, + rd: 1, + ra: 1, + res1: 0, + res2: 0, + res3: 0, + rcode: 0 }, + question: [ { name: '8.8.8.8.IN-ADDR.ARPA', type: 12, class: 1 } ], + answer: + [ { name: '8.8.8.8.IN-ADDR.ARPA', + type: 12, + class: 1, + ttl: 21598, + data: 'google-public-dns-a.google.com' } ], + authority: [], + additional: [], + edns_options: [], + payload: undefined } diff --git a/test/fixtures/_443._tcp.fedoraproject.org.bin b/test/fixtures/_443._tcp.fedoraproject.org.bin new file mode 100644 index 0000000000000000000000000000000000000000..feb7d1497477a88fbca970ed18b94b8f36cb4467 GIT binary patch literal 103 zcmew~r*Q!TBM>q$FtWs(m>9Ffmn0YPrlqFj7bO-H?5S{ix_FbNwa;22BB=xgY=l8WJC2 literal 0 HcmV?d00001 diff --git a/test/fixtures/_443._tcp.fedoraproject.org.js b/test/fixtures/_443._tcp.fedoraproject.org.js new file mode 100644 index 0000000..0090e26 --- /dev/null +++ b/test/fixtures/_443._tcp.fedoraproject.org.js @@ -0,0 +1,28 @@ +{ header: + { id: 62108, + qr: 1, + opcode: 0, + aa: 0, + tc: 0, + rd: 1, + ra: 1, + res1: 0, + res2: 1, + res3: 0, + rcode: 0 }, + question: [ { name: '_443._tcp.fedoraproject.org', type: 52, class: 1 } ], + answer: + [ { name: '_443._tcp.fedoraproject.org', + type: 52, + class: 1, + ttl: 268, + usage: 0, + selector: 0, + matchingtype: 1, + buff: new Buffer([0xd4, 0xc4, 0xc9, 0x98, 0x19, 0xf3, 0xa5, 0xf2, 0xc6, 0x26, 0x1c, 0x94, 0x44, 0xc6, 0x2a, 0x8b, 0x26, 0x3b, 0x39, 0xbc, 0x6a, 0xcc, 0xe3, 0x5c, 0xdc, 0xab, 0xe2, 0x72, 0xd5, 0x03, 0x7f, 0xb2]) } ], + authority: [], + additional: [], + edns_options: [], + payload: 4096, + edns_version: 0, + do: 0} diff --git a/test/fixtures/_xmpp-server._tcp.gmail.com.srv.bin b/test/fixtures/_xmpp-server._tcp.gmail.com.srv.bin new file mode 100644 index 0000000000000000000000000000000000000000..f206e3d96b2a9654a306c4a9759497c05924ca29 GIT binary patch literal 285 zcmZ3stFeKBk%5%~2zcTvatjJ{i&KlrQj1vPOOgv%({mFubC{F!a~T*E85j@nfJg=g z<`xD8kQR}t+(=|Ij w;usX*$iTqEz<7WML^3dh#4$(+CFW$7l;otA=U0=nJmYz0!=1c}BWH|*!#~n;eysw=Y82GW|pUc3&&%k(q2SftpjxuO5aPh(w=mHh6b)7Zek2!ueuTwY$zmY1KBnpMo4UzEk literal 0 HcmV?d00001 diff --git a/test/fixtures/www.nodejs.org.cname.js b/test/fixtures/www.nodejs.org.cname.js new file mode 100644 index 0000000..07cd9c4 --- /dev/null +++ b/test/fixtures/www.nodejs.org.cname.js @@ -0,0 +1,23 @@ +{ header: + { id: 32764, + qr: 1, + opcode: 0, + aa: 0, + tc: 0, + rd: 1, + ra: 1, + res1: 0, + res2: 0, + res3: 0, + rcode: 0 }, + question: [ { name: 'www.nodejs.org', type: 5, class: 1 } ], + answer: + [ { name: 'www.nodejs.org', + type: 5, + class: 1, + ttl: 3600, + data: 'nodejs.org' } ], + authority: [], + additional: [], + edns_options: [], + payload: undefined } diff --git a/test/fixtures/www.yahoo.com.a.bin b/test/fixtures/www.yahoo.com.a.bin new file mode 100644 index 0000000000000000000000000000000000000000..e5d4da328911e225301883f750f3fa394960dd71 GIT binary patch literal 158 zcma!A(b&Mi$iT_~1kB~-<*b#78Tt9l$@#eqKw-uMJU}T%AXA2cpDis#H?6>!xjfyF zG3kK70d1(1ECVN7N-;?4fYAXrh#-S5gD4+RFfp$ZB%zy=mc(41Xn4TvKr~#J5I>TF YqSVBk16c=ZK$ZfXqRYT?Zl8)S0CRpLs{jB1 literal 0 HcmV?d00001 diff --git a/test/fixtures/www.yahoo.com.a.js b/test/fixtures/www.yahoo.com.a.js new file mode 100644 index 0000000..5a89d68 --- /dev/null +++ b/test/fixtures/www.yahoo.com.a.js @@ -0,0 +1,44 @@ +{ header: + { id: 23208, + qr: 1, + opcode: 0, + aa: 0, + tc: 0, + rd: 1, + ra: 1, + res1: 0, + res2: 0, + res3: 0, + rcode: 0 }, + question: [ { name: 'www.yahoo.com', type: 1, class: 1 } ], + answer: + [ { name: 'www.yahoo.com', + type: 5, + class: 1, + ttl: 284, + data: 'fd-fp3.wg1.b.yahoo.com' }, + { name: 'fd-fp3.wg1.b.yahoo.com', + type: 5, + class: 1, + ttl: 285, + data: 'ds-fp3.wg1.b.yahoo.com' }, + { name: 'ds-fp3.wg1.b.yahoo.com', + type: 5, + class: 1, + ttl: 45, + data: 'ds-any-fp3-lfb.wa1.b.yahoo.com' }, + { name: 'ds-any-fp3-lfb.wa1.b.yahoo.com', + type: 5, + class: 1, + ttl: 285, + data: 'ds-any-fp3-real.wa1.b.yahoo.com' }, + { name: 'ds-any-fp3-real.wa1.b.yahoo.com', + type: 1, + class: 1, + ttl: 45, + address: '206.190.36.45' } ], + authority: [], + additional: [], + edns_options: [], + payload: undefined, +} diff --git a/tests/.gitkeep b/tests/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/tests/fixtures b/tests/fixtures deleted file mode 120000 index 14bb724..0000000 --- a/tests/fixtures +++ /dev/null @@ -1 +0,0 @@ -../native-dns-packet/test/fixtures/ \ No newline at end of file