Ref T172, using centralized swift test server

Remark: The credentials for the server were distributed in multiple places, now cnetralized in one
This commit is contained in:
Klaus Basan
2017-12-28 18:24:09 +01:00
parent c1df30fc55
commit 2c60dfd133
5 changed files with 7 additions and 6 deletions

View File

@@ -233,7 +233,7 @@ namespace BlackCore
CServerList CGlobalSetup::getFsdTestServersPlusHardcodedServers() const
{
static const CServerList hardcoded({ CServer("swift", "swift Testserver", "vatsim-germany.org", 6809, CUser("1234567", "swift Test User", "", "123456"), CServer::FSDServerVatsim, true) });
static const CServerList hardcoded({ CServer::swiftFsdTestServer() });
CServerList testServers(m_fsdTestServers);
testServers.addIfAddressNotExists(hardcoded);
return testServers;

View File

@@ -49,7 +49,7 @@ namespace BlackCore
static const BlackMisc::Network::CServer &defaultValue()
{
using namespace BlackMisc::Network;
static const CServer dv("Testserver", "Client project testserver", "fsd.swift-project.org", 6809, CUser("guest", "Guest Client project", "", "guest"));
static const CServer dv = CServer::swiftFsdTestServer();
return dv;
}
};

View File

@@ -35,7 +35,8 @@ namespace BlackMisc
const CServer &CTestData::getTrafficServer()
{
static const CServer trafficServer("fooserver", "a foo server", "localhost", 1234,
CUser("112233", "Some real name", "email@xyz.com", "secret"));
CUser("112233", "Some real name", "email@xyz.com", "secret"),
CFsdSetup(), CEcosystem(CEcosystem::VATSIM), CServer::FSDServerVatsim);
return trafficServer;
}