cyrusimap / cassandane

Other
6 stars 11 forks source link

make sure LIST/XLIST don't return tombstones #166

Closed elliefm closed 2 years ago

elliefm commented 2 years ago

This adds two tests:

The latter exposes a bug in 2.5. Otherwise, these are just regression tests.

It also adds setup_mailbox_structure() and assert_mailbox_structure() methods to TestCase, where they can be used by other suites -- they were previously internal to the List suite. This doesn't help us immediately, but I already have a couple of other WIP branches that depend on this commit, so it would be nice to get it upstream where I no longer have to juggle it around.

Edit: oh, and it also adds a read_mailboxes_db() method to Instance, which is needed for these tests, and also for some other WIP stuff I have

Edit2: also fixes a bug in run_dbcommand(), which I found and fixed while trying to convert read_mailboxes_db() to use that rather than ctl_mboxlist -d. I've given up on that for the time being but the bug can still be fixed!