aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-11-17* Plumbing and basic setting of the GetMesh Cap Throttler.teravus1-0/+6
* Last step is to flip the throttle distribution.
2012-11-15Revert "Merge master into teravuswork", it should have been avination, not ↵teravus5-142/+12
master. This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
2012-11-13minor: Add some explanative method doc to SceneHelpers.SetupSceneModules()Justin Clark-Casey (justincc)1-0/+4
2012-11-12Remove the old style module loader and all references to itMelanie2-4/+4
2012-11-12Remove IRegionModule support from the test setup helperMelanie1-23/+5
2012-11-11Fix issues with the DynamicTextureModule and corresponding unit tests.Diva Canto1-5/+5
2012-11-10One more module converted: GodsModule.Diva Canto1-3/+3
2012-11-10Fix Unit tests -- the module contract was not being honored in the set up of ↵Diva Canto1-6/+6
scenes.
2012-11-09Update parent inventory folder version numbers when folders are ↵Justin Clark-Casey (justincc)1-0/+1
moved/created/deleted to match version numbers cached by viewers. This is done in the way that one would expect (e.g. moving a folder increments version number on both source and destination parent folders). This should hopefully improve viewer reuse of its cached inventory information. Currently MySQL only but will be implement for SQLite/MSSQL if there are no issues.
2012-11-04Pipe Throttle Update Event to EventManager, client --> ScenePresence --> ↵teravus1-1/+1
EventManager, so that modules can know when throttles are updated. The event contains no client specific data to preserve the possibility of 'multiple clients' and you must still call ControllingClient.GetThrottlesPacked(f) to see what the throttles actually are once the event fires. Hook EventManager.OnUpdateThrottle to GetTextureModule.
2012-10-25Fix script error messages not showing up in viewer 3 and associated viewers.Justin Clark-Casey (justincc)1-7/+3
Viewer 3 will discard such a message if the chat message owner does not match the avatar. We were filling the ownerID with the primID, so this never matched, hence viewer 3 did not see any script error messages. This commit fills the ownerID in with the prim ownerID so the script owner will receive script error messages. This does not affect viewer 1 and associated viewers which continue to process script errors as normal.
2012-09-24 add missing transactionID in SendInventoryItemCreateUpdate. and make useUbitUmarov1-0/+4
of it on inventoryAccessModule, etc. Most likelly it's needs where there is a transactionID not zero
2012-08-29Fix regression introduced in a0d178b2 (Sat Aug 25 02:00:17 2012) where ↵Justin Clark-Casey (justincc)4-2/+136
folders with asset type of 'Folder' and 'Unknown' were accidentally treated as system folders. This prevented more than one additional ordinary folder from being created in the base "My Inventory" user folder. Added regression test for this case. Switched tests to use XInventoryService with mostly implemented TestXInventoryDataPlugin rather than InventoryService Disabled TestLoadIarV0_1SameNameCreator() since this has not been working for a very long time (ever since XInventoryService) started being used since it doesnt' preserve creator data in the same way as InventoryService did and so effectively lost the OSPAs. However, nobody noticed/complained about this issue and OSPAs have been superseded by HG like creator information via the --home save oar/iar switch.
2012-08-20Add --force flag to "kick user" console command to allow bypassing of recent ↵Justin Clark-Casey (justincc)1-0/+5
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-08-15Add a skeleton for a name value storage associated with regionsMelanie1-0/+26
2012-08-15Add a skeleton for a name value storage associated with regionsMelanie1-0/+26
2012-07-24extend regression TestDetachScriptedAttachementToInventory() to check ↵Justin Clark-Casey (justincc)1-2/+20
correct running status on a re-rezzed attachment
2012-07-19Fix slow loading of task inventoryMelanie1-1/+1
2012-07-19Add EventManager.OnRegionLoginsStatusChange fired whenever logins are ↵Justin Clark-Casey (justincc)1-1/+1
enabled or disabled at any point, not just during initial startup. This replaces EventManager.OnLoginsEnabled which only fired when logins were first enabled and was affected by a bug where it would never fire if the region started with logins disabled.
2012-07-12Remove IClientAPI.GetClientEP() in favour of existing identical ↵Justin Clark-Casey (justincc)1-5/+0
IClientAPI.RemoteEndpoint.
2012-07-11Add regression TestDetachScriptedAttachmentToInventory()Justin Clark-Casey (justincc)1-1/+1
This currently only does a relatively crude check for a ScriptState node in the serialized xml
2012-07-11Add regression TestRezScriptedAttachmentsFromInventory() though this ↵Justin Clark-Casey (justincc)2-22/+59
currently only checks for the presence of script items, not for started scripts
2012-07-09Do not allow a script to attach a prim if its being sat upon.Justin Clark-Casey (justincc)2-17/+67
This prevents a stack overflow where a get position on the avatar will refer to the attachment which will in turn refer back to the avatar. This required recording of all sitting avatars on a prim which is done separately from recording the sit target avatar. Recording HashSet is null if there are no sitting avatars in order to save memory.
2012-07-07Remove redundant SetScene() function in Scene.AddSceneObject()Justin Clark-Casey (justincc)1-3/+20
This is always done later on in SceneGraph.AddSceneObject() if the call hasn't failed due to sanity checks. There's no other purpose for this method to exist and it's dangerous/pointless to call in other conditions.
2012-07-05Add OSSL function osForceAttachToAvatarFromInventory()Justin Clark-Casey (justincc)2-10/+47
This works like osForceAttachToAvatar() but allows an object to be directly specified from the script object's inventory rather than forcing it to be rezzed in the scene first. Still only attaches objects to the owner of the script. This allows one to bypass the complicated co-ordination of first rezzing objects in the scene before attaching them. Threat level high.
2012-06-27Automatically disable log4net before each regression test so that logging is ↵Justin Clark-Casey (justincc)2-1/+48
confined to a single test if it's turned on. This involves making test classes inherit from a common OpenSimTestCase. This will be applied to more classes as required.
2012-06-26refactor: Remove unnecessary AttachmentModuleTests.m_userId in favour of ↵Justin Clark-Casey (justincc)1-0/+5
local variables
2012-06-13Remove long obsolete and unused IClientAPI.KillEndDone()Justin Clark-Casey (justincc)1-4/+0
2012-06-07Add the ability to query the MYSQL databse for a list of the stored prim UUIDsMelanie1-0/+10
2012-05-23Environment Module - allows Environment settings for Viewer3 warning: ↵PixelTomsen1-1/+34
includes database region store migrations for mssql, mysql, sqlite enable/disable this module: Cap_EnvironmentSettings = "localhost" (for enable) Cap_EnvironmentSettings = "" (for disable) at ClientStack.LindenCaps section (OpenSimDefaults.ini file) or owerwrite in OpenSim.ini mantis: http://opensimulator.org/mantis/view.php?id=5860 Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-05-23Fix bug where an avatar that had an object they owned attached through ↵Justin Clark-Casey (justincc)1-3/+4
llAttachToAvatar() or osForceAttachToAvatar() would wrongly have next permissions come into play when they detached that object and rezzed it in scene. This is because the attachments module code was setting the 'object slam' bit by using PermissionMask.All Solution here is to route the attachment item creation call through the existing inventory code in BasicInventoryAccessModule rather than copy/pasted code in AttachmentsModule itself.
2012-05-17Comment out TestSameSimulatorSeparatedRegionsQueryAccessFails() regression ↵Justin Clark-Casey (justincc)1-0/+6
test logging accidentally left in
2012-05-17Add regression TestSameSimulatorSeparatedRegionsQueryAccessFails()Justin Clark-Casey (justincc)1-1/+1
2012-05-15Fix issue where loading OARs could sometimes result in link numbers being ↵Justin Clark-Casey (justincc)1-4/+4
reordered. This was because the parts in scene objects were sometimes not serialized in link order. This is perfectly fine since the parts still have the right link numbers, but an extra fix to adjust for this had not been done in the SerialiserModule methods that OAR loading used. Add regression test for same. Addresses http://opensimulator.org/mantis/view.php?id=5948, http://opensimulator.org/mantis/view.php?id=5749
2012-05-12ªTEST MESS* reduce animation packets send. Added onchangeanim event with ↵UbitUmarov1-0/+1
parameters to define if to add or remove, and if to send anims pack on that evocation, etc
2012-05-12Fix mono compiler warning.Justin Clark-Casey (justincc)1-1/+1
Last jenkins failure looked like a glitch.
2012-05-01Add regression test for teleporting between neighbouring regions on the same ↵Justin Clark-Casey (justincc)3-14/+106
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-30Create TestHelpers.EnableLogging() and DisableLogging() to turn logging on ↵Justin Clark-Casey (justincc)1-0/+46
and off within tests. This makes *.Tests.dll.config files no longer needed, hence deleted.
2012-04-27Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)2-97/+138
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-04-21Add TestSetPhysics() to SOP status testsJustin Clark-Casey (justincc)1-1/+1
2012-03-30Add simple login test with online friends. Add IFriendsModule.GrantRights() ↵Justin Clark-Casey (justincc)2-16/+32
for granting rights via a module call. Rename IFriendsModule.GetFriendPerms() -> GetRightsGrantedByFriend() to be more self-documenting and consistent with friends module terminology. Add some method doc.
2012-03-29Add back parts of reverted changes that were not concerned with child agent ↵Justin Clark-Casey (justincc)1-1/+1
caching. This adds ScenePresence to IClientAPI.SceneAgent earlier on in the add client process so that its information is available to EventManager.OnNewClient() and OnClientLogin() Also add a code comment as to why we're caching friend information for child agents.
2012-03-29Revert "Simplify friends caching by only doing this for root agents - no ↵Justin Clark-Casey (justincc)1-1/+1
functions require caching for child agents." We need to cache child agents so that friends object edit/delete permissions will work across boarders on regions hosted by different simulators. This reverts commit d9f7b8549b3cb9699eb8bd54242d31aac0f8241a.
2012-03-28Simplify friends caching by only doing this for root agents - no functions ↵Justin Clark-Casey (justincc)1-1/+1
require caching for child agents. This allows us to avoid unnecessary multiple calls to the friends service. All friends functions originate from the root agent and only go to other root agents in existing code. This also allows us to eliminate complex ref counting.
2012-03-21Instead of loading default avatar animations in both SLUtil and ↵Justin Clark-Casey (justincc)1-5/+0
AvatarAnimations, load just in AvatarAnimations instead. This lets us remove the dependency of OpenSim.Framework.dll on data/avataranimations.xml, which is not necessary for ROBUST. This commit also takes care of the odd situation where animations are stored and used internally with uppercase names (e.g. "STAND") but scripts refer to them with lowercase names (e.g. "sit").
2012-03-20minor: remove some mono compiler warningsJustin Clark-Casey (justincc)1-1/+1
2012-03-15 added ObjectPhysicsProperties http event message to send viewer that data. ↵UbitUmarov1-0/+4
For now on caps/EventQueue, and still only used on a material change...
2012-03-10BIG MESS. changed Iclient interface so only one event is used to inform ↵UbitUmarov1-0/+1
scene about position scale or rotation change by client (others can be added). Its served at SceneGraph that does permition checks, undostore and sends down to SOG. changed values are stored in a class (ObjectChangeData) and what is changed as a enum (ObjectChangeWhat) with bit fields and 'macros' of this for better readability (at top of scenegraph.cs lasy to find better place for now) this can be extended for other things clients changes and need undo/redo. SOG process acording to what is changed. Changed UNDO/redo to use this also (warning is only storing what is changed, previus stored all, this must be checked for side efects. to save all PRS change commented line in scenegraph). Still have excessive calls to ScheduleGroupForTerseUpdate. **** UNTESTED ****
2012-03-07minor: make NPC tests run in a given order, comment out log lines in mock ↵Justin Clark-Casey (justincc)1-11/+11
region data plugins, null out scene in script and npc torture tests, add other doc comments to torture tests
2012-03-07Stop individually deleting objects at the end of each ObjectTortureTest.Justin Clark-Casey (justincc)1-1/+1
We can now do this since the entire scene and all objects within it are now successfully gc'd at the end of these tests. This greatly improves the time taken to run each test (by reducing teardown time, not the time to actually do the test work that we're interested in). Slightly simplifies config read in Scene constructor to help facilitate this.