From 4489ea637bcae02a42994fd64e47f2daed26d91b Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Fri, 23 Aug 2024 11:57:49 +0545 Subject: [PATCH] add app registry config --- .drone.star | 37 +++++++++++-------- .../apiAppProvider/appProvider.feature | 4 +- tests/config/drone/app-registry.yaml | 9 +++++ 3 files changed, 33 insertions(+), 17 deletions(-) create mode 100644 tests/config/drone/app-registry.yaml diff --git a/.drone.star b/.drone.star index 935694f4fd..bb4287ee79 100644 --- a/.drone.star +++ b/.drone.star @@ -59,13 +59,13 @@ dirs = { # configuration config = { "cs3ApiTests": { - "skip": True, + "skip": False, }, "wopiValidatorTests": { - "skip": True, + "skip": False, }, "k6LoadTests": { - "skip": True, + "skip": False, }, "localApiTests": { "basic": { @@ -92,20 +92,19 @@ config = { "apiSharingNgLinkShareRoot", "apiActivities", ], - "skip": True, + "skip": False, }, "apiAccountsHashDifficulty": { "suites": [ "apiAccountsHashDifficulty", ], "accounts_hash_difficulty": "default", - "skip": True, }, "apiNotification": { "suites": [ "apiNotification", ], - "skip": True, + "skip": False, "emailNeeded": True, "extraEnvironment": { "EMAIL_HOST": "email", @@ -123,7 +122,7 @@ config = { "suites": [ "apiAntivirus", ], - "skip": True, + "skip": False, "antivirusNeeded": True, "extraServerEnvironment": { "ANTIVIRUS_SCANNER_TYPE": "clamav", @@ -137,14 +136,14 @@ config = { "suites": [ "apiSearchContent", ], - "skip": True, + "skip": False, "tikaNeeded": True, }, "apiOcm": { "suites": [ "apiOcm", ], - "skip": True, + "skip": False, "federationServer": True, "extraServerEnvironment": { "OCIS_ADD_RUN_SERVICES": "ocm", @@ -159,7 +158,6 @@ config = { "suites": [ "cliCommands", ], - "skip": True, }, "apiAppProvider": { "suites": [ @@ -178,17 +176,17 @@ config = { }, "apiTests": { "numberOfParts": 10, - "skip": True, + "skip": False, "skipExceptParts": [], }, "e2eTests": { "part": { - "skip": True, + "skip": False, "totalParts": 4, # divide and run all suites in parts (divide pipelines) "xsuites": ["search", "app-provider", "oidc"], # suites to skip }, "search": { - "skip": True, + "skip": False, "suites": ["search"], # suites to run "tikaNeeded": True, }, @@ -204,7 +202,7 @@ config = { "dockerReleases": { "architectures": ["arm64", "amd64"], }, - "litmus": False, + "litmus": True, "codestyle": True, } @@ -295,7 +293,15 @@ def main(ctx): licenseCheck(ctx) test_pipelines = \ + codestyle(ctx) + \ + checkGherkinLint(ctx) + \ + checkTestSuitesInExpectedFailures(ctx) + \ + buildWebCache(ctx) + \ + getGoBinForTesting(ctx) + \ buildOcisBinaryForTesting(ctx) + \ + checkStarlark() + \ + build_release_helpers + \ + testOcisAndUploadResults(ctx) + \ testPipelines(ctx) build_release_pipelines = \ @@ -309,7 +315,7 @@ def main(ctx): ), ) - pipelines = test_pipelines + pipelines = test_pipelines + build_release_pipelines if ctx.build.event == "cron": pipelines = \ @@ -2186,6 +2192,7 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on = "commands": [ "%s init --insecure true" % ocis_bin, "cat $OCIS_CONFIG_DIR/ocis.yaml", + "cp tests/config/drone/app-registry.yaml /root/.ocis/config/app-registry.yaml", ] + (wrapper_commands), "volumes": volumes, "depends_on": depends_on, diff --git a/tests/acceptance/features/apiAppProvider/appProvider.feature b/tests/acceptance/features/apiAppProvider/appProvider.feature index 5d8f180930..840b874bc4 100644 --- a/tests/acceptance/features/apiAppProvider/appProvider.feature +++ b/tests/acceptance/features/apiAppProvider/appProvider.feature @@ -8,7 +8,7 @@ Feature: App Provider Given user "Alice" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/simple.odt" to "simple.odt" And we save it into "FILEID" - When user "Alice" sends HTTP method "POST" to URL "" + When user "Alice" sends HTTP method "POST" to URL "" Then the HTTP status code should be "200" And the JSON data of the response should match """ @@ -46,6 +46,6 @@ Feature: App Provider } """ Examples: - | endpoint | + | app-endpoint | | /app/open?file_id=<>&app_name=FakeOffice | | /app/open?file_id=<> | diff --git a/tests/config/drone/app-registry.yaml b/tests/config/drone/app-registry.yaml new file mode 100644 index 0000000000..674829a89c --- /dev/null +++ b/tests/config/drone/app-registry.yaml @@ -0,0 +1,9 @@ +app_registry: + mimetypes: + - mime_type: application/vnd.oasis.opendocument.text + extension: odt + name: FakeOffice + description: FakeOffice text document + icon: "" + default_app: FakeOffice + allow_creation: true