-// Copyright (C) 2010, 2014 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
#include <sstream>
#include <fstream>
#include <cerrno>
-#include <climits>
#include <boost/algorithm/string.hpp> // for iequals
#include <boost/lexical_cast.hpp>
-// Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010, 2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
TEST_F(MasterLoadTest, DISABLED_loadRRWithComment) {
// Comment at the end of line should be ignored and the RR should be
// accepted.
- rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 "
+ rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 "
"AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH "
"zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE= ; key id = 40430\n";
masterLoad(rr_stream, origin, zclass, callback);
TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentNoSpace) {
// Similar to the previous one, but there's no space before comments.
// It should still work.
- rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 "
+ rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 "
"AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH "
"zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE=; key id = 40430\n";
masterLoad(rr_stream, origin, zclass, callback);
TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentEmptyComment) {
// Similar to the previous one, but there's no data after the ;
// It should still work.
- rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 "
+ rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 "
"AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH "
"zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE= ;\n";
masterLoad(rr_stream, origin, zclass, callback);
TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentEmptyCommentNoSpace) {
// Similar to the previous one, but there's no space before or after ;
// It should still work.
- rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 "
+ rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 "
"AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH "
"zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE=;\n";
masterLoad(rr_stream, origin, zclass, callback);