Skip to content

Commit

Permalink
Added cli encryption suite
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Oct 21, 2021
1 parent d347f8f commit 5535e11
Show file tree
Hide file tree
Showing 2 changed files with 312 additions and 1 deletion.
311 changes: 311 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,185 @@ config = {
"branches": [
"master",
],
"dependencies": True,
"codestyle": True,
"phpstan": True,
"phan": True,
"javascript": True,
"litmus": True,
"dav": True,
"phpunit": {
"mostDatabases": {
"phpVersions": [
"7.3",
],
# Gather coverage for all databases except Oracle
"coverage": True,
"databases": [
"sqlite",
"mariadb:10.2",
"mariadb:10.3",
"mariadb:10.4",
"mariadb:10.5",
"mariadb:10.6",
"mysql:5.5",
"mysql:5.7",
"mysql:8.0",
"postgres:9.4",
"postgres:10.3",
],
},
"slowDatabases": {
"phpVersions": [
"7.3",
],
# Oracle takes a long time to start and run
# So do not collect coverage for that
# This helps the SonarCloud analysis to be ready much more quickly
"coverage": False,
"databases": [
"oracle",
],
},
"reducedDatabases": {
"phpVersions": [
"7.4",
],
"databases": [
"sqlite",
"mariadb:10.2",
],
},
"external-samba-windows": {
"phpVersions": [
"7.3",
"7.4",
],
"databases": [
"sqlite",
],
"externalTypes": [
"samba",
"windows",
],
"coverage": True,
"extraCommandsBeforeTestRun": [
"ls -l /var/cache",
"mkdir /var/cache/samba",
"ls -l /var/cache",
"ls -l /var/cache/samba",
],
},
"external-other": {
"phpVersions": [
"7.3",
"7.4",
],
"databases": [
"sqlite",
],
"externalTypes": [
"webdav",
"sftp",
"scality",
"owncloud",
],
"coverage": True,
},
},
"acceptance": {
"api": {
"suites": [
"apiAuth",
"apiAuthOcs",
"apiAuthWebDav",
"apiCapabilities",
"apiComments",
"apiFavorites",
"apiMain",
"apiProvisioning-v1",
"apiProvisioning-v2",
"apiProvisioningGroups-v1",
"apiProvisioningGroups-v2",
"apiShareCreateSpecialToRoot1",
"apiShareCreateSpecialToShares1",
"apiShareCreateSpecialToRoot2",
"apiShareCreateSpecialToShares2",
"apiSharees",
"apiShareManagementToRoot",
"apiShareManagementToShares",
"apiShareManagementBasicToRoot",
"apiShareManagementBasicToShares",
"apiShareOperationsToRoot1",
"apiShareOperationsToRoot2",
"apiShareOperationsToShares1",
"apiShareOperationsToShares2",
"apiSharePublicLink1",
"apiSharePublicLink2",
"apiShareReshareToRoot1",
"apiShareReshareToShares1",
"apiShareReshareToRoot2",
"apiShareReshareToShares2",
"apiShareReshareToRoot3",
"apiShareReshareToShares3",
"apiShareUpdateToRoot",
"apiShareUpdateToShares",
"apiTags",
"apiTranslation",
"apiTrashbin",
"apiTrashbinRestore",
"apiVersions",
"apiWebdavEtagPropagation1",
"apiWebdavEtagPropagation2",
"apiWebdavLocks",
"apiWebdavLocks2",
"apiWebdavLocks3",
"apiWebdavLocksUnlock",
"apiWebdavMove1",
"apiWebdavMove2",
"apiWebdavOperations",
"apiWebdavPreviews",
"apiWebdavProperties1",
"apiWebdavProperties2",
"apiWebdavUpload1",
"apiWebdavUpload2",
],
},
"apiNotifications": {
"suites": [
"apiSharingNotificationsToRoot",
"apiSharingNotificationsToShares",
],
"extraApps": {
"notifications": 'if [ -f "composer.json" ]; then composer install; fi',
},
},
"apiFederation": {
"suites": [
"apiFederationToRoot1",
"apiFederationToRoot2",
"apiFederationToShares1",
"apiFederationToShares2",
],
"federatedServerNeeded": True,
"federatedServerVersions": ["git", "latest", "10.7.0"],
},
"cli": {
"suites": [
"cliBackground",
"cliLocalStorage",
"cliMain",
"cliProvisioning",
"cliTrashbin",
],
"emailNeeded": True,
},
"cliAppManagement": {
"suites": [
"cliAppManagement",
],
"testingRemoteSystem": False,
},
"cliEncryption": {
"suites": [
"cliEncryption",
Expand Down Expand Up @@ -40,6 +218,139 @@ config = {
"chmod -R 0770 data/owncloud-keys",
],
},
"cliExternalStorage": {
"suites": [
"cliExternalStorage",
],
"federatedServerNeeded": True,
"federatedServerVersions": ["git", "latest", "10.7.0"],
},
"webUI": {
"suites": {
"webUIAddUsers": "",
"webUIAdminSettings": "",
"webUIComments": "",
"webUICreateDelete": "",
"webUIFavorites": "",
"webUIFiles": "",
"webUILogin": "",
"webUIManageQuota": "",
"webUIManageUsersGroups": "webUIManageUsersGrps",
"webUIMoveFilesFolders": "webUIMoveFilesFolder",
"webUIPersonalSettings": "webUIPersonalSetting",
"webUIRenameFiles": "",
"webUIRenameFolders": "",
"webUIRestrictSharing": "",
"webUISettingsMenu": "",
"webUISharingAcceptShares": "webUISharingAcceptSh",
"webUISharingAutocompletion1": "webUISharingAutocomp1",
"webUISharingAutocompletion2": "webUISharingAutocomp2",
"webUISharingInternalGroups1": "webUISharingIntGroup1",
"webUISharingInternalGroups2": "webUISharingIntGroup2",
"webUISharingInternalUsers1": "webUISharingIntUsers1",
"webUISharingInternalUsers2": "webUISharingIntUsers2",
"webUISharingPublic1": "",
"webUISharingPublic2": "",
"webUITags": "",
"webUITrashbin": "",
"webUIUpload": "",
"webUIWebdavLockProtection": "webUIWebdavLockProt",
"webUIWebdavLocks": "",
},
"emailNeeded": True,
"useHttps": False,
},
"webUINotifications": {
"suites": {
"webUISharingNotifications": "webUISharingNotify",
},
"emailNeeded": True,
"useHttps": False,
"extraApps": {
"notifications": "composer install",
},
},
"webUIFileActionsMenu": {
"suites": {
"webUIFileActionsMenu": "",
},
"useHttps": False,
"extraApps": {
"files_texteditor": "make vendor",
"richdocuments": "make vendor",
},
},
"webUIFederation": {
"suites": {
"webUISharingExternal1": "webUISharingExt1",
"webUISharingExternal2": "webUISharingExt2",
},
"federatedServerNeeded": True,
"federatedServerVersions": ["git", "latest", "10.7.0"],
},
"webUIFirefox": {
"suites": {
"webUIFirefoxSmoketest": "webUIFfSmoke",
},
"browsers": [
"firefox",
],
"emailNeeded": True,
"useHttps": False,
"filterTags": "@smokeTest&&~@notifications-app-required",
"runAllSuites": True,
"numberOfParts": 3,
},
"webUIProxy": {
"suites": {
"webUIProxySmoketest": "webUIProxySmoke",
},
"browsers": [
"chrome",
],
"emailNeeded": True,
"proxyNeeded": True,
"useHttps": False,
"filterTags": "@smokeTest&&~@notifications-app-required",
"runAllSuites": True,
"numberOfParts": 3,
},
"webUIMobileSize": {
"suites": {
"webUIMobileSize": "",
},
"browsers": [
"chrome",
],
"emailNeeded": True,
"useHttps": False,
"filterTags": "@mobileResolutionTest&&~@notifications-app-required",
"runAllSuites": True,
"numberOfParts": 3,
"extraEnvironment": {
"MOBILE_RESOLUTION": "375x812",
"OC_LANGUAGE": "en-EN",
},
},
"apiProxy": {
"suites": {
"apiProxySmoketest": "apiProxySmoke",
},
"proxyNeeded": True,
"useHttps": False,
"filterTags": "@smokeTest&&~@notifications-app-required",
"runAllSuites": True,
"numberOfParts": 8,
},
"apiOnSqlite": {
"suites": {
"apiOnSqlite": "apiOnSqlite",
},
"databases": ["sqlite"],
"useHttps": False,
"filterTags": "@sqliteDB",
"runAllSuites": True,
},
},
}

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/features/bootstrap/OccContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ public function theAdministratorRunsEncryptionDecryptAllUsingTheOccCommand():voi
\system("./occ maintenance:singleuser --on");
\system("./occ encryption:decrypt-all -c yes", $status);

$this->featureContext->setResultOfOccCommand(["code" => $status, "stdOut" => null, "stdErr" => null]);
$this->featureContext->setResultOfOccCommand(["code" => $status, "stdOut" => null, "stdErr" => null]);
\system("./occ maintenance:singleuser --off");
}

Expand Down

0 comments on commit 5535e11

Please sign in to comment.