mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user