The tests in this issue depend upon the following dances that are under development.
[x] get_holon_by_id
[x] abandon_staged_changes
[ ] delete_holon
[ ] remove_related_holons
Test cases are composed from test steps.
Definition of Done
The following test cases all pass:
[ ] Test Case 2: Stage, Cancel, Commit, Delete Holons
[ ] Ensure database is empty
[ ] Stage New (empty) Holon -- for a book holon
[ ] add "title" property
[ ] add "description" property
[ ] Stage New (populated) Holon -- for a Person holon
[ ] commit
[ ] match database content -- ensure Book & Person Holon exist and their properties match expected values
[ ] Stage New (populated) Holon -- for a 2nd Person
[ ] Abandon the 2nd Person Holon -- depends on "Abandon" capability -- not yet delivered
[ ] commit -- depends on commit support for Abandon -- not yet delivered
[ ] stage_delete Person #1 -- depends on "Delete" capability -- not yet delivered
[ ] stage_delete book -- depends on "Delete" capability -- not yet delivered
[ ] commit -- depends on "Delete" capability -- not yet delivered
[ ] ensure database is empty
[ ] Test Case 3: Add Related Holons
[ ] Ensure database is empty
[ ] Stage New Holon -- for a book holon
[ ] Stage New Holon -- for a Person holon
[ ] Stage New Holon -- for an additional Person
[ ] Add "AUTHORED_BY" relationship from book to both persons
[ ] commit
[ ] match database content -- get the book Holon and ensure it matches expected, get its AUTHORED_BY relationship. and ensure it returns the expected Persons, ensure each Person 'sproperties match expected.
The tests in this issue depend upon the following dances that are under development.
Test cases are composed from test steps.
Definition of Done
The following test cases all pass:
[ ] Test Case 2: Stage, Cancel, Commit, Delete Holons
[ ] Test Case 3: Add Related Holons