generated from Sithas/conan_template
Подготовка интеграционного теста
This commit is contained in:
@@ -19,20 +19,21 @@ using RouteAuthRegistrationExecutor = AuthRegistrationExecutor<beast::http::stri
|
||||
beast::http::string_body>;
|
||||
|
||||
BOOST_AUTO_TEST_CASE(AuthRegistrationExecutor_Succesful_Login)
|
||||
{
|
||||
{
|
||||
auto& args = boost::unit_test::framework::master_test_suite().argc;
|
||||
auto& argv = boost::unit_test::framework::master_test_suite().argv;
|
||||
|
||||
const std::string mysql_credentials = argv[1];
|
||||
|
||||
uad::SetMySqlSession(new mysqlx::Session(mysql_credentials));
|
||||
mysqlx::Session* mysql_session = new mysqlx::Session(mysql_credentials);
|
||||
|
||||
uad::SetMySqlSession(mysql_session);
|
||||
|
||||
auto user_dao = make_shared<MySQLUserDAO>(GetMySqlSession());
|
||||
auto executor = make_shared<RouteAuthRegistrationExecutor>(GetMySqlSession(), user_dao);
|
||||
|
||||
BOOST_CHECK(true == true);
|
||||
}
|
||||
|
||||
delete &GetMySqlSession();
|
||||
mysql_session->close();
|
||||
delete mysql_session;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user