Skip to content

Commit

Permalink
disable tests for s3ng storage
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Sep 27, 2023
1 parent 82d632c commit 21a0507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 106 deletions.
77 changes: 1 addition & 76 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def main(ctx):
return [
checkStarlark(),
ocisIntegrationTest(),
] + s3ngIntegrationTests()
]

def ocisIntegrationTest():
return {
Expand Down Expand Up @@ -131,81 +131,6 @@ def ocisIntegrationTest():
],
}

def s3ngIntegrationTests():
parallelRuns = 12
pipelines = []
for runPart in range(1, parallelRuns + 1):
if runPart in [9]:
continue

pipelines.append(
{
"kind": "pipeline",
"type": "docker",
"name": "s3ng-integration-tests-%s" % runPart,
"platform": {
"os": "linux",
"arch": "amd64",
},
"trigger": {
"event": {
"include": [
"pull_request",
"tag",
],
},
},
"steps": [
makeStep(),
{
"name": "revad-services",
"image": OC_CI_GOLANG,
"detach": True,
"commands": [
"cd /drone/src/tests/oc-integration-tests/drone/",
"/drone/src/cmd/revad/revad -c frontend.toml &",
"/drone/src/cmd/revad/revad -c gateway.toml &",
"/drone/src/cmd/revad/revad -c shares.toml &",
"/drone/src/cmd/revad/revad -c storage-home-s3ng.toml &",
"/drone/src/cmd/revad/revad -c storage-users-s3ng.toml &",
"/drone/src/cmd/revad/revad -c storage-publiclink.toml &",
"/drone/src/cmd/revad/revad -c ldap-users.toml",
],
},
cloneApiTestReposStep(),
{
"name": "APIAcceptanceTestsS3ngStorage",
"image": OC_CI_PHP,
"commands": [
"cd /drone/src/tmp/testrunner",
"make test-acceptance-from-core-api",
],
"environment": {
"TEST_SERVER_URL": "http://revad-services:20080",
"OCIS_REVA_DATA_ROOT": "/drone/src/tmp/reva/data/",
"DELETE_USER_DATA_CMD": "rm -rf /drone/src/tmp/reva/data/nodes/root/* /drone/src/tmp/reva/data/nodes/*-*-*-* /drone/src/tmp/reva/data/blobs/*",
"STORAGE_DRIVER": "S3NG",
"SKELETON_DIR": "/drone/src/tmp/testing/data/apiSkeleton",
"TEST_WITH_LDAP": "true",
"REVA_LDAP_HOSTNAME": "ldap",
"TEST_REVA": "true",
"SEND_SCENARIO_LINE_REFERENCES": "true",
"BEHAT_FILTER_TAGS": "~@provisioning_api-app-required&&~@skipOnOcis-OCIS-Storage&&~@personalSpace&&~@skipOnGraph&&~@carddav&&~@skipOnReva&&~@skipOnRevaMaster",
"DIVIDE_INTO_NUM_PARTS": parallelRuns,
"RUN_PART": runPart,
"EXPECTED_FAILURES_FILE": "/drone/src/tests/acceptance/expected-failures-on-S3NG-storage.md",
},
},
],
"services": [
ldapService(),
cephService(),
],
},
)

return pipelines

def checkStarlark():
return {
"kind": "pipeline",
Expand Down
31 changes: 1 addition & 30 deletions tests/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,35 +213,6 @@ services:
interval: 5s
timeout: 5s
retries: 5
acceptance-3:
extends: acceptance
environment:
TEST_SERVER_URL: http://frontend:20080
STORAGE_DRIVER: S3NG
TEST_WITH_LDAP: 'true'
REVA_LDAP_HOSTNAME: ldap
TEST_REVA: 'true'
SEND_SCENARIO_LINE_REFERENCES: 'true'
BEHAT_FILTER_TAGS: ~@provisioning_api-app-required&&~@skipOnOcis-OCIS-Storage&&~@personalSpace&&~&&~@skipOnGraph&&~@carddav&&~@skipOnReva&&~@skipOnRevaMaster
DIVIDE_INTO_NUM_PARTS: ${PARTS:-1}
RUN_PART: ${PART:-1}
EXPECTED_FAILURES_FILE: /mnt/acceptance/expected-failures-on-S3NG-storage.md
BEHAT_YML: tests/acceptance/config/behat-core.yml
ACCEPTANCE_TEST_TYPE: core-api
volumes:
- shared-volume:/var/tmp
working_dir: /mnt/ocis
depends_on:
gateway:
condition: service_healthy
frontend:
condition: service_healthy
shares:
condition: service_healthy
storage-publiclink:
condition: service_healthy
ldap-users:
condition: service_healthy


volumes:
shared-volume:

0 comments on commit 21a0507

Please sign in to comment.