aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Remove the reading of estate_settings.xml and the associated processing ofMelanie2010-03-221-12/+12
| | | | | defaults. Adding code to facilitate estate creation / managemment as part of first time start up
* Fixed SQL tests.Diva Canto2010-03-021-4/+1
|
* Changed asset CreatorID to a stringJohn Hurliman2010-02-223-11/+11
|
* Merge branch 'presence-refactor' of ssh://opensimulator.org/var/git/opensim ↵John Hurliman2010-02-224-877/+7
|\ | | | | | | into presence-refactor
| * Merge branch 'master' into presence-refactorMelanie2010-02-221-1/+1
| |\ | | | | | | | | | This brings presence-refactor up to master again
| | * Disable Data.BasicRegioNTest.T016_RandomSogWithSceneParts() temporarily ↵Justin Clark-Casey (justincc)2010-02-161-1/+1
| | | | | | | | | | | | since it's making the tests fail but the cause is not obvious (wrapped up in layers of reflection)
| * | MySQL tests pass, except T016_RandomSogWithSceneParts. Total mystery as to ↵Diva Canto2010-02-211-0/+6
| | | | | | | | | | | | why that test doesn't show in panda.
| * | Deleted obsolete files in the Data layer. Compiles.Diva Canto2010-02-212-876/+0
| |/
* | * Adds CreatorID to asset metadata. This is just the plumbing to support ↵John Hurliman2010-02-223-11/+11
|/ | | | CreatorID, it doesn't modify database backends or OAR files to support storing/loading it
* Put PassCollision on the ignore list for testing, since we don't save thatMelanie2009-12-311-0/+1
| | | | yet.
* Getting rid of the dead field RootInventoryFolderId on UserProfileData, It's ↵Kunnis2009-12-061-7/+2
| | | | | | not even stored in mysql. Signed-off-by: Melanie <melanie@t-data.com>
* Apply patch that fixes the failing T013_eStateSettingsRandomStorage testJustin Clark-Casey (justincc)2009-11-271-3/+4
| | | | | See http://opensimulator.org/mantis/view.php?id=3993 Thanks Kunnis
* minor: remove some mono compiler warningsJustin Clark-Casey (justincc)2009-11-121-1/+1
|
* Changing the AssetBase constructors to avoid initializing assets with an ↵John Hurliman2009-11-053-12/+11
| | | | unknown asset type, and log an error if it ever does happen
* * Removed OpenSim.Data.NHibernateJohn Hurliman2009-10-192-2/+1
| | | | * Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing
* Formatting cleanup.Jeff Ames2009-10-011-1/+1
|
* Formatting cleanup.Jeff Ames2009-10-012-29/+29
|
* SceneObjectGroup cleanup. Removes the default constructor and unnecessary ↵John Hurliman2009-09-161-4/+2
| | | | null checks on m_rootPart
* oops, disable T012_EstateSettingsRandomStorage() again since it does appear ↵Justin Clark-Casey (justincc)2009-09-071-1/+2
| | | | to fail occasionally
* T012_EstateSettingsRandomStorage() which wasn't being run because the method ↵Justin Clark-Casey (justincc)2009-09-061-2/+1
| | | | | | was private test appears to work, so method made public to run in tests
* Fixing a spot I missed in assets. Switching Grid to the new naming schema ↵Kunnis2009-08-191-4/+4
| | | | with Store/Get
* * Switching IAssetData to follow the new naming schema, removing the ↵Kunnis2009-08-191-12/+12
| | | | separate insert and update methods.
* Add copyright headers. Formatting cleanup. Fix a compiler warning.Jeff Ames2009-08-173-6/+33
|
* * Added Expression based ignores to the PropertyScrambler, which makes a lot ↵Kunnis2009-08-168-224/+210
| | | | of the tests clearer because I'm not constantly resetting properties.
* * More improvements to BasicAssetTest.csKunnis2009-08-161-26/+12
|
* * Fixed MySQL/MySQLAssetData.cs to properly do updates * Removed an extra ↵Kunnis2009-08-163-27/+92
| | | | parameter from MySQL/MySQLInventoryData.cs * Fixed a bug in SQLite/SQLiteAssetData.cs that was causing a NRE when updating an asset. * Improved the BasicAssetTest.cs to do full create/update/get testing * Improved the BasicInventoryTest.cs to do full create/update/get of both a folder and an item * Moved the null ref tests to the start of the PropertyCompareConstraint.cs, so that it doesn't throw when passing in a null item
* * Modified SQLite/SQLiteInventoryStore.cs to not throw if the inventory row ↵Kunnis2009-08-164-46/+140
| | | | 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.
* Adding in Reflection-based testing, to ensure that all properties are covered.Kunnis2009-08-166-90/+140
|
* Add copyright headers. Formatting cleanup.Jeff Ames2009-08-162-3/+57
|
* minor formatting adjustmentsJustin Clark-Casey (justincc)2009-08-141-2/+10
|
* Adding in Reflection-based testing, to ensure that all properties are covered.Kunnis2009-08-142-0/+400
|
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-016-6/+6
| | | | LICENSE.txt.