improve delete user data command in CI
This commit is contained in:
+4
-5
@@ -342,9 +342,9 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
|
|||||||
'pull': 'always',
|
'pull': 'always',
|
||||||
'environment' : {
|
'environment' : {
|
||||||
'TEST_SERVER_URL': 'https://ocis-server:9200',
|
'TEST_SERVER_URL': 'https://ocis-server:9200',
|
||||||
'OCIS_REVA_DATA_ROOT': '%s' % ('/srv/app/tmp/ocis/owncloud/data/' if storage == 'owncloud' else ''),
|
'OCIS_REVA_DATA_ROOT': '%s' % ('/srv/app/tmp/ocis/owncloud/' if storage == 'owncloud' else ''),
|
||||||
'STORAGE_DRIVER': '%s' % ('OWNCLOUD' if storage == 'owncloud' else 'OCIS'),
|
'STORAGE_DRIVER': '%s' % ('OWNCLOUD' if storage == 'owncloud' else 'OCIS'),
|
||||||
'DELETE_USER_DATA_CMD': '%s' % ('' if storage == 'owncloud' else 'rm -rf /srv/app/tmp/ocis/storage/users/nodes/root/*'),
|
'DELETE_USER_DATA_CMD': '%s' % ('' if storage == 'owncloud' else 'rm -rf /srv/app/tmp/ocis/storage/users/nodes/root/* /srv/app/tmp/ocis/storage/users/nodes/*-*-*-*'),
|
||||||
'SKELETON_DIR': '/srv/app/tmp/testing/data/apiSkeleton',
|
'SKELETON_DIR': '/srv/app/tmp/testing/data/apiSkeleton',
|
||||||
'OCIS_SKELETON_STRATEGY': '%s' % ('copy' if storage == 'owncloud' else 'upload'),
|
'OCIS_SKELETON_STRATEGY': '%s' % ('copy' if storage == 'owncloud' else 'upload'),
|
||||||
'TEST_OCIS':'true',
|
'TEST_OCIS':'true',
|
||||||
@@ -397,9 +397,9 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
|||||||
'pull': 'always',
|
'pull': 'always',
|
||||||
'environment' : {
|
'environment' : {
|
||||||
'TEST_SERVER_URL': 'https://ocis-server:9200',
|
'TEST_SERVER_URL': 'https://ocis-server:9200',
|
||||||
'OCIS_REVA_DATA_ROOT': '%s' % ('/srv/app/tmp/ocis/owncloud/data/' if storage == 'owncloud' else ''),
|
'OCIS_REVA_DATA_ROOT': '%s' % ('/srv/app/tmp/ocis/owncloud/' if storage == 'owncloud' else ''),
|
||||||
'STORAGE_DRIVER': '%s' % ('OWNCLOUD' if storage == 'owncloud' else 'OCIS'),
|
'STORAGE_DRIVER': '%s' % ('OWNCLOUD' if storage == 'owncloud' else 'OCIS'),
|
||||||
'DELETE_USER_DATA_CMD': '%s' % ('' if storage == 'owncloud' else 'rm -rf /srv/app/tmp/ocis/storage/users/nodes/root/*'),
|
'DELETE_USER_DATA_CMD': '%s' % ('' if storage == 'owncloud' else 'rm -rf /srv/app/tmp/ocis/storage/users/nodes/root/* /srv/app/tmp/ocis/storage/users/nodes/*-*-*-*'),
|
||||||
'SKELETON_DIR': '/srv/app/tmp/testing/data/apiSkeleton',
|
'SKELETON_DIR': '/srv/app/tmp/testing/data/apiSkeleton',
|
||||||
'OCIS_SKELETON_STRATEGY': '%s' % ('copy' if storage == 'owncloud' else 'upload'),
|
'OCIS_SKELETON_STRATEGY': '%s' % ('copy' if storage == 'owncloud' else 'upload'),
|
||||||
'TEST_OCIS':'true',
|
'TEST_OCIS':'true',
|
||||||
@@ -1427,7 +1427,6 @@ def ocisServer(storage):
|
|||||||
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/ocis/tests/config/drone/identifier-registration.yml',
|
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/ocis/tests/config/drone/identifier-registration.yml',
|
||||||
'KONNECTD_ISS': 'https://ocis-server:9200',
|
'KONNECTD_ISS': 'https://ocis-server:9200',
|
||||||
'KONNECTD_TLS': 'true',
|
'KONNECTD_TLS': 'true',
|
||||||
'ACCOUNTS_DATA_PATH': '/srv/app/tmp/ocis-accounts/',
|
|
||||||
},
|
},
|
||||||
'commands': [
|
'commands': [
|
||||||
'apk add mailcap', # install /etc/mime.types
|
'apk add mailcap', # install /etc/mime.types
|
||||||
|
|||||||
Reference in New Issue
Block a user