projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow multi filter to do re-routing based on virtual target, i.e.
[metaproxy-moved-to-github.git]
/
src
/
test_filter_virt_db.cpp
diff --git
a/src/test_filter_virt_db.cpp
b/src/test_filter_virt_db.cpp
index
ded4057
..
f095373
100644
(file)
--- a/
src/test_filter_virt_db.cpp
+++ b/
src/test_filter_virt_db.cpp
@@
-1,4
+1,4
@@
-/* $Id: test_filter_virt_db.cpp,v 1.8 2005-10-30 17:13:36 adam Exp $
+/* $Id: test_filter_virt_db.cpp,v 1.11 2006-01-16 17:02:55 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-26,7
+26,7
@@
using namespace boost::unit_test;
using namespace boost::unit_test;
-BOOST_AUTO_TEST_CASE( test_filter_virt_db_1 )
+BOOST_AUTO_UNIT_TEST( test_filter_virt_db_1 )
{
try
{
{
try
{
@@
-37,7
+37,7
@@
BOOST_AUTO_TEST_CASE( test_filter_virt_db_1 )
}
}
}
}
-BOOST_AUTO_TEST_CASE( test_filter_virt_db_2 )
+BOOST_AUTO_UNIT_TEST( test_filter_virt_db_2 )
{
try
{
{
try
{
@@
-189,7
+189,7
@@
static void present(yp2::Package &pack, yp2::Router &router,
BOOST_CHECK_EQUAL(z_gdu->u.z3950->which, Z_APDU_presentResponse);
}
BOOST_CHECK_EQUAL(z_gdu->u.z3950->which, Z_APDU_presentResponse);
}
-BOOST_AUTO_TEST_CASE( test_filter_virt_db_3 )
+BOOST_AUTO_UNIT_TEST( test_filter_virt_db_3 )
{
try
{
{
try
{
@@
-202,7
+202,7
@@
BOOST_AUTO_TEST_CASE( test_filter_virt_db_3 )
yp2::filter::Virt_db vdb;
router.append(vdb);
yp2::filter::Virt_db vdb;
router.append(vdb);
- vdb.add_map_db2vhost("Default", "localhost:210");
+ vdb.add_map_db2target("Default", "localhost:210", "");
yp2::filter::Log filter_log2("BACK");
#if 0
router.append(filter_log2);
yp2::filter::Log filter_log2("BACK");
#if 0
router.append(filter_log2);