Commit 34a083b7 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

update auth to changed AnswerProvider api

parent f11adb59
...@@ -174,7 +174,7 @@ class MessageAnswer : public DNSAnswer { ...@@ -174,7 +174,7 @@ class MessageAnswer : public DNSAnswer {
public: public:
MessageAnswer(AuthSrv*) {} MessageAnswer(AuthSrv*) {}
virtual void operator()(const IOMessage&, MessagePtr, virtual void operator()(const IOMessage&, MessagePtr,
OutputBufferPtr) const MessagePtr, OutputBufferPtr) const
{} {}
}; };
......
...@@ -141,7 +141,7 @@ TEST_F(AuthSrvTest, builtInQueryViaDNSServer) { ...@@ -141,7 +141,7 @@ TEST_F(AuthSrvTest, builtInQueryViaDNSServer) {
(*server.getDNSLookupProvider())(*io_message, parse_message, (*server.getDNSLookupProvider())(*io_message, parse_message,
response_obuffer, &dnsserv); response_obuffer, &dnsserv);
(*server.getDNSAnswerProvider())(*io_message, parse_message, (*server.getDNSAnswerProvider())(*io_message, parse_message,
response_obuffer); response_message, response_obuffer);
createBuiltinVersionResponse(default_qid, response_data); createBuiltinVersionResponse(default_qid, response_data);
EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData, EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData,
...@@ -156,7 +156,7 @@ TEST_F(AuthSrvTest, iqueryViaDNSServer) { ...@@ -156,7 +156,7 @@ TEST_F(AuthSrvTest, iqueryViaDNSServer) {
(*server.getDNSLookupProvider())(*io_message, parse_message, (*server.getDNSLookupProvider())(*io_message, parse_message,
response_obuffer, &dnsserv); response_obuffer, &dnsserv);
(*server.getDNSAnswerProvider())(*io_message, parse_message, (*server.getDNSAnswerProvider())(*io_message, parse_message,
response_obuffer); response_message, response_obuffer);
UnitTestUtil::readWireData("iquery_response_fromWire.wire", UnitTestUtil::readWireData("iquery_response_fromWire.wire",
response_data); response_data);
......
...@@ -99,6 +99,7 @@ protected: ...@@ -99,6 +99,7 @@ protected:
MockSession notify_session; MockSession notify_session;
MockServer dnsserv; MockServer dnsserv;
isc::dns::Message request_message; isc::dns::Message request_message;
isc::dns::MessagePtr response_message;
isc::dns::MessagePtr parse_message; isc::dns::MessagePtr parse_message;
const isc::dns::qid_t default_qid; const isc::dns::qid_t default_qid;
const isc::dns::Opcode opcode; const isc::dns::Opcode opcode;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment