aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang1-7/+8
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel1-162/+56
2012-08-20Add --force flag to "kick user" console command to allow bypassing of recent ↵Justin Clark-Casey (justincc)1-1/+1
race condition checks. This is to allow a second attempt to remove an avatar even if "show connections" shows them as already inactive (i.e. close has already been attempted once). You should only attempt --force if a normal kick fails. This is partly for diagnostics as we have seen some connections occasionally remain on lbsa plaza even if they are registered as inactive. This is not a permanent solution and may not work anyway - the ultimate solution is to stop this problem from happening in the first place.
2012-07-19Add TestCreateDuplicateRootScenePresence() regression test.Justin Clark-Casey (justincc)1-0/+23
2012-07-19Add basic TestCreateRootScenePresence() regression testJustin Clark-Casey (justincc)1-135/+144
2012-06-08Don't make duplicate call to ScenePresence.Close() separately in ↵Justin Clark-Casey (justincc)1-1/+3
ETM.DoTeleport() if an agent needs closing. This is always done as part of Scene.RemoveClient() Also refactors try/catching in Scene.RemoveClient() to log NREs instead of silently discarding, since these are useful symptoms of problems.
2012-05-01Add regression test for teleporting between neighbouring regions on the same ↵Justin Clark-Casey (justincc)1-1/+2
simulator This adds a non-advertised wait_for_callback option in [EntityTransfer]. Default is always true. Teleport tests disable the wait for callback from the destination region in order to run within a single thread.
2012-04-27Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)1-8/+10
the same simulator. This involves a large amount of change in test scene setup code to allow test scenes to share shared modules SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static May split these out into separate classes in the future.
2012-02-04Only look for an uploaded transactional asset in Scene.UpdateTaskInventory ↵Justin Clark-Casey (justincc)1-1/+1
if we have been passed a non-zero transaction ID. This resolves the recent regression from deeb728 where notecards could not be saved in prim inventories. This looks like a better solution than deeb728 since only non-caps updates pass in a transaction ID. Hopefully resolves http://opensimulator.org/mantis/view.php?id=5873
2011-12-03Split up test SceneHelpers to provide an AddChildScenePresence() callJustin Clark-Casey (justincc)1-0/+1
2011-12-03Remove T012_TestAddNeighbourRegion() and T013_TestRemoveNeighbourRegion() ↵Justin Clark-Casey (justincc)1-70/+5
since they don't do anything useful.
2011-12-03Extend TestCreateChildScenePresence to make assertions both at CreateAgent ↵Justin Clark-Casey (justincc)1-0/+16
stage and then at Scene.AddClient()
2011-12-03Add beginning of ScenePresenceAgentTests.TestCreateChildScenePresence()Justin Clark-Casey (justincc)1-11/+46
This required an option to be added to NullRegionData via ConnectionString for it to act as a non-static instance, so that regression tests (which only load this class once) don't get hopeless confused and complex to compensate. Normal standalone operation unaffected.
2011-12-03Use GetAgentCircuits() to receive a copy of the AgentCircuitsByUUID ↵Justin Clark-Casey (justincc)1-4/+2
dictionary rather than AgentCircuitManager.AgentCircuits directly in "show circuits" to avoid enumeration exceptions
2011-12-03Add agent circuit number checks to TestCloseAgent()Justin Clark-Casey (justincc)1-0/+4
2011-10-06Fixed line endings from previous commitDan Lake1-2/+2
2011-10-06Refactored "known child region" in ScenePresence. There were 4 differentDan Lake1-7/+4
ways to access the list/dictionary of child regions and locking was inconsistent. There are now public properties which enforce locks. Callers are no longer required to create new copies of lists.
2011-08-31get rid of appearance null checks - this is never nullJustin Clark-Casey (justincc)1-0/+1
2011-08-18Don't try to save changed attachment states when an NPC with attachments is ↵Justin Clark-Casey (justincc)1-2/+2
removed from the scene. This is done by introducing a PresenceType enum into ScenePresence which currently has two values, User and Npc. This seems better than a SaveAttachments flag in terms of code comprehension, though I'm still slightly uneasy about introducing these semantics to core objects
2011-08-06remove some obsolete tests that are now done elsewhereJustin Clark-Casey (justincc)1-53/+53
2011-08-06Add a test to check that ScenePresence and circuit go away when a root agent ↵Justin Clark-Casey (justincc)1-10/+17
is closed down
2011-08-06refactor: Change SceneHelpers.AddClient() to AddScenePresence().Justin Clark-Casey (justincc)1-31/+41
This seems to make more sense as we can get SP.ControllingClient
2011-08-06rip out sog generation methods in ScenePresenceAgentTests and use ↵Justin Clark-Casey (justincc)1-37/+7
SceneHelpers instead Not that it matters, since these tests are pretty bogus anyway. Also, renames some test classes for consistency.
2011-08-06rename TestHelper => TestHelpers for consistencyJustin Clark-Casey (justincc)1-7/+7
2011-08-06rename test SceneSetupHelpers -> SceneHelpers for consistencyJustin Clark-Casey (justincc)1-10/+10
2011-07-09Rename SceneSetupHelpers.AddRootAgent to AddClient() to better represent its ↵Justin Clark-Casey (justincc)1-1/+1
effects and return object
2011-05-21Get rid of OpenSim.Tests.Common.Setup subpackage in favour of just ↵Justin Clark-Casey (justincc)1-1/+0
OpenSim.Tests.Common instead
2011-03-09Upgrade nunit.framework.dll to version 2.5.9. Fix up tests appropriately.Justin Clark-Casey (justincc)1-1/+0
This version removes the NUnit.Framework.SyntaxHelpers namespace, so any modules with their own tests will need to delete this using statement.
2011-02-19Remove test T020_TestMakeRootAgent() which hasn't been active for ages anywayJustin Clark-Casey (justincc)1-19/+0
This test was non-viable. Keeping inactive T021_TestCrossToNewRegion() around for now since it's still useful for reference purposes in constructing a future working test.
2011-02-18If GridService.GetNeighbours() could not find the region then log a warning ↵Justin Clark-Casey (justincc)1-2/+5
rather than causing a null reference on the normal log line This also extends the TestChildAgentEstablished() test to actually activate the EntityTransferModule, though the test is not yet viable
2011-02-18extend TestChildAgentEstablished() test slightly to put in ↵Justin Clark-Casey (justincc)1-2/+9
EntityTransferModule. Not yet enabled.
2011-02-18On SceneSetupHelpers, go back to calling ScenePresence.CompleteMovement() ↵Justin Clark-Casey (justincc)1-19/+41
for the last stage of AddRootAgent() instead of SP.MakeRootAgent() Going this extra step doesn't appear to cause any test failures. This is arguably better for test purposes, though at some stage another method may arise which does just call AddRootAgent().
2011-02-18remove another unused test teardown methodJustin Clark-Casey (justincc)1-6/+0
2011-02-18separate attachment tests out into their own classJustin Clark-Casey (justincc)1-50/+0
2011-02-18Add very basic test which invokes the scene update loop once and checks the ↵Justin Clark-Casey (justincc)1-3/+0
frame number. This makes Scene.Update() match its original description of performing a single update, which also matches the semantics of SOG and ScenePresence.
2010-11-22add basic tests to check that under default permissions module owner can ↵Justin Clark-Casey (justincc)1-0/+2
delete objects and that non-owners (who are also not administrators, etc.) cannot
2010-09-06Add test to check persistence of newly added pre-linked objectsJustin Clark-Casey (justincc)1-3/+2
Added a MockRegionDataPlugin to do in-memory persistence for tests since adding this to OpenSim.Data.Null.NullDataStore doesn't seem appropriate NullDataStore can do nothing because OpenSim only ever retrieve region objects from the database on startup. Adding an in-memory store here would be unecessary overhead.
2010-08-20Unit test breakage fix.Diva Canto1-2/+7
2010-01-11CommunicationsManager deleted.Diva Canto1-5/+3
2010-01-10All Framework.Communications.Clients and Framework.Communications.Services ↵Diva Canto1-2/+2
deleted, including old LoginService.
2010-01-07* Finished SimulationServiceConnectorDiva Canto1-1/+1
* Started rerouting calls to UserService. * Compiles. May run.
2009-12-29Change teleports so the TeleportFlags are sent to the destination sim. ItMelanie1-3/+3
can now determine if a connection is from login, teleport or crossing. Needed for a meaningful banlines implementation
2009-10-30* Fix for a potential race condition in ScenePresence.AbsolutePositionJohn Hurliman1-2/+2
* Unified the way region handles are stored and used in ScenePresence * Fixed camera position for child agents * CheckForSignificantMovement now checks avatar and camera position (both are important for scene prioritization) * Removing debug code from the previous commit
2009-09-16SceneObjectGroup cleanup. Removes the default constructor and unnecessary ↵John Hurliman1-2/+1
null checks on m_rootPart
2009-09-01switching SerialiserModule to "new" region module schemedr scofield (aka dirk husemann)1-1/+1
2009-08-26* Another attempt at fixing the random spurious test error.Teravus Ovares (Dan Olivares)1-0/+6
* This time it might be the listening socket thread from HttpServer aborting with a non blocking thread abort exception. Hopefully calling Stop() on MainServer.Instance will solve that.
2009-08-19Commented T021_TestCrossToNewRegion because (1) it can fail on panda, and ↵Diva Canto1-1/+8
(2) it is not a meaningful representation of region crossing.
2009-08-17Commented 2 tests in ScenePresenceTests, one because things were being done ↵Diva Canto1-6/+13
in the wrong order, and the other because it NEEDS the inventory service set up. Test-writers, please please please do the scene setup properly EVERYWHERE. It's close to impossible to rely on tests that don't setup resource service references!
2009-08-17Add copyright header. Formatting cleanup.Jeff Ames1-1/+1
2009-08-16* ShortVersion, another attempt at fixing the test thread death that ↵Teravus Ovares (Dan Olivares)1-1/+1
randomly occurs. * LongVersion nIni may be causing the test thread death. Pausing OpenSimulator during startup causes a nIni error that makes debugging startup operations difficult for users. It might be because when it's in pause mode, something else reads from the nini config passed? If it is, it might not be fixable.. however, if it's concurrency that causes nini death it would make sense to give each section of the tests a new IConfigSource so that they don't read from the same configsource at the same time.