mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
new try
This commit is contained in:
parent
20d911a6d3
commit
ba42a04f79
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@ -275,10 +275,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build_test_community_server]
|
needs: [build_test_community_server]
|
||||||
services:
|
services:
|
||||||
nginx:
|
|
||||||
image: gradido/nginx:latest
|
|
||||||
ports:
|
|
||||||
- 80:80
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: gradido/mariadb:test
|
image: gradido/mariadb:test
|
||||||
env:
|
env:
|
||||||
@ -288,13 +284,6 @@ jobs:
|
|||||||
- 3306:3306
|
- 3306:3306
|
||||||
volumes:
|
volumes:
|
||||||
- db_vol:/var/lib/mysql
|
- db_vol:/var/lib/mysql
|
||||||
login-server:
|
|
||||||
image: gradido/login_server:latest
|
|
||||||
ports:
|
|
||||||
- 1200:1200
|
|
||||||
- 1201:1201
|
|
||||||
volumes:
|
|
||||||
- ~/configs/login_server:/etc/grd_login
|
|
||||||
steps:
|
steps:
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
|
|||||||
@ -38,31 +38,35 @@ void runMysql(std::string sqlQuery)
|
|||||||
|
|
||||||
int load() {
|
int load() {
|
||||||
// init server config, init seed array
|
// init server config, init seed array
|
||||||
std::clog << "[Gradido_LoginServer_Test::load]" << std::endl;
|
std::clog << "[load]" << std::endl;
|
||||||
Poco::AutoPtr<Poco::Util::LayeredConfiguration> test_config(new Poco::Util::LayeredConfiguration);
|
Poco::AutoPtr<Poco::Util::LayeredConfiguration> test_config(new Poco::Util::LayeredConfiguration);
|
||||||
try {
|
try {
|
||||||
auto cfg = new Poco::Util::PropertyFileConfiguration("Gradido_LoginServer_Test.properties");
|
auto cfg = new Poco::Util::PropertyFileConfiguration("Gradido_LoginServer_Test.properties");
|
||||||
std::clog << "[Gradido_LoginServer_Test::load] add config start" << std::endl;
|
std::clog << "[load] add config start" << std::endl;
|
||||||
test_config->add(cfg);
|
test_config->add(cfg);
|
||||||
std::clog << "[Gradido_LoginServer_Test::load] after add config" << std::endl;
|
std::clog << "[load] after add config" << std::endl;
|
||||||
}
|
}
|
||||||
catch (Poco::Exception& ex) {
|
catch (Poco::Exception& ex) {
|
||||||
printf("[load] error loading Gradido_LoginServer_Test.properties, make sure this file exist! (%s)\n", ex.displayText().data());
|
std::clog
|
||||||
|
<< "[load] error loading Gradido_LoginServer_Test.properties, make sure this file exist! "
|
||||||
|
<< ex.displayText().data()
|
||||||
|
<< std::endl;
|
||||||
|
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
std::clog << "[Gradido_LoginServer_Test::load] after loading config" << std::endl;
|
std::clog << "[load] after loading config" << std::endl;
|
||||||
|
|
||||||
if (!ServerConfig::initServerCrypto(*test_config)) {
|
if (!ServerConfig::initServerCrypto(*test_config)) {
|
||||||
//printf("[Gradido_LoginServer::%s] error init server crypto\n", __FUNCTION__);
|
//printf("[Gradido_LoginServer::%s] error init server crypto\n", __FUNCTION__);
|
||||||
printf("[load] error init server crypto");
|
printf("[load] error init server crypto");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
std::clog << "[Gradido_LoginServer_Test::load] after init server crypto" << std::endl;
|
std::clog << "[load] after init server crypto" << std::endl;
|
||||||
if (!ServerConfig::loadMnemonicWordLists()) {
|
if (!ServerConfig::loadMnemonicWordLists()) {
|
||||||
printf("[load] error in loadMnemonicWordLists");
|
printf("[load] error in loadMnemonicWordLists");
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
std::clog << "[Gradido_LoginServer_Test::load] after load mnemonic word lists" << std::endl;
|
std::clog << "[load] after load mnemonic word lists" << std::endl;
|
||||||
|
|
||||||
// start cpu scheduler
|
// start cpu scheduler
|
||||||
uint8_t worker_count = Poco::Environment::processorCount();
|
uint8_t worker_count = Poco::Environment::processorCount();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user