Skip to content

Commit 692264c

Browse files
author
Kerkesni
committed
enable BackbeatRoutes replication tests
- Updated tests to perform cross-account CRR - Made bucket names unique per test Issue: CLDSRV-618
1 parent 6b1481d commit 692264c

4 files changed

Lines changed: 259 additions & 167 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ jobs:
229229
S3BACKEND: mem
230230
S3_LOCATION_FILE: /usr/src/app/tests/locationConfig/locationConfigTests.json
231231
S3DATA: multiple
232+
S3METADATA: mongodb
232233
JOB_NAME: ${{ github.job }}
233234
steps:
234235
- name: Checkout
@@ -242,7 +243,7 @@ jobs:
242243
- name: Setup CI environment
243244
uses: ./.github/actions/setup-ci
244245
- name: Setup CI services
245-
run: docker compose --profile sproxyd up -d
246+
run: docker compose --profile sproxyd --profile mongo up -d
246247
working-directory: .github/docker
247248
- name: Run multiple backend test
248249
run: |-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"test_legacy_location": "CI=true S3QUOTA=scuba S3_LOCATION_FILE=tests/locationConfig/locationConfigLegacy.json S3BACKEND=mem mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json --recursive tests/unit --exit",
118118
"test_utapi_v2": "mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json --recursive tests/utapi --exit",
119119
"test_quota": "mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json --recursive tests/quota --exit",
120-
"multiple_backend_test": "CI=true S3BACKEND=mem S3DATA=multiple mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 20000 --recursive tests/multipleBackend --exit",
120+
"multiple_backend_test": "CI=true S3BACKEND=mem S3METADATA=mem S3DATA=multiple mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 20000 --recursive tests/multipleBackend --exit",
121121
"cover": "nyc --clean --silent yarn run",
122122
"postcover": "nyc report --report-dir ./coverage/test --reporter=lcov"
123123
}

tests/multipleBackend/routes/routeBackbeat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ describe('backbeat routes', () => {
751751
});
752752
});
753753

754-
it('should create a new null version if versioning suspended and delete marker null version', done => {
754+
it.skip('should create a new null version if versioning suspended and delete marker null version', done => {
755755
let objMD;
756756
return async.series([
757757
next => s3.putBucketVersioning({ Bucket: bucket, VersioningConfiguration: { Status: 'Suspended' } },

0 commit comments

Comments
 (0)