aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The old sqlite inventory data interface was still around and causing ↵Diva Canto2016-02-211-5/+0
| | | | problems: the only part of the code using it was the data (sqlite) tests. Given that this old interface has been obsolete for several years, it has now been removed, including the tests. TODO: Writing tests for the new (ah!) inventory data interface.
* work around some 'tests' errors: assets are modified by the test, on ↵UbitUmarov2015-11-171-0/+18
| | | | current code
* work around some 'tests' errorsUbitUmarov2015-11-161-2/+9
|
* Remove unmaintained MSSQL support.Justin Clark-Casey (justincc)2014-11-284-32/+0
| | | | | This has not been maintained for more than 2 years, is unimplemented for newer features (e.g. built-in groups) and has no core developers using it. If somebody fixes these issues then it could be reinstated.
* Made the SQLite unit tests work on Windows (sqlite3.dll wasn't being loaded)Oren Hurvitz2014-04-021-0/+3
|
* Added assets service method AssetsExist(), which returns whether the given ↵Oren Hurvitz2014-04-021-7/+9
| | | | | | list of assets exist. This method is used to optimize sending assets with embedded assets: e.g., when a Hypergrid visitor takes an item into the inventory.
* varregion: rename 'LegacyRegionLocX' back to 'RegionLocX' and same for Y and Z.Robert Adams2013-12-141-4/+4
| | | | | | Rename 'RegionWorldLocX' to 'WorldLocX' and same for Y and Z. This keeps the downward compatibility and follows the scheme of 'region' and 'world' location naming that is happening in the Util module.
* VarRegion: change RegionInfo storage of region coordinates from regionRobert Adams2013-09-281-4/+4
| | | | | | | | count number to integer world coordinates. Added new methods RegionWorldLoc[XY]. Refactored name of 'RegionLoc*' to 'LegacyRegionLoc*' throughout OpenSim. Kept old 'RegionLoc*' entrypoint to RegionInfo for downward compatability of external region management packages.
* Fix database service unit test failures by temporarily reverting ↵Justin Clark-Casey (justincc)2012-11-261-1/+7
| | | | | | | | | BasicDataServiceTest extending OpenSimTestCase. Mono 2.4.3 doesn't like this when running nunit, with nunit throwing AssetTests`2 : System.MemberAccessException : Cannot create an instance of OpenSim.Data.Tests.AssetTests`2[TConn,TAssetData] because Type.ContainsGenericParameters is true. and similar. Mono 2.10.8.1 does not have this issue. So will wait until min version of mono bumps before restoring.
* Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)2012-11-244-4/+7
| | | | automatically turns off any logging enabled between tests
* minor: remove some recent mono compiler warningsJustin Clark-Casey (justincc)2012-07-071-2/+0
|
* Remove redundant SetScene() function in Scene.AddSceneObject()Justin Clark-Casey (justincc)2012-07-071-1/+1
| | | | | 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.
* Port Avination's collision fixes to core.Melanie2012-05-151-1/+0
|
* Rename SOG.HasChildPrim(uint) to SOG.ContainsPart(uint) to match existing ↵Justin Clark-Casey (justincc)2012-03-311-4/+4
| | | | | | ContainsPart method and remove method duplication. HasChildPrim is also misleading since the 'root' prim can also be returned.
* refactor: change RezScriptFromAgentInventory(), RezNewScript() and ↵Justin Clark-Casey (justincc)2012-01-261-6/+6
| | | | | | AddInventoryItem() to accept an agent id rather than a full IClientAPI. This stops some code having to make spurious client == null checks and reduces regression test complexity.
* Changes UpdateFlag in SOP to an enumeration of NONE, TERSE and FULL.Dan Lake2011-11-021-5/+0
| | | | | | | | | | | | | | | | | UpdateFlag is now referenced/used only within SOP and SOG. Outsiders are using ScheduleFullUpdate, ScheduleTerseUpdate or ClearUpdateSchedule on SOP consistently now. Also started working toward eliminating those calls to ScheduleFullUpdate, ScheduleTerseUpdate or ClearUpdateSchedule from outside SOP in favor of just setting properties on SOP and let SOP decide if an update should be scheduled. This consolidates the update policy within SOP and the client rather than everywhere that makes changes to SOP. Some places forget to call update while others call it multiple times, "just to be sure". UpdateFlag and Schedule*Update will both be made private shortly. UpdateFlag is intended to be transient and internal to SOP so it has been removed from XML serializer for SOPs.
* refactor: move SOP.IsAttachment and AttachmentPoint up into SOG to avoid ↵Justin Clark-Casey (justincc)2011-08-271-4/+2
| | | | pointless duplication of identical values
* rename TestHelper => TestHelpers for consistencyJustin Clark-Casey (justincc)2011-08-064-44/+44
|
* Fix a bug in T015_LargeSceneObjects() where the large scene object was ↵Justin Clark-Casey (justincc)2011-03-141-2/+3
| | | | | | stored 31 times (1 time for each added part) instead of once at the end, even though only the largest 31 prim scene object was retrieved and tested. This considerably speeds up the test, when on sqlite it now only takes 2 seconds rather than 30+
* when retrieving a sog in database tests, don't bother adding the scene since ↵Justin Clark-Casey (justincc)2011-03-141-14/+1
| | | | this isn't used
* Add method doc to T015_LargeSceneObjects() and slightly clean up formatting.Justin Clark-Casey (justincc)2011-03-141-3/+6
| | | | This test takes a considerable time on SQLite but should remain since it's testing storage and retrieval of a scene object with 31 parts.
* Add current method output to all persistence level tests so that we can ↵Justin Clark-Casey (justincc)2011-03-144-11/+99
| | | | track where we are in the test suite
* minor: remove mono compiler warningJustin Clark-Casey (justincc)2011-03-121-1/+1
|
* Upgrade nunit.framework.dll to version 2.5.9. Fix up tests appropriately.Justin Clark-Casey (justincc)2011-03-096-57/+2
| | | | This version removes the NUnit.Framework.SyntaxHelpers namespace, so any modules with their own tests will need to delete this using statement.
* Another attempt at fixing failing test for creator info.Marck2010-11-261-2/+2
|
* Attempt at fixing failing test.Diva Canto2010-11-231-2/+4
|
* Changed SceneObjectGroup to store parts with the fast and thread-safe ↵John Hurliman2010-09-161-7/+7
| | | | MapAndArray collection
* Formatting cleanup.Jeff Ames2010-09-121-5/+5
|
* Add copyright headers.Jeff Ames2010-09-122-2/+56
|
* Fixed the naming mess around data connectors for simulation dataJohn Hurliman2010-09-111-6/+6
|
* Add automated test at the opensim 'api' level to check that a given item ↵Justin Clark-Casey (justincc)2010-08-243-14/+0
| | | | | | goes to the correct directory Also removes some mono compiler warnings
* refactor: Use SOP.Flags rather than SOP.ObjectFlagsJustin Clark-Casey (justincc)2010-08-131-4/+4
|
* comment out obsolete assert that 'item has been passed to another user since ↵Justin Clark-Casey (justincc)2010-07-141-1/+1
| | | | it was last set' perms flag was set when a prim item was added to a scene object
* Revamp the permissions propagation. This MAY mess up. Please test.Melanie2010-07-131-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.
* add sqlite database back to database testsJustin Clark-Casey (justincc)2010-06-041-1/+1
| | | | | this appears to be okay even though we reuse it between runs without deleting it first. size of the database appears not to be changing though that could be deceptive
* Minor correction to AssetTests.csAlexRa2010-05-261-3/+3
| | | | (forgot to change test descriptions, has no effect on running the tests)
* Ensured that tests are skipped for wrong conn string, also m_log chngAlexRa2010-05-231-2/+23
| | | | | | | | | | The base test class now tries to connect to DB, ignores all tests in the class if unable to. Also m_log changed to instance field (which in this case shouldn't cause any problems), to avoid having to define it separately in each derived class. Here I touched things that I don't understand well (using log4net), so please review this commit.
* Various minor changes in the data testsAlexRa2010-05-235-16/+18
|
* Unitests: Asset, Estate, Region (the "legacy" one), InventoryAlexRa2010-05-235-173/+137
| | | | | | | | 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.
* Added MS SQL test conn to INI - only as an example, modify before use!!!AlexRa2010-05-231-4/+21
| | | | | | | NOTE that this INI file is currently loaded as a embedded RESOURCE, which is weird and has a disadvantage of having to rebuild the Tests whenever the conn strings are changed. The only reason is that I couldn't figure out a reliable way to put this INI into the correct dir at runtime. If somebody can do it, that would be cool.
* BasicAssetTest.cs replaced by AssetTests.csAlexRa2010-05-231-0/+161
| | | | | | | | AssetTests: The name has changed to reflect the fact it is no longer a base class, but the complete asset test for all supported databases. The test can also check storing of CreatorID, but the feature is disabled at this commit!
* Bugfix in tests (must clear db before migrations, not after)AlexRa2010-05-233-3/+3
|
* EstateData tests passing on all DBsAlexRa2010-05-231-28/+2
|
* Corrections in RegionTests.cs. It now fully works!AlexRa2010-05-231-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.
* Minor corrections in BasicDataServiceTest.csAlexRa2010-05-231-0/+41
| | | | | (added more functions for cleaning up DB from the derived tests)
* All data tests made DBMS-independentAlexRa2010-05-233-87/+159
|
* Added generic base classes for testing database servicesAlexRa2010-05-233-0/+241
| | | | | | | | | | These are some generic classes that simplify writing tests for any of the data connectors and databases. Among other things, configuring the connection strings is done once, in a separate resource file. Tests based on the new BasicDataServiceTest class require NUnit 2.5 or better.
* Series of patches to include creator ID in assets.AlexRa2010-05-201-4/+35
| | | | | | | | | | | | | | Contains a migration. SQLite: May contain nuts. The SQLite migration copies the entire asset table. Be prepared for quite a wait. Don't interrupt it. Back up your assets db. BasicAssetTest checks CreatorID storage, new test for weird CreatorID (now also checks that non-GUID or empty CreatorID gets stored correctly) Signed-off-by: Melanie <melanie@t-data.com>
* Scrambled asset type in BasicAssetTest.cs!AlexRa2010-05-191-9/+10
| | | | | | | | | The asset type wasn't in the list of "DontScramble" fields, so the test assets were stored with randomized type, which caused exception on reading them. Also the scrambler was moved from local var to the class level, so it could be used in the new tests I've added (see the next commit).
* rename SQLiteNG to SQLite and SQLite to SQLiteLegacyJustin Clark-Casey (justincc)2010-04-301-1/+2
| | | | | | | this seems the least evil way forward since mono 2.6 and later will see increasing usage, and this only works with what was SQLiteNG MAC USERS WILL NEED TO CHANGE REFERENCES TO "OpenSim.Data.SQLite.dll" to "OpenSim.Data.SQLiteLegacy.dll" in OpenSim.ini and config-include/StandaloneCommon.ini (if using standalone) See the OpenSim.ini.example and StandaloneCommon.ini.example files for more details This commit also temporarily changes unsigned ParentEstateID values in the OpenSim.Data.Tests to signed temporarily, since the new plugin enforces creation of signed fields in the database (which is what the SQL actually specifies). And change data columns in sqlite is a pita.