|
| 1 | +--- |
| 2 | +depends_on: [ build ] |
| 3 | + |
| 4 | +variables: |
| 5 | + - &golang_image 'docker.io/golang:1.24' |
| 6 | + - &alpine_image 'owncloudci/alpine:latest' |
| 7 | + - &behat_image 'cs3org/behat:latest' |
| 8 | + |
| 9 | +when: |
| 10 | + - event: [ push , manual ] |
| 11 | + branch: ${CI_REPO_DEFAULT_BRANCH} |
| 12 | + - event: [ pull_request ] |
| 13 | + |
| 14 | +matrix: |
| 15 | + RUN_PART: [ 1, 2, 3, 4 ] |
| 16 | + |
| 17 | +steps: |
| 18 | + fetch-binary: |
| 19 | + image: minio/mc:RELEASE.2021-10-07T04-19-58Z |
| 20 | + environment: |
| 21 | + AWS_ACCESS_KEY_ID: |
| 22 | + from_secret: cache_s3_access_key |
| 23 | + AWS_SECRET_ACCESS_KEY: |
| 24 | + from_secret: cache_s3_secret_key |
| 25 | + S3_BUCKET: |
| 26 | + from_secret: cache_s3_bucket |
| 27 | + S3_ENDPOINT: |
| 28 | + from_secret: cache_s3_server |
| 29 | + commands: |
| 30 | + - mc alias set s3 $S3_ENDPOINT $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY |
| 31 | + - mc cp -a s3/$S3_BUCKET/opencloud-eu/reva/$CI_COMMIT_SHA-$CI_PIPELINE_NUMBER-revad $CI_WORKSPACE/cmd/revad/revad |
| 32 | + revad-services: |
| 33 | + image: *golang_image |
| 34 | + detach: true |
| 35 | + commands: |
| 36 | + - cd tests/oc-integration-tests/ci/ |
| 37 | + - ../../../cmd/revad/revad -c frontend.toml & |
| 38 | + - ../../../cmd/revad/revad -c gateway.toml & |
| 39 | + - ../../../cmd/revad/revad -c shares.toml & |
| 40 | + - ../../../cmd/revad/revad -c storage-shares.toml & |
| 41 | + - ../../../cmd/revad/revad -c machine-auth.toml & |
| 42 | + - ../../../cmd/revad/revad -c storage-users-decomposeds3.toml & |
| 43 | + - ../../../cmd/revad/revad -c storage-publiclink.toml & |
| 44 | + - ../../../cmd/revad/revad -c permissions-demo-ci.toml & |
| 45 | + - ../../../cmd/revad/revad -c ldap-users.toml |
| 46 | + wait_for_server: |
| 47 | + image: ghcr.io/dvjn/woodpecker-is-it-up-yet-plugin |
| 48 | + settings: |
| 49 | + host: revad-services |
| 50 | + port: 19000 |
| 51 | + |
| 52 | + clone_api_tests: |
| 53 | + image: *alpine_image |
| 54 | + commands: |
| 55 | + - . ./.woodpecker.env |
| 56 | + - git clone -b $APITESTS_BRANCH --single-branch --no-tags $APITESTS_REPO_GIT_URL |
| 57 | + - cd opencloud |
| 58 | + - git checkout $APITESTS_COMMITID |
| 59 | + |
| 60 | + api-tests-opencloud: |
| 61 | + image: *behat_image |
| 62 | + commands: |
| 63 | + - cd opencloud |
| 64 | + - make test-acceptance-api |
| 65 | + environment: |
| 66 | + TEST_SERVER_URL: "http://revad-services:20080" |
| 67 | + OC_REVA_DATA_ROOT: "/woodpecker/src/reva/data" |
| 68 | + DELETE_USER_DATA_CMD: "rm -rf /woodpecker/src/reva/data/spaces/* /woodpecker/src/reva/data/blobs/* /woodpecker/src/reva/data/indexes/by-type/*" |
| 69 | + STORAGE_DRIVER: "POSIX" |
| 70 | + TEST_WITH_LDAP: "true" |
| 71 | + REVA_LDAP_HOSTNAME: "ldap" |
| 72 | + TEST_REVA: True |
| 73 | + SEND_SCENARIO_LINE_REFERENCES: True |
| 74 | + BEHAT_FILTER_TAGS: "~@skip&&~@skipOnReva&&~@env-config" |
| 75 | + DIVIDE_INTO_NUM_PARTS: "4" # Adjust this based on total parts |
| 76 | + RUN_PART: "${RUN_PART}" |
| 77 | + EXPECTED_FAILURES_FILE: "/woodpecker/src/github.com/opencloud-eu/reva/tests/acceptance/expected-failures-on-DECOMPOSEDS3-storage.md" |
| 78 | + ACCEPTANCE_TEST_TYPE: "core-api" |
| 79 | + |
| 80 | +services: |
| 81 | + ldap: |
| 82 | + image: 'osixia/openldap:1.3.0' |
| 83 | + environment: |
| 84 | + LDAP_DOMAIN: "example.org" |
| 85 | + LDAP_ORGANISATION: "example" |
| 86 | + LDAP_ADMIN_PASSWORD: "admin" |
| 87 | + LDAP_TLS_VERIFY_CLIENT: "never" |
| 88 | + HOSTNAME: "ldap" |
| 89 | + ceph: |
| 90 | + image: 'ceph/daemon' |
| 91 | + environment: |
| 92 | + CEPH_DAEMON: "demo" |
| 93 | + NETWORK_AUTO_DETECT: "4" |
| 94 | + MON_IP: "0.0.0.0" |
| 95 | + CEPH_PUBLIC_NETWORK: "0.0.0.0/0" |
| 96 | + RGW_CIVETWEB_PORT: "4000" |
| 97 | + RGW_NAME: "ceph" |
| 98 | + CEPH_DEMO_UID: "test-user" |
| 99 | + CEPH_DEMO_ACCESS_KEY: "test" |
| 100 | + CEPH_DEMO_SECRET_KEY: "test" |
| 101 | + CEPH_DEMO_BUCKET: "test" |
0 commit comments