Skip to content

Commit

Permalink
#233: guid needs to be equal if copied from lda or with doveadm
Browse files Browse the repository at this point in the history
  • Loading branch information
jrse committed Jan 22, 2019
1 parent bd0023d commit 6aaf516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/tests/storage-rbox/it_test_doveadm_backup_rbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,10 @@ TEST_F(StorageTest, mail_doveadm_backup_copy_mail_in_inbox) {
mail2->get_metadata(librmb::RBOX_METADATA_FROM_ENVELOPE, &val2);
ASSERT_STREQ(val, val2);
val = val2 = NULL;
// TODO: i assume if, mail was copied the guid of the copy differs from the original mail.
// However this asumption needs clarification!

mail1->get_metadata(librmb::RBOX_METADATA_GUID, &val);
mail2->get_metadata(librmb::RBOX_METADATA_GUID, &val2);
ASSERT_STRNE(val, val2);
ASSERT_STREQ(val, val2);

val = val2 = NULL;
mail1->get_metadata(librmb::RBOX_METADATA_MAILBOX_GUID, &val);
Expand Down
4 changes: 1 addition & 3 deletions src/tests/storage-rbox/it_test_lda_rbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,9 @@ TEST_F(StorageTest, mail_lda_copy_mail_in_inbox) {
ASSERT_STREQ(val, val2);
val = val2 = NULL;

// TODO: i assume if, mail was copied the guid of the copy differs from the original mail.
// However this assumption needs clarification!
mail1->get_metadata(librmb::RBOX_METADATA_GUID, &val);
mail2->get_metadata(librmb::RBOX_METADATA_GUID, &val2);
ASSERT_STRNE(val, val2);
ASSERT_STREQ(val, val2);

val = val2 = NULL;
mail1->get_metadata(librmb::RBOX_METADATA_MAILBOX_GUID, &val);
Expand Down

0 comments on commit 6aaf516

Please sign in to comment.