* Check in login service tests beachhead

0.6.2-post-fixes
Justin Clarke Casey 2009-01-05 16:30:35 +00:00
parent d8a2ad5cb5
commit 0b8d22ab54
5 changed files with 17 additions and 12 deletions

View File

@ -316,6 +316,7 @@ namespace OpenSim.Grid.UserServer
m_log.InfoFormat( m_log.InfoFormat(
"[LOGIN]: Telling {0} @ {1},{2} ({3}) to prepare for client connection", "[LOGIN]: Telling {0} @ {1},{2} ({3}) to prepare for client connection",
regionInfo.regionName, response.RegionX, response.RegionY, regionInfo.httpServerURI); regionInfo.regionName, response.RegionX, response.RegionY, regionInfo.httpServerURI);
// Update agent with target sim // Update agent with target sim
user.CurrentAgent.Region = regionInfo.UUID; user.CurrentAgent.Region = regionInfo.UUID;
user.CurrentAgent.Handle = regionInfo.regionHandle; user.CurrentAgent.Handle = regionInfo.regionHandle;

View File

@ -303,11 +303,9 @@ namespace OpenSim.Region.Communications.Local
string seedcap = "http://"; string seedcap = "http://";
if (serversInfo.HttpUsesSSL) if (serversInfo.HttpUsesSSL)
{ {
seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/"; seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/";
} }
else else
{ {
@ -320,9 +318,11 @@ namespace OpenSim.Region.Communications.Local
m_log.InfoFormat( m_log.InfoFormat(
"[LOGIN]: Telling {0} @ {1},{2} ({3}) to prepare for client connection", "[LOGIN]: Telling {0} @ {1},{2} ({3}) to prepare for client connection",
regionInfo.RegionName, response.RegionX, response.RegionY, regionInfo.ServerURI); regionInfo.RegionName, response.RegionX, response.RegionY, regionInfo.ServerURI);
// Update agent with target sim // Update agent with target sim
user.CurrentAgent.Region = regionInfo.RegionID; user.CurrentAgent.Region = regionInfo.RegionID;
user.CurrentAgent.Handle = regionInfo.RegionHandle; user.CurrentAgent.Handle = regionInfo.RegionHandle;
// Prepare notification // Prepare notification
Login loginParams = new Login(); Login loginParams = new Login();
loginParams.Session = user.CurrentAgent.SessionID; loginParams.Session = user.CurrentAgent.SessionID;

View File

@ -2860,7 +2860,6 @@ namespace OpenSim.Region.Environment.Scenes
if (RegionInfo.EstateSettings.IsBanned(agentId)) if (RegionInfo.EstateSettings.IsBanned(agentId))
return; return;
String capsObjectPath = GetCapsPath(agentId); String capsObjectPath = GetCapsPath(agentId);
m_log.DebugFormat( m_log.DebugFormat(

View File

@ -36,7 +36,12 @@ namespace OpenSim.Tests.Common.Mock
public class TestCommunicationsManager : CommunicationsManager public class TestCommunicationsManager : CommunicationsManager
{ {
public TestCommunicationsManager() public TestCommunicationsManager()
: base(null, null, null, false, null) : this(null)
{
}
public TestCommunicationsManager(NetworkServersInfo serversInfo)
: base(serversInfo, null, null, false, null)
{ {
LocalInventoryService lis = new LocalInventoryService(); LocalInventoryService lis = new LocalInventoryService();
m_interServiceInventoryService = lis; m_interServiceInventoryService = lis;