summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-04-11 16:00:20 +0200
committerLinus Nordberg <linus@nordu.net>2016-04-11 16:00:20 +0200
commit6513f31960980a7d585f461fd05103406edf454e (patch)
tree1c8fa8fea15eb86e4171f372fccfeaf3c64555b0 /src
parente173e2a050caa21725b588757becb84b3c56460a (diff)
Make unit tests work again and move rrset files.
Diffstat (limited to 'src')
-rw-r--r--src/dnssecport.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dnssecport.erl b/src/dnssecport.erl
index acdc5c4..e9c3345 100644
--- a/src/dnssecport.erl
+++ b/src/dnssecport.erl
@@ -110,8 +110,8 @@ stop_port(State) ->
%%%%%%%%%%%%%%%%%%%%
%% Unit tests.
-define(TA_FILE, "test/testdata/dnssec/trust_anchors").
--define(REQ1_FILE, "test/testdata/dnssec/req-basic").
--define(REQ2_FILE, "test/testdata/dnssec/req-lowttl").
+-define(REQ1_FILE, "test/testdata/dnssec/testrrsets/req-basic").
+-define(REQ2_FILE, "test/testdata/dnssec/testrrsets/req-lowttl").
start_test_port() ->
create_port("priv/dnssecport", [?TA_FILE]).
@@ -122,10 +122,10 @@ stop_test_port(Port) ->
read_submission_from_file(Filename) ->
{ok, Data} = file:read_file(Filename),
- dns:decode_rrset(Data).
+ Data.
read_dec_enc_test_() ->
- DecodedRRset = read_submission_from_file(?REQ1_FILE),
+ DecodedRRset = dns:decode_rrset(read_submission_from_file(?REQ1_FILE)),
{ok, FileContent} = file:read_file(?REQ1_FILE),
[?_assertEqual(FileContent, dns:encode_rrset(DecodedRRset))].