change ossl tests setup

This commit is contained in:
UbitUmarov
2018-10-20 16:01:26 +01:00
parent 2c3522a826
commit 47488c9017
3 changed files with 19 additions and 4 deletions

View File

@@ -64,11 +64,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
IConfigSource initConfigSource = new IniConfigSource();
IConfig config = initConfigSource.AddConfig("XEngine");
config.Set("Enabled", "true");
config.Set("AllowOSFunctions", "true");
config.Set("OSFunctionThreatLevel", "Severe");
config = initConfigSource.AddConfig("NPC");
config.Set("Enabled", "true");
config = initConfigSource.AddConfig("OSSL");
config.Set("DebuggerSafe", false);
config.Set("AllowOSFunctions", "true");
config.Set("OSFunctionThreatLevel", "Severe");
m_scene = new SceneHelpers().SetupScene();
SceneHelpers.SetupSceneModules(m_scene, initConfigSource, new AvatarFactoryModule(), new NPCModule());

View File

@@ -71,6 +71,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
xengineConfig.Set("AllowOSFunctions", "true");
xengineConfig.Set("OSFunctionThreatLevel", "Severe");
IConfig oconfig = initConfigSource.AddConfig("OSSL");
oconfig.Set("DebuggerSafe", false);
oconfig.Set("Enabled", "true");
oconfig.Set("AllowOSFunctions", "true");
oconfig.Set("OSFunctionThreatLevel", "Severe");
IConfig modulesConfig = initConfigSource.AddConfig("Modules");
modulesConfig.Set("InventoryAccessModule", "BasicInventoryAccessModule");

View File

@@ -66,11 +66,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
IConfigSource initConfigSource = new IniConfigSource();
IConfig config = initConfigSource.AddConfig("XEngine");
config.Set("Enabled", "true");
config.Set("AllowOSFunctions", "true");
config.Set("OSFunctionThreatLevel", "Severe");
config = initConfigSource.AddConfig("NPC");
config.Set("Enabled", "true");
config = initConfigSource.AddConfig("OSSL");
config.Set("DebuggerSafe", false);
config.Set("AllowOSFunctions", "true");
config.Set("OSFunctionThreatLevel", "Severe");
m_scene = new SceneHelpers().SetupScene();
SceneHelpers.SetupSceneModules(
m_scene, initConfigSource, new AvatarFactoryModule(), new AttachmentsModule(), new NPCModule());