Skip to content

Commit

Permalink
Add integration tests for the s3ng storage driver
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Mar 10, 2021
1 parent 5aa3d23 commit 4744877
Show file tree
Hide file tree
Showing 5 changed files with 2,324 additions and 1 deletion.
90 changes: 89 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@ def redisService():
},
}

def cephService():
return {
"name": "ceph",
"image": "ceph/daemon",
"pull": "always",
"environment": {
"CEPH_DAEMON": "demo",
"NETWORK_AUTO_DETECT": "4",
"MON_IP": "0.0.0.0",
"CEPH_PUBLIC_NETWORK": "0.0.0.0/0",
"RGW_CIVETWEB_PORT": "4000 ",
"RGW_NAME": "ceph",
"CEPH_DEMO_UID": "test-user",
"CEPH_DEMO_ACCESS_KEY": "test",
"CEPH_DEMO_SECRET_KEY": "test",
"CEPH_DEMO_BUCKET": "test",
}
}

# Pipeline definitions
def main(ctx):
return [
Expand All @@ -80,7 +99,7 @@ def main(ctx):
litmusOcisNewWebdav(),
localIntegrationTestsOwncloud(),
localIntegrationTestsOcis(),
] + ocisIntegrationTests(6) + owncloudIntegrationTests(6)
] + ocisIntegrationTests(6) + owncloudIntegrationTests(6) + s3ngIntegrationTests(12)


def buildAndPublishDocker():
Expand Down Expand Up @@ -718,4 +737,73 @@ def owncloudIntegrationTests(parallelRuns):
}
)

return pipelines

def s3ngIntegrationTests(parallelRuns):
pipelines = []
for runPart in range(1, parallelRuns + 1):
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("build-ci"),
{
"name": "revad-services",
"image": "registry.cern.ch/docker.io/library/golang:1.13",
"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-oc-s3ng.toml &",
"/drone/src/cmd/revad/revad -c storage-publiclink-s3ng.toml &",
"/drone/src/cmd/revad/revad -c ldap-users.toml",
],
},
cloneOc10TestReposStep(),
{
"name": "oC10APIAcceptanceTestsS3ngStorage",
"image": "registry.cern.ch/docker.io/owncloudci/php:7.4",
"commands": [
"cd /drone/src/tmp/testrunner",
"make test-acceptance-api",
],
"environment": {
"TEST_SERVER_URL": "http://revad-services:20080",
"OCIS_REVA_DATA_ROOT": "/drone/src/tmp/reva/data/",
"STORAGE_DRIVER": "S3NG",
"SKELETON_DIR": "/drone/src/tmp/testing/data/apiSkeleton",
"TEST_WITH_LDAP": "true",
"REVA_LDAP_HOSTNAME": "ldap",
"TEST_REVA": "true",
"BEHAT_FILTER_TAGS": "~@notToImplementOnOCIS&&~@toImplementOnOCIS&&~comments-app-required&&~@federation-app-required&&~@notifications-app-required&&~systemtags-app-required&&~@provisioning_api-app-required&&~@preview-extension-required&&~@local_storage&&~@skipOnOcis-OCIS-Storage",
"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
Loading

0 comments on commit 4744877

Please sign in to comment.