Skip to content

Commit 1a9a476

Browse files
(wip) functional tests for sse KMS Migration
Need a script to run before version then upgrade version and rerun I'll try to clean this test
1 parent 9cd6ec0 commit 1a9a476

File tree

7 files changed

+2328
-0
lines changed

7 files changed

+2328
-0
lines changed

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
"tv4": "^1.2.7"
6060
},
6161
"scripts": {
62+
"ft_sse_migration": "S3METADATA=scality S3_CONFIG_FILE=tests/functional/kms-sse-migration/configMigration.json mocha --timeout 100000 tests/functional/kms-sse-migration/migration.js",
63+
"ft_sse_cleanup": "S3METADATA=scality S3_CONFIG_FILE=tests/functional/kms-sse-migration/configArn.json mocha tests/functional/kms-sse-migration/cleanup.js",
64+
"start_sse_migration": "MPU_TESTING=yes ENABLE_NULL_VERSION_COMPAT_MODE=true S3BACKEND=file S3KMS=file S3METADATA=scality S3_CONFIG_FILE=tests/functional/kms-sse-migration/configMigration.json yarn start",
65+
"start_sse_before_migration": "yarn start_sse_arn",
66+
"ft_sse_before_migration": "S3METADATA=scality S3_CONFIG_FILE=tests/functional/kms-sse-migration/configArn.json mocha tests/functional/kms-sse-migration/cleanup.js tests/functional/kms-sse-migration/beforeMigration.js",
67+
"start_sse_arn": "MPU_TESTING=yes ENABLE_NULL_VERSION_COMPAT_MODE=true S3BACKEND=file S3METADATA=scality S3_CONFIG_FILE=tests/functional/kms-sse-migration/configArn.json yarn start",
68+
"ft_sse_arn": "S3METADATA=scality S3_CONFIG_FILE=tests/functional/kms-sse-migration/configArn.json mocha tests/functional/kms-sse-migration/arnPrefix.js",
6269
"ft_awssdk": "cd tests/functional/aws-node-sdk && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json test/",
6370
"ft_awssdk_aws": "cd tests/functional/aws-node-sdk && AWS_ON_AIR=true mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json test/",
6471
"ft_awssdk_buckets": "cd tests/functional/aws-node-sdk && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json test/bucket",

0 commit comments

Comments
 (0)