Small bug fixes for making tests work.
parent
b92645ac56
commit
70de6956ff
|
@ -43,6 +43,7 @@ namespace OpenSim.Data.Null
|
|||
public NullPresenceData(string connectionString, string realm)
|
||||
{
|
||||
if (Instance == null)
|
||||
{
|
||||
Instance = this;
|
||||
|
||||
//Console.WriteLine("[XXX] NullRegionData constructor");
|
||||
|
@ -51,9 +52,10 @@ namespace OpenSim.Data.Null
|
|||
p.SessionID = UUID.Zero;
|
||||
p.UserID = UUID.Zero.ToString();
|
||||
p.Data = new Dictionary<string, string>();
|
||||
p.Data["Online"] = "true";
|
||||
p.Data["Online"] = true.ToString();
|
||||
m_presenceData.Add(UUID.Zero, p);
|
||||
}
|
||||
}
|
||||
|
||||
public bool Store(PresenceData data)
|
||||
{
|
||||
|
@ -70,7 +72,9 @@ namespace OpenSim.Data.Null
|
|||
return Instance.Get(sessionID);
|
||||
|
||||
if (m_presenceData.ContainsKey(sessionID))
|
||||
{
|
||||
return m_presenceData[sessionID];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.Tests
|
|||
config.AddConfig("GridService");
|
||||
config.Configs["Modules"].Set("GridServices", "LocalGridServicesConnector");
|
||||
config.Configs["GridService"].Set("LocalServiceModule", "OpenSim.Services.GridService.dll:GridService");
|
||||
config.Configs["GridService"].Set("StorageProvider", "OpenSim.Data.Null.dll:NullRegionData");
|
||||
config.Configs["GridService"].Set("StorageProvider", "OpenSim.Data.Null.dll");
|
||||
|
||||
m_LocalConnector = new LocalGridServicesConnector(config);
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.Tests
|
|||
r2.HttpPort = 9002;
|
||||
r2.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0);
|
||||
s = new Scene(new RegionInfo());
|
||||
s.RegionInfo.RegionID = r1.RegionID;
|
||||
s.RegionInfo.RegionID = r2.RegionID;
|
||||
m_LocalConnector.AddRegion(s);
|
||||
|
||||
GridRegion r3 = new GridRegion();
|
||||
|
@ -104,7 +104,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.Tests
|
|||
r3.HttpPort = 9003;
|
||||
r3.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0);
|
||||
s = new Scene(new RegionInfo());
|
||||
s.RegionInfo.RegionID = r1.RegionID;
|
||||
s.RegionInfo.RegionID = r3.RegionID;
|
||||
m_LocalConnector.AddRegion(s);
|
||||
|
||||
m_LocalConnector.RegisterRegion(UUID.Zero, r1);
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence.Tests
|
|||
config.AddConfig("PresenceService");
|
||||
config.Configs["Modules"].Set("PresenceServices", "LocalPresenceServicesConnector");
|
||||
config.Configs["PresenceService"].Set("LocalServiceModule", "OpenSim.Services.PresenceService.dll:PresenceService");
|
||||
config.Configs["PresenceService"].Set("StorageProvider", "OpenSim.Data.Null.dll:NullPresenceData");
|
||||
config.Configs["PresenceService"].Set("StorageProvider", "OpenSim.Data.Null.dll");
|
||||
|
||||
m_LocalConnector = new LocalPresenceServicesConnector(config);
|
||||
}
|
||||
|
|
|
@ -82,6 +82,8 @@ namespace OpenSim.Services.GridService
|
|||
{
|
||||
m_RootInstance = this;
|
||||
|
||||
if (MainConsole.Instance != null)
|
||||
{
|
||||
MainConsole.Instance.Commands.AddCommand("grid", true,
|
||||
"show region",
|
||||
"show region <Region name>",
|
||||
|
@ -95,7 +97,7 @@ namespace OpenSim.Services.GridService
|
|||
"Set database flags for region",
|
||||
String.Empty,
|
||||
HandleSetFlags);
|
||||
|
||||
}
|
||||
m_HypergridLinker = new HypergridLinker(m_config, this, m_Database);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,7 +114,8 @@ namespace OpenSim.Services.GridService
|
|||
m_log.DebugFormat("[HYPERGRID LINKER]: Loaded all services...");
|
||||
}
|
||||
|
||||
|
||||
if (MainConsole.Instance != null)
|
||||
{
|
||||
MainConsole.Instance.Commands.AddCommand("hypergrid", false, "link-region",
|
||||
"link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>",
|
||||
"Link a hypergrid region", RunCommand);
|
||||
|
@ -126,6 +127,7 @@ namespace OpenSim.Services.GridService
|
|||
MainConsole.Instance.Commands.AddCommand("hypergrid", false, "show hyperlinks", "show hyperlinks <cr>",
|
||||
"List the HG regions", HandleShow);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region Link Region
|
||||
|
|
Loading…
Reference in New Issue