aboutsummaryrefslogtreecommitdiff
path: root/perl/t/object.t
AgeCommit message (Collapse)Author
2007-12-01The wallet backend test suite now supports using a database other thanRuss Allbery
SQLite for testing. Also start a new Util.pm module for the test suite and move the contents sub into that module. More to follow.
2007-11-30Initial work on supporting testing with MySQL.Russ Allbery
Add a drop() method to Wallet::Schema to destroy the wallet database. Add a test suite for it. Add a reinitialize() method to Wallet;:Server that drops the database before creating it. Modify the wallet object test cases to call reinitialize() to create the initial database and drop() to clean up the database after the test is complete. Fix a bug preventing Wallet::Schema from being initialized multiple times. We now stash the schema in a class static variable and reuse it for subsequent initializations, since re-reading DATA doesn't work.
2007-10-10Adjust for the new behavior of showing the former value of an attributeRuss Allbery
when it is set. Use variables for the user and host.
2007-10-10Add an object history method and tests for it.Russ Allbery
2007-10-05Add comprehensive license information in LICENSE and update the copyrightRuss Allbery
and license statements in all files. Make sure that some files that were missing copyright information now have them. Reference LICENSE rather than README in all notices.
2007-09-19Add generic attribute support to the object layer and update the APIRuss Allbery
documentation to talk about overriding it. Update some other bits of the API documentation to include more hints about how to handle overridden methods.
2007-09-18Test that retrieving data from a locked object still works.Russ Allbery
2007-09-18Implement the locked flag.Russ Allbery
2007-09-18Flags are now displayed as part of show.Russ Allbery
2007-09-17Add methods to the base object to set, clear, list, and check flags. WrapRuss Allbery
attribute setting in objects inside eval to catch SQL errors and set the object error accordingly rather than throwing an exception.
2007-09-17In show() for an object, call show() for each of the ACLs on that objectRuss Allbery
and append that information to the object description.
2007-08-31You don't have to explicitly load the driver module for DBI.Russ Allbery
2007-08-30Test clearing attributes.Russ Allbery
2007-08-30Unlink the database before creating it to protect against previous testRuss Allbery
failures.
2007-08-30use all the modules we need.Russ Allbery
2007-08-30Clean up all exception output when storing it in the error variable toRuss Allbery
remove the " at line" stuff added by Perl and the newlines so that the errors stored in objects are consistent. Fix various bugs in the base object, including a few more type vs. name inversions and use of object instead of name. Allow owners to be specified as ACL names instead of IDs, and change the ID to a name in show. Add a new test suite for the base object implementation.