X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_rewrite.cpp;h=360246a71e620021164f05da8ff7d79cd7798b64;hb=4f5fe9b621891d0d4eabbd7dbcba65f96f11f528;hp=2e4ae545a40a2607da333810356157b0f1f34006;hpb=41ddc790e888e2b0cfe5da66a34e26e737e20b54;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_rewrite.cpp b/src/test_filter_rewrite.cpp index 2e4ae54..360246a 100644 --- a/src/test_filter_rewrite.cpp +++ b/src/test_filter_rewrite.cpp @@ -38,23 +38,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA using namespace boost::unit_test; namespace mp = metaproxy_1; -/* - * The global testconfig is commented out, as it won't even compile - * on old Centos5 machines -struct TestConfig { - TestConfig() - { - std::cout << "global setup\n"; - yaz_log_init_level(YLOG_ALL); - } - ~TestConfig() - { - std::cout << "global teardown\n"; - } -}; - -BOOST_GLOBAL_FIXTURE( TestConfig ); -*/ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) { @@ -69,30 +52,44 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) "\n" " \n" - " \n" - " \n" + " \n" + " \n" " \n" " \n" - " \n" - " \n" - " \n" + " \n" + " \n" + " \n" + " \n" + " \n" " \n" " \n" - " \n" - " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" " \n" " \n" - " \n" - " \n" - " \n" - " \n" - " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" " \n" "\n" ; @@ -121,7 +118,6 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) const char *resp_buf = "HTTP/1.1 200 OK\r\n" - "Content-Length: 441\r\n" "Content-Type: text/html\r\n" "Link: ; rel=absolute\r\n" "Link: ; rel=relative\r\n" @@ -133,7 +129,9 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) "}" "" "" - "" + "" "" "Welcome to our website. It doesn't make it easy to get pro" "xified" @@ -142,11 +140,13 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) "" " Another abs link" "" + "" + "" "
Welcome to our website. It doesn't make it easy to get pro" "xified" @@ -142,11 +140,13 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 ) "" " Another abs link" "" + "" + "" "