1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

Check at startup if a given store exists (#275)

* add check to see if a store exists
This commit is contained in:
Felix Bartels 2019-11-03 21:44:29 +01:00 committed by GitHub
parent e3061aa0fd
commit 2cfa0dab7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -6,8 +6,14 @@ tests:
contains:
- "Inbox"
- "Drafts"
check if store exists:
command: "docker exec kopano_server kopano-admin --details user10"
exit-code: 0
stdout:
not-contains:
- "WARNING: Unable to get user store entry id. User possibly has no store."
check mailbox language german: # this needs a running kopano-server can can therefore not be executed in that container directly
command: "docker exec kopano-storeadm -D user 11; docker exec kopano_server kopano-storeadm -C -l de_DE -n user11; docker exec kopano_server show-folders.py --user user11"
command: "docker exec kopano_server kopano-storeadm -D user 11; docker exec kopano_server kopano-storeadm -C -l de_DE -n user11; docker exec kopano_server show-folders.py --user user11"
exit-code: 0
stdout:
not-contains:

View File

@ -31,3 +31,6 @@ docker exec kopano_server kopano-cli --list-users
docker exec kopano_server kopano-admin -l
docker exec kopano_zpush z-push-admin -a list
docker exec kopano_zpush z-push-gabsync -a sync
# will print nothing if store exists and fail if it doen't
docker exec kopano_server kopano-admin --details user1 | grep -q "^Store GUID:"