aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs')
-rw-r--r--OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs19
1 files changed, 6 insertions, 13 deletions
diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
index 837f4e2..97d4ace 100644
--- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
+++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
@@ -137,7 +137,7 @@ namespace OpenSim.Tests.Common.Setup
137 // For now, always started a 'real' authentication service 137 // For now, always started a 'real' authentication service
138 StartAuthenticationService(testScene, true); 138 StartAuthenticationService(testScene, true);
139 139
140 LocalInventoryServicesConnector inventoryService = StartInventoryService(testScene, realServices.Contains("inventory")); 140 LocalInventoryServicesConnector inventoryService = StartInventoryService(testScene);
141 StartGridService(testScene, true); 141 StartGridService(testScene, true);
142 LocalUserAccountServicesConnector userAccountService = StartUserAccountService(testScene); 142 LocalUserAccountServicesConnector userAccountService = StartUserAccountService(testScene);
143 LocalPresenceServicesConnector presenceService = StartPresenceService(testScene); 143 LocalPresenceServicesConnector presenceService = StartPresenceService(testScene);
@@ -208,24 +208,17 @@ namespace OpenSim.Tests.Common.Setup
208 //m_authenticationService = service; 208 //m_authenticationService = service;
209 } 209 }
210 210
211 private static LocalInventoryServicesConnector StartInventoryService(Scene testScene, bool real) 211 private static LocalInventoryServicesConnector StartInventoryService(Scene testScene)
212 { 212 {
213 LocalInventoryServicesConnector inventoryService = new LocalInventoryServicesConnector(); 213 LocalInventoryServicesConnector inventoryService = new LocalInventoryServicesConnector();
214 IConfigSource config = new IniConfigSource(); 214
215 IConfigSource config = new IniConfigSource();
215 config.AddConfig("Modules"); 216 config.AddConfig("Modules");
216 config.AddConfig("InventoryService"); 217 config.AddConfig("InventoryService");
217 config.Configs["Modules"].Set("InventoryServices", "LocalInventoryServicesConnector"); 218 config.Configs["Modules"].Set("InventoryServices", "LocalInventoryServicesConnector");
218 219 config.Configs["InventoryService"].Set("LocalServiceModule", "OpenSim.Services.InventoryService.dll:InventoryService");
219 if (real)
220 {
221 config.Configs["InventoryService"].Set("LocalServiceModule", "OpenSim.Services.InventoryService.dll:InventoryService");
222 }
223 else
224 {
225 config.Configs["InventoryService"].Set("LocalServiceModule", "OpenSim.Tests.Common.dll:MockInventoryService");
226 }
227
228 config.Configs["InventoryService"].Set("StorageProvider", "OpenSim.Tests.Common.dll"); 220 config.Configs["InventoryService"].Set("StorageProvider", "OpenSim.Tests.Common.dll");
221
229 inventoryService.Initialise(config); 222 inventoryService.Initialise(config);
230 inventoryService.AddRegion(testScene); 223 inventoryService.AddRegion(testScene);
231 inventoryService.RegionLoaded(testScene); 224 inventoryService.RegionLoaded(testScene);