cyrusimap / cassandane

Other
6 stars 11 forks source link

need tests for interactions with older-version mailboxes #2

Open elliefm opened 8 years ago

elliefm commented 8 years ago

I imagine these working something like:

Can we create old version mailboxes programmatically at test time, or will someone need to install and configure old builds of cyrus in order to produce zips of some mailboxes to add to the repo?

elliefm commented 8 years ago

Maybe reconstruct -V could be used to downgrade a mailbox on the fly, avoiding the need for static test data

elliefm commented 8 years ago

Had a specific need for testing replication of old versions, so off we go. Work in progress here: https://github.com/cyrusimap/cassandane/compare/master...elliefm:old-version-mailboxes

The static data it uses at the moment was just generated with "reconstruct -V" from a current version of Cyrus (which might not really be the same thing). We really ought to try and replace it with mailboxes obtained from legit old versions, but that's quite a bit more work so it can wait for now

elliefm commented 8 years ago

The first stage of this functionality is now on master, and the first set of tests (replication to old mailboxes) too: https://github.com/cyrusimap/cassandane/commit/e6ca602833d874876d8d549641d6396cafa85a26

Still need: