43 lines
999 B
C++
43 lines
999 B
C++
#include <eedb/db/data/PgUser.hpp>
|
|
|
|
#include <eedb/data/AuthIdentity.hpp>
|
|
#include <eedb/data/AuthInfo.hpp>
|
|
|
|
#include <eedb/db/model/auth_identity.h>
|
|
#include <eedb/db/model/auth_info.h>
|
|
#include <eedb/db/model/auth_token.h>
|
|
#include <eedb/db/model/user_action.h>
|
|
#include <eedb/db/model/user_audit.h>
|
|
#include <sqlpp11/sqlpp11.h>
|
|
|
|
#include <utils/DbTestBase.hpp>
|
|
|
|
constexpr eedb::user_audit t_user_audit;
|
|
constexpr eedb::user_action t_user_action;
|
|
constexpr eedb::auth_identity t_auth_identity;
|
|
constexpr eedb::auth_info t_auth_info;
|
|
constexpr eedb::auth_token t_auth_token;
|
|
|
|
class PgUserTest : public DbTestBase< PgUserTest > {
|
|
public:
|
|
PgUserTest() {
|
|
db().native()->start_transaction();
|
|
}
|
|
|
|
~PgUserTest() {
|
|
db().native()->rollback_transaction(false);
|
|
}
|
|
|
|
protected:
|
|
std::unique_ptr< eedb::PgUser > sut;
|
|
};
|
|
|
|
template <>
|
|
std::unique_ptr< PgTestDatabasePrepare > DbTestBase< PgUserTest >::_test_db = {};
|
|
|
|
using namespace sqlpp;
|
|
|
|
TEST_F(PgUserTest, initial) {
|
|
|
|
}
|