Add a groups module to the perms test suite

httptests
Diva Canto 2017-05-04 18:20:10 -07:00
parent ab4f870000
commit dd88319495
1 changed files with 9 additions and 0 deletions

View File

@ -72,12 +72,21 @@ namespace OpenSim.Tests.Permissions
IConfigSource config = new IniConfigSource();
config.AddConfig("Messaging");
config.Configs["Messaging"].Set("InventoryTransferModule", "InventoryTransferModule");
config.AddConfig("Modules");
config.Configs["Modules"].Set("InventoryAccessModule", "BasicInventoryAccessModule");
config.AddConfig("InventoryService");
config.Configs["InventoryService"].Set("LocalServiceModule", "OpenSim.Services.InventoryService.dll:XInventoryService");
config.Configs["InventoryService"].Set("StorageProvider", "OpenSim.Tests.Common.dll:TestXInventoryDataPlugin");
config.AddConfig("Groups");
config.Configs["Groups"].Set("Enabled", "true");
config.Configs["Groups"].Set("Module", "Groups Module V2");
config.Configs["Groups"].Set("StorageProvider", "OpenSim.Tests.Common.dll:TestGroupsDataPlugin");
config.Configs["Groups"].Set("ServicesConnectorModule", "Groups Local Service Connector");
config.Configs["Groups"].Set("LocalService", "local");
m_Scene = new SceneHelpers().SetupScene("Test", UUID.Random(), 1000, 1000, config);
// Add modules
SceneHelpers.SetupSceneModules(m_Scene, config, new DefaultPermissionsModule(), new InventoryTransferModule(), new BasicInventoryAccessModule());