Commit e1f56339 authored by Jelte Jansen's avatar Jelte Jansen

fixed pythonpath for notify_out_test

internal cc message format for notifies seems to have changed, updated the tests that check that format

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 185d0062
......@@ -534,14 +534,15 @@ TEST_F(AuthSrvTest, notify) {
// An internal command message should have been created and sent to an
// external module. Check them.
EXPECT_EQ("Xfrin", notify_session.msg_destination);
EXPECT_EQ("Zonemgr", notify_session.msg_destination);
ElementPtr notify_args = notify_session.sent_msg->get("command")->get(1);
EXPECT_EQ("", notify_args->get("zone_name")->stringValue());
EXPECT_EQ("IN", notify_args->get("rrclass")->stringValue());
cout << "[XX] ARGS: " << notify_args << endl;
EXPECT_EQ("IN", notify_args->get("zone_class")->stringValue());
// On success, the server should return a response to the notify.
headerCheck(parse_message, default_qid, Rcode::NOERROR(),
......@@ -566,7 +567,7 @@ TEST_F(AuthSrvTest, notifyForCHClass) {
// Other conditions should be the same, so simply confirm the RR class is
// set correctly.
ElementPtr notify_args = notify_session.sent_msg->get("command")->get(1);
EXPECT_EQ("CH", notify_args->get("rrclass")->stringValue());
EXPECT_EQ("CH", notify_args->get("zone_class")->stringValue());
TEST_F(AuthSrvTest, notifyEmptyQuestion) {
......@@ -7,6 +7,6 @@ PYCOVERAGE = $(PYTHON)
for pytest in $(PYTESTS) ; do \
echo Running test: $$pytest ; \
env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python \
env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/lib/dns/python/.libs \
$(PYCOVERAGE) $(abs_srcdir)/$$pytest ; \
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