Skip to content

Commit

Permalink
Enable versioning of client emails test package
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed May 3, 2020
1 parent c5c90f6 commit e9b036b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/integtest/2-client-uploads-emails.sh
Expand Up @@ -9,6 +9,8 @@ mkdir -p "${out_dir}"
. "${scriptdir}/utils.sh"

emails_to_send="${in_dir}/client-emails.tar.gz"
tar -czf "${emails_to_send}" -C "${in_dir}" emails.jsonl zzusers.jsonl

client_id="$(jq -r '.client_id' < "${out_dir}/register1.json")"
resource_container="$(jq -r '.resource_container' < "${out_dir}/register1.json")"
resource_id="$(uuidgen).tar.gz"
Expand Down
1 change: 1 addition & 0 deletions docker/integtest/files/.gitignore
@@ -1 +1,2 @@
test.out/
client-emails.tar.gz
Binary file removed docker/integtest/files/client-emails.tar.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions docker/integtest/files/emails.jsonl
@@ -0,0 +1,3 @@
{"from":"clemens@developer1.lokole.ca","to":["clemens.wolff@gmail.com","laura.barluzzi@gmail.com"],"subject":"First test email sent from Lokole client","body":"Some content","_uid":"ed262575-73db-49cc-9c87-e2e95f8ac9cc","sent_at":"2019-10-26 11:23"}
{"from":"laura@developer1.lokole.ca","to":["clemens.wolff@gmail.com"],"subject":"Second test email sent from Lokole client","body":"Some more content","_uid":"d03fff22-5c51-4f10-8111-5b24686964ba","attachments":[{"filename":"test.txt","content":"dGVzdCBhdHRhY2htZW50"}],"sent_at":"2019-10-25 05:00"}
{"from":"Clemens@developer1.lokole.ca","to":["clemens@gmail.com","laura.barluzzi@gmail.com"],"subject":"Third test email sent from Lokole client","body":"Some extra content","_uid":"43f619b3-64ba-4ea3-963d-740cf0e58989","sent_at":"2019-10-26 12:34"}
1 change: 1 addition & 0 deletions docker/integtest/files/zzusers.jsonl
@@ -0,0 +1 @@
{"email":"clemens@developer1.lokole.ca","password":"$2b$12$9LaXqZMPJi0PiTY.95dIQOvc8LkYQzRlg5a9pDWX47L/npaYqynU2"}

0 comments on commit e9b036b

Please sign in to comment.