Mike Mazur
0c03a48fb2
- add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of it
...
- trim trailing whitespace
2009-02-04 00:01:36 +00:00
Mike Mazur
9377c6f2b2
- move OpenSim/Framework/IInventoryData.cs to
...
OpenSim/Data/IInventoryData.cs
- trim trailing whitespace
2009-02-03 05:20:26 +00:00
Sean Dague
7934094cf3
* Added MySQL Grid unit tests
...
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-01-14 19:34:14 +00:00
Charles Krinke
40f34aeffd
Thank you kindly, Tlaukkan (Tommil) for a patch that:
...
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.
2009-01-11 18:24:16 +00:00
Justin Clarke Casey
b4680f653d
* Implement 'Save Object Back to My Inventory'. On the Linden client this 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-17 16:11:03 +00:00
Sean Dague
95de4717b6
* Minor test correction, comment removal
...
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-12-03 19:19:51 +00:00
Sean Dague
b2ab15ba34
Extends Avatar Appearance tests
...
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-12-03 19:19:39 +00:00
Melanie Thielker
f1f4b16bc8
Change the max value of the bytes in tests to 127. MySQL bytes are signed
...
by default
2008-11-26 12:34:32 +00:00
Melanie Thielker
fdf5f55a5b
Yay for unit tests. Increased the type width of the prims and primshapes
...
tables, and changed the database modules to actually push these doubles
down into the database layer.
2008-11-26 12:23:56 +00:00
Melanie Thielker
bd6f58184a
Reduce the numerical range of text values to match what MySQL offers
2008-11-26 11:27:02 +00:00
Melanie Thielker
c7d39fb4e3
Comment one more field that can't be tested that way anymore
2008-11-26 10:55:06 +00:00
Melanie Thielker
3388584aa8
Fix 2 of the failed tests. Cause terrain queries to return null when no
...
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-26 08:06:14 +00:00
Justin Clarke Casey
759a667247
* Make a step on removing direct access to TaskInventoryDictionary from other packages
2008-11-25 17:15:21 +00:00
Justin Clarke Casey
11f7471d9c
* Remove direct access to Inventory.Serial
2008-11-25 17:01:18 +00:00
Justin Clarke Casey
915593bfbc
* refactor: Rip out SOP inventory from the partial into a separate class
...
* 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-21 21:16:42 +00:00
Sean Dague
5517ea3dfd
Fixed MySQL and SQLite so they will save the
...
variable sun vector, adding 3 new fields on both.
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-18 12:48:36 +00:00
Sean Dague
99fb0d7b33
Extended Agent Tests
...
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-18 12:48:29 +00:00
Jeff Ames
e40fe2db26
Update svn properties, minor formatting cleanup.
2008-11-15 02:21:52 +00:00
Melanie Thielker
9960637545
Try to make the test pass again
2008-11-14 17:53:58 +00:00
Melanie Thielker
edee11ff87
Reapplying a revised version of Christopher Yeoh's (IBM) patch for allow
...
inventory drop. Also adds a new flags, "propagate_permissions" to
OpenSim.ini to control that feature.
2008-11-14 17:24:56 +00:00
Dr Scofield
5c21ec6d10
reverting #7295 , as it still fails a test case (as pointed out very
...
kindly by sean) --- lesson learned: just running a "make test" is not
sufficient, you need to precede it by a "make clean".
2008-11-14 13:03:18 +00:00
Dr Scofield
5e20e32b69
From: Christopher Yeoh <cyeoh@au1.ibm.com>
...
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-14 10:55:14 +00:00
Justin Clarke Casey
0e180b0ad3
* refactor: Expose SOG.SetRootPart for outsiders to use rather than setting RootPart and adding the part separately
...
* Make RootPart read only
2008-11-10 20:04:55 +00:00
Sean Dague
46492f3c11
From: arthursv@linux.vnet.ibm.com
...
Add more unit tests for user cases
Persist more user fields into mysql that already had columns
defined but weren't getting passed to the mysql manager.
2008-11-06 17:07:08 +00:00
Sean Dague
8bacdbd49c
add a test that ensures that databases work if email is null.
...
From: Sean Dague <sdague@gmail.com>
2008-11-05 13:23:25 +00:00
Sean Dague
972143b592
- Added stronger persistence tests for BasicUserTests
...
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-04 18:53:13 +00:00
Sean Dague
45dd97a262
- Stronger inventory tests
...
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-04 18:53:06 +00:00
Sean Dague
702249358b
implement email field for MySQL and SQLite
...
From: Sean Dague <sdague@gmail.com>
2008-11-04 14:54:42 +00:00
Justin Clarke Casey
9f9d97c57b
* minor: remove mono warning
2008-10-30 19:32:36 +00:00
Sean Dague
9e353d5713
- Includes consistency test for new and updated objects, as
...
some fixes in MySQL and SQLite
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-10-30 12:56:10 +00:00
Sean Dague
409e7262df
Mid-work, trying to fix region part insertion and retrieval
...
SQLite reports System NUll Reference, but works, inside
LoadItems, on SQLiteRegionData.cs
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-10-30 12:56:04 +00:00
Jeff Ames
f5c9600eb7
Update svn properties, minor formatting cleanup.
2008-10-17 02:50:39 +00:00
Sean Dague
a29d8b9abb
- Removed debug print method
2008-10-16 19:05:32 +00:00
Sean Dague
b61f124cc3
more fun with rebasing
2008-10-16 18:41:24 +00:00
Sean Dague
43928d5253
resorting out this merge from arthur, sorry for so many commits here.
2008-10-16 17:46:46 +00:00
Sean Dague
8795bb623d
- Enforced no user or agent with UUID 0 on agent DB insertion
2008-10-16 17:46:43 +00:00
Sean Dague
24822ab890
- New attempt after merging problem
2008-10-16 15:58:06 +00:00
Sean Dague
fa3d8220f2
- Enforced no user or agent with UUID 0 on agent DB insertion
2008-10-16 15:58:05 +00:00
Sean Dague
b9a736f0b8
- Removed a Console.Writeline and added a Test that will be changed
...
if the last commit is accepted
2008-10-16 15:58:03 +00:00
Sean Dague
8621303ea9
- Removed debug print method
2008-10-16 15:58:01 +00:00
Sean Dague
72725a0894
- Enforced no user or agent with UUID 0 on agent DB insertion
2008-10-16 15:57:59 +00:00
Sean Dague
ceb5830142
clean up a merge conflict and remove a console message
2008-10-15 21:00:08 +00:00
Sean Dague
63ef14bd8c
- Added User Appearance Set and Get tests
2008-10-15 18:15:46 +00:00
Sean Dague
f2eca571b8
- Removed a Console.Writeline and added a Test that will be changed
...
if the last commit is accepted
2008-10-15 18:15:45 +00:00
Sean Dague
fa8c0d7683
- Makes MySQL reject inserting UUID 0
...
- Makes SQLite mimick MySQL default behavior on first
and last name already on db: it does not insert the
new record.
- Added tests for UUID 0 and for new UUID with existing
first and last name.
2008-10-15 18:15:43 +00:00
Sean Dague
8e3c10234a
Removed some comments
2008-10-15 18:15:40 +00:00
Sean Dague
a27352010a
Merge commit 'arthur/master'
2008-10-14 19:00:43 +00:00
Justin Clarke Casey
8c55f3eaa6
* minor: remove warnings (the code cleaners strike again)
2008-10-03 14:18:17 +00:00
Sean Dague
9d7a9d3461
stick a TODO in here about land tests, which really can't be done in
...
the current state as the Land Object has all these live references back
to Scene.
2008-10-01 21:10:08 +00:00
Sean Dague
b7454b1a2b
enhance boundary tests for no terrain. Put in a null load
...
test for land.
2008-10-01 21:10:02 +00:00
Sean Dague
7b1e82a8aa
remove tests for inventory
2008-10-01 19:29:06 +00:00
Sean Dague
0f7f3b45cc
add basic store retrieve prim inventory test. the prim
...
inventory interfaces definitely need some rethinking.
2008-10-01 18:51:12 +00:00
Sean Dague
d009927194
add delete prim tests. Found and fixed bugs where region
...
is not respected by sqlite or mysql drivers so that deleting
and object in a region actually deletes that object from any
region.
2008-10-01 15:41:36 +00:00
Sean Dague
97107961e0
add a test for updating region settings and fix a bug in uuid
...
translation in sqlite uncovered by this test.
2008-09-29 21:55:59 +00:00
Justin Clarke Casey
97323345ee
* minor: remove warnings
2008-09-26 15:28:14 +00:00
Sean Dague
6392671335
let the asset tests run on MySQL. Interesting difference here, the
...
sqlite driver can handle .Data = Null, the mysql driver can not. We
should decide which is the right behavior and adjust code for it.
2008-09-24 20:43:32 +00:00
Sean Dague
1aab81e235
couple of minor test cleanups to see if this gets us past the bamboo hump
2008-09-23 21:56:38 +00:00
Justin Clarke Casey
451bd5a0ca
* minor: warnings removal
2008-09-21 20:56:39 +00:00
Sean Dague
6dd2841ed8
add in bits to attempt to enable log4net on these tests to help when debugging
2008-09-19 20:53:42 +00:00
Sean Dague
858d8416b4
add a region settings test
2008-09-19 20:00:09 +00:00
Teravus Ovares
e6f3181d3a
* Updates the SQLite region database to support the same properties that the MySQL version does for the table, prims.
...
* If this causes any unit tests to fail, the tests need to be updated.
2008-09-18 17:47:29 +00:00
Sean Dague
232d1af663
add some comments and some try blocks around object storage
...
in the hopes this will help debug why this is failing for some people.
2008-09-18 15:39:22 +00:00
Sean Dague
ad379ed136
Added some terrain tests, and found a fun race condition in the sqlite
...
terrain driver in the process, which is now fixed. yay for unit tests!
2008-09-16 19:51:14 +00:00
Sean Dague
fe7a1af2bd
we can use equals on strings because they are comparible, and
...
this is the prefered way of doing these tests.
2008-09-16 19:48:21 +00:00
Sean Dague
2ff91dac41
add an inventory change test.
2008-09-16 18:33:49 +00:00
Sean Dague
fcc716104b
2 more InventoryItem tests, plus see if I can leave the log4net
...
configure in there to help me get debug messages while developing.
2008-09-13 02:06:23 +00:00
Sean Dague
ecc2a0f866
add first round of folder tests
2008-09-12 21:00:40 +00:00
Sean Dague
4b7e287ab2
because UUID supports equality, we can do a straight equals instead of
...
convert to string and match.
2008-09-12 18:46:55 +00:00
Sean Dague
d312f10420
use new style asserts. They are much easier to read.
2008-09-12 18:46:44 +00:00
Sean Dague
9349cf3149
move the actual [Test] methods for databases to OpenSim.Data.Tests
...
classes. This did mean loosing 1 unit test that was actually testing
an sqlite function directly instead of the interface.
2008-09-12 18:13:43 +00:00
Sean Dague
1f42c89480
change order in prebuild.xml so this works in nant on a clean
...
checkout.
2008-09-12 17:45:02 +00:00
Sean Dague
96c720b04a
be more clever and move the bulk of the db tests for inventory into
...
OpenSim.Data.Tests, then subclass with custom init bits for sqlite.
As I've only been testing the plugin interfaces anyway, this should
make it very easy to write only a little bit of code to use these
tests for other databases. It will also give us the framework for
definining the datastore behavior and making sure that all the databases
do the same thing.
2008-09-12 16:05:06 +00:00