aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests/RegionTests.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-07-14comment out obsolete assert that 'item has been passed to another user since ↵Justin Clark-Casey (justincc)1-1/+1
it was last set' perms flag was set when a prim item was added to a scene object
2010-07-13Revamp the permissions propagation. This MAY mess up. Please test.Melanie1-1/+1
Change the slam bit from 3 to 4. Assume the old slam bit is always set. The new slam bit is a "changed owner" bit, correcting a bug where an item passed from the creator to another with less than full perms, then back (sale test) would arrive back full perm. Lots of in-code docs.
2010-07-13Revamp the permissions propagation. This MAY mess up. Please test.Melanie Thielker1-1/+1
Change the slam bit from 3 to 4. Assume the old slam bit is always set. The new slam bit is a "changed owner" bit, correcting a bug where an item passed from the creator to another with less than full perms, then back (sale test) would arrive back full perm. Lots of in-code docs.
2010-05-23Various minor changes in the data testsAlexRa1-2/+2
2010-05-23Unitests: Asset, Estate, Region (the "legacy" one), InventoryAlexRa1-1/+26
The tests have been modified to work under NUnit 2.4.6 (the one currently used in the project). They will also work with NUnit 2.5+ as is, but will look better if you #define NUNIT25 for them.
2010-05-23Bugfix in tests (must clear db before migrations, not after)AlexRa1-1/+1
2010-05-23Corrections in RegionTests.cs. It now fully works!AlexRa1-48/+75
The problem was that some tests relied on prior tests to leave the DB in a particular state, but the test class cleared the DB every time. The affected tests have been merged into one to remove the dependencies. tested on all 3 Dbs, all tests green.
2010-05-23All data tests made DBMS-independentAlexRa1-40/+61
2010-02-16Disable Data.BasicRegioNTest.T016_RandomSogWithSceneParts() temporarily ↵Justin Clark-Casey (justincc)1-1/+1
since it's making the tests fail but the cause is not obvious (wrapped up in layers of reflection)
2009-12-31Put PassCollision on the ignore list for testing, since we don't save thatMelanie1-0/+1
yet.
2009-11-12minor: remove some mono compiler warningsJustin Clark-Casey (justincc)1-1/+1
2009-10-19* Removed OpenSim.Data.NHibernateJohn Hurliman1-1/+0
* Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing
2009-10-01Formatting cleanup.Jeff Ames1-1/+1
2009-10-01Formatting cleanup.Jeff Ames1-18/+18
2009-09-16SceneObjectGroup cleanup. Removes the default constructor and unnecessary ↵John Hurliman1-4/+2
null checks on m_rootPart
2009-08-16* Added Expression based ignores to the PropertyScrambler, which makes a lot ↵Kunnis1-12/+12
of the tests clearer because I'm not constantly resetting properties.
2009-08-16* Modified SQLite/SQLiteInventoryStore.cs to not throw if the inventory row ↵Kunnis1-1/+3
does not exist, to match the mysql behavior. * Modified SQLite/SQLiteRegionData.cs to only persist temporary items following the same rules mysql uses. * Added another ignore to the inventory test that was missing. * Added a few more ignores to the RegionTest that the first version of my test were missing. * Added ignoring the root Folder ID, which is set by the inventory system. * Added several improvements to the PropertyCompareConstraint: Protection against infinite loops, added IComparable<T> (for UUID) and moved IComparable before the property matching. * Fixed a bug where I was saving the inside of the ignore expression instead of the outside of it.
2009-08-16Adding in Reflection-based testing, to ensure that all properties are covered.Kunnis1-0/+47
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-04-13make the asserts spit out messages about their test namesSean Dague1-166/+166
2009-04-08* Make it possible to store creator strings in user inventory items as well ↵Justin Clarke Casey1-2/+2
as UUIDs * All existing functionality should be unaffected. * Database schemas have not been changed.
2009-04-01* Removes some hard-coded magic numbers relating to RegionSize. We now use ↵Adam Frisby1-5/+5
Constants.RegionSize as expected. (Working towards enlarged or smaller regionsizes that arent multiples of 256m) * Adds minor functionality to MRM Scripting.
2009-02-22Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:Charles Krinke1-2/+5
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
2009-02-20* Apply http://opensimulator.org/mantis/view.php?id=3185idb1-2/+3
* Fixes NHibernate problem where prim contents show as textures * Thanks Tommil!
2009-02-19* Apply http://opensimulator.org/mantis/view.php?id=3151Justin Clarke Casey1-0/+12
* Fixes NHibernate overflow exception when saving some objects (under at least PostgreSQL 8.3) * Thanks Tommil!
2009-02-12* optimized usings.lbsa711-7/+6
2009-02-10this is step 2 of 2 of the OpenSim.Region.Environment refactor.Dr Scofield1-1/+1
NOTHING has been deleted or moved off to forge at this point. what has happened is that OpenSim.Region.Environment.Modules has been split in two: - OpenSim.Region.CoreModules: all those modules that are either directly or indirectly referenced from other OpenSim packages, or that provide functionality that the OpenSim developer community considers core functionality: CoreModules/Agent/AssetTransaction CoreModules/Agent/Capabilities CoreModules/Agent/TextureDownload CoreModules/Agent/TextureSender CoreModules/Agent/TextureSender/Tests CoreModules/Agent/Xfer CoreModules/Avatar/AvatarFactory CoreModules/Avatar/Chat/ChatModule CoreModules/Avatar/Combat CoreModules/Avatar/Currency/SampleMoney CoreModules/Avatar/Dialog CoreModules/Avatar/Friends CoreModules/Avatar/Gestures CoreModules/Avatar/Groups CoreModules/Avatar/InstantMessage CoreModules/Avatar/Inventory CoreModules/Avatar/Inventory/Archiver CoreModules/Avatar/Inventory/Transfer CoreModules/Avatar/Lure CoreModules/Avatar/ObjectCaps CoreModules/Avatar/Profiles CoreModules/Communications/Local CoreModules/Communications/REST CoreModules/Framework/EventQueue CoreModules/Framework/InterfaceCommander CoreModules/Hypergrid CoreModules/InterGrid CoreModules/Scripting/DynamicTexture CoreModules/Scripting/EMailModules CoreModules/Scripting/HttpRequest CoreModules/Scripting/LoadImageURL CoreModules/Scripting/VectorRender CoreModules/Scripting/WorldComm CoreModules/Scripting/XMLRPC CoreModules/World/Archiver CoreModules/World/Archiver/Tests CoreModules/World/Estate CoreModules/World/Land CoreModules/World/Permissions CoreModules/World/Serialiser CoreModules/World/Sound CoreModules/World/Sun CoreModules/World/Terrain CoreModules/World/Terrain/DefaultEffects CoreModules/World/Terrain/DefaultEffects/bin CoreModules/World/Terrain/DefaultEffects/bin/Debug CoreModules/World/Terrain/Effects CoreModules/World/Terrain/FileLoaders CoreModules/World/Terrain/FloodBrushes CoreModules/World/Terrain/PaintBrushes CoreModules/World/Terrain/Tests CoreModules/World/Vegetation CoreModules/World/Wind CoreModules/World/WorldMap - OpenSim.Region.OptionalModules: all those modules that are not core modules: OptionalModules/Avatar/Chat/IRC-stuff OptionalModules/Avatar/Concierge OptionalModules/Avatar/Voice/AsterixVoice OptionalModules/Avatar/Voice/SIPVoice OptionalModules/ContentManagementSystem OptionalModules/Grid/Interregion OptionalModules/Python OptionalModules/SvnSerialiser OptionalModules/World/NPC OptionalModules/World/TreePopulator
2009-02-06This changeset is the step 1 of 2 in refactoringDr Scofield1-2/+2
OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
2009-01-11Thank you kindly, Tlaukkan (Tommil) for a patch that:Charles Krinke1-12/+36
Fixed all NHibernate unit tests by implementing missing persistency methods, tables, columns and fixing bugs in the existing implementation. Two minor changes to classes outside NHibernate module: Added Scene instantiation for SceneObjectGroup in OpenSim.Data.Tests.BasicRegionTest as this was required by the NHibernate persistency. In the process added also mock constructor to Scene which only populates RegionInfo in the scene which is used by ScenePart.RegionUUID. NHibernate module is still in experimental state and has not been tested at opensim region or ugaim runtime configuration. Adding unit tests to build is not yet advisable nor using NHibernate module in any production setup.
2008-12-17* Implement 'Save Object Back to My Inventory'. On the Linden client this ↵Justin Clarke Casey1-1/+1
is in the Tools menu available when editing an object * This facility allows you to save changes to an object that you've rezzed into a region back into their original inventory item without having to take a copy of the rezzed object.
2008-12-03* Minor test correction, comment removalSean Dague1-1/+0
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-26Change the max value of the bytes in tests to 127. MySQL bytes are signedMelanie Thielker1-5/+5
by default
2008-11-26Yay for unit tests. Increased the type width of the prims and primshapesMelanie Thielker1-2/+2
tables, and changed the database modules to actually push these doubles down into the database layer.
2008-11-26Reduce the numerical range of text values to match what MySQL offersMelanie Thielker1-13/+13
2008-11-26Comment one more field that can't be tested that way anymoreMelanie Thielker1-1/+2
2008-11-26Fix 2 of the failed tests. Cause terrain queries to return null when noMelanie Thielker1-8/+0
terrain is found, rather than a default "0" terrain. Remove the "remove object wrong region" test. UUIDs either are unique or they're not. This test tested a bad behavior I have chosen not to duplicate.
2008-11-25* Make a step on removing direct access to TaskInventoryDictionary from ↵Justin Clarke Casey1-5/+5
other packages
2008-11-25* Remove direct access to Inventory.SerialJustin Clarke Casey1-2/+2
2008-11-21* refactor: Rip out SOP inventory from the partial into a separate classJustin Clarke Casey1-8/+8
* SceneObjectPartInventory.cs isn't a particularly good name but it's probably not got a long life * A proper inventory interface to follow * Parallel changes for other inventory partial classes to follow at a later date
2008-11-18Fixed MySQL and SQLite so they will save theSean Dague1-9/+139
variable sun vector, adding 3 new fields on both. From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-15Update svn properties, minor formatting cleanup.Jeff Ames1-2/+2
2008-11-14Try to make the test pass againMelanie Thielker1-1/+1
2008-11-14Reapplying a revised version of Christopher Yeoh's (IBM) patch for allowMelanie Thielker1-2/+4
inventory drop. Also adds a new flags, "propagate_permissions" to OpenSim.ini to control that feature.
2008-11-14reverting #7295, as it still fails a test case (as pointed out veryDr Scofield1-4/+2
kindly by sean) --- lesson learned: just running a "make test" is not sufficient, you need to precede it by a "make clean".
2008-11-14From: Christopher Yeoh <cyeoh@au1.ibm.com>Dr Scofield1-2/+4
This patch makes llAllowInventoryDrop work with the permissions module enabled. Changes include: - Enabled PropagatePermissions when permissions module serverside perms is on - change ownership of item when item is dropped into an object. Ownership changes to the owner of the object the item is dropped into - propagation of permissions if the permissions module enabled (eg next-owner mask applied) - CHANGED_ALLOWED_DROP is now passed to the change script event if an item was allowed to be dropped into the object only because llAllowInventoryDrop is enabled (instead of CHANGED_INVENTORY being passed). - Sets object flags correctly when llAllowInventoryDrop is called so clients are notified immediately of the change in state. Am not sure that calling aggregateScriptEvents is the right way to do it, but it works and seems to be the only way without making further changes to update LocalFlags
2008-11-10* refactor: Expose SOG.SetRootPart for outsiders to use rather than setting ↵Justin Clarke Casey1-4/+2
RootPart and adding the part separately * Make RootPart read only
2008-11-04- Added stronger persistence tests for BasicUserTestsSean Dague1-2/+2
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-04- Stronger inventory testsSean Dague1-5/+119
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-10-30* minor: remove mono warningJustin Clarke Casey1-1/+0
2008-10-30- Includes consistency test for new and updated objects, asSean Dague1-80/+106
some fixes in MySQL and SQLite From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>