m_saveDir = TMP_DIR + "/" + dirName;
m_dbSaveDir = m_saveDir + "/db";
m_pluginsSaveDir = m_saveDir + "/plugins";
+ m_defaultDir = "/etc/security-tests/db_patterns/default";
}
CynaraTestEnv::~CynaraTestEnv()
removeDirIfExists(m_pluginsSaveDir);
removeDirIfExists(m_saveDir);
}
+
+void CynaraTestEnv::loadDefaultDatabase()
+{
+ CynaraMask mask;
+
+ if (m_dbPresent) {
+ removeDirFiles(CynaraTestConsts::DB_DIR);
+ copyCynaraFiles(m_defaultDir, CynaraTestConsts::DB_DIR);
+ }
+}