TF-3674 Add integration test for reply email

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-04-21 14:13:15 +07:00
committed by Dat H. Pham
parent 90f4e0b746
commit 7a819191cb
19 changed files with 586 additions and 37 deletions
+11 -2
View File
@@ -2,7 +2,7 @@
# Define users and folders
users=("alice" "bob" "brian" "charlotte" "david" "emma")
bobFolders=("Search Emails" "Forward Emails" "Disposition" "MailBase64" "Calendar")
bobFolders=("Search Emails" "Forward Emails" "Disposition" "MailBase64" "Calendar" "Reply Emails")
# Add users
for user in "${users[@]}"; do
@@ -66,4 +66,13 @@ james-cli ImportEml \#private "bob@example.com" "MailBase64" "/root/conf/integra
# For test calendar event
# Import email into 'Calendar' folder for user Bob
echo "Importing calendar eml into 'Calendar' folder for user bob"
james-cli ImportEml \#private "bob@example.com" "Calendar" "/root/conf/integration_test/eml/calendar/calendar_counter.eml"
james-cli ImportEml \#private "bob@example.com" "Calendar" "/root/conf/integration_test/eml/calendar/calendar_counter.eml"
# For test reply email
# Import emails into 'Reply Emails' folder for user Bob
replyEmailsEML=("reply-all.eml" "reply-to-list.eml" "with-reply-to.eml" "without-reply-to.eml")
for eml in "${replyEmailsEML[@]}"; do
echo "Importing $eml into 'Reply Emails' folder for user bob"
james-cli ImportEml \#private "bob@example.com" "Reply Emails" "/root/conf/integration_test/eml/reply_email/$eml"
done