diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs index 7127644..3d51a63 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs | |||
@@ -39,6 +39,8 @@ using OpenSim.Region.CoreModules.Framework.EntityTransfer; | |||
39 | using OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation; | 39 | using OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation; |
40 | using OpenSim.Region.CoreModules.World.Permissions; | 40 | using OpenSim.Region.CoreModules.World.Permissions; |
41 | using OpenSim.Tests.Common; | 41 | using OpenSim.Tests.Common; |
42 | using OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups; | ||
43 | using System.Threading; | ||
42 | 44 | ||
43 | namespace OpenSim.Region.Framework.Scenes.Tests | 45 | namespace OpenSim.Region.Framework.Scenes.Tests |
44 | { | 46 | { |
@@ -190,7 +192,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
190 | // We need to set up the permisions module on scene B so that our later use of agent limit to deny | 192 | // We need to set up the permisions module on scene B so that our later use of agent limit to deny |
191 | // QueryAccess won't succeed anyway because administrators are always allowed in and the default | 193 | // QueryAccess won't succeed anyway because administrators are always allowed in and the default |
192 | // IsAdministrator if no permissions module is present is true. | 194 | // IsAdministrator if no permissions module is present is true. |
193 | SceneHelpers.SetupSceneModules(sceneB, config, new CapabilitiesModule(), new PermissionsModule(), etmB); | 195 | SceneHelpers.SetupSceneModules(sceneB, config, new CapabilitiesModule(), new DefaultPermissionsModule(), etmB); |
194 | 196 | ||
195 | AgentCircuitData acd = SceneHelpers.GenerateAgentData(userId); | 197 | AgentCircuitData acd = SceneHelpers.GenerateAgentData(userId); |
196 | TestClient tc = new TestClient(acd, sceneA); | 198 | TestClient tc = new TestClient(acd, sceneA); |
@@ -229,7 +231,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
229 | 231 | ||
230 | ScenePresence spAfterCrossSceneB = sceneB.GetScenePresence(originalSp.UUID); | 232 | ScenePresence spAfterCrossSceneB = sceneB.GetScenePresence(originalSp.UUID); |
231 | 233 | ||
232 | // sceneB agent should also still be root | 234 | // sceneB agent should still be child |
233 | Assert.That(spAfterCrossSceneB.IsChildAgent, Is.True); | 235 | Assert.That(spAfterCrossSceneB.IsChildAgent, Is.True); |
234 | 236 | ||
235 | // sceneB should ignore unauthorized attempt to upgrade agent to root | 237 | // sceneB should ignore unauthorized attempt to upgrade agent to root |
@@ -244,4 +246,4 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
244 | Assert.That(spAfterCrossSceneB.IsChildAgent, Is.True); | 246 | Assert.That(spAfterCrossSceneB.IsChildAgent, Is.True); |
245 | } | 247 | } |
246 | } | 248 | } |
247 | } \ No newline at end of file | 249 | } |