MaxScale/maxscale-system-test/fw_copy_rules.cpp
Markus Mäkelä 049eb68254 Combine redundant dbfwfilter tests
The fwf test now only tests the functionality of the rules themselves, not
the parsing. The fwf_syntax test handles the testing of the parser. The
fwf2 test was removed as it was almost identical with the original fwf
test.
2017-09-21 09:36:50 +03:00

16 lines
422 B
C++

#include "fw_copy_rules.h"
#include <sstream>
void copy_rules(TestConnections* Test, const char* rules_name, const char* rules_dir)
{
std::stringstream src;
std::stringstream dest;
src << rules_dir << "/" << rules_name;
dest << Test->maxscale_access_homedir << "/rules/rules.txt";
Test->set_timeout(30);
Test->copy_to_maxscale(src.str().c_str(), dest.str().c_str());
Test->stop_timeout();
}