Skip to content

Commit d87adb7

Browse files
fix bucket with replication service user
1 parent 8cf8f95 commit d87adb7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/functional/aws-node-sdk/test/bucket/putBucketReplication.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ describe('aws-node-sdk test putBucketReplication bucket status', () => {
126126
it('should put configuration on a bucket with versioning', done =>
127127
checkVersioningError(s3, 'Enabled', null, done));
128128

129-
it('should put configuration on a bucket with versioning if ' +
129+
// S3C doesn't support service account
130+
// (canonicalId looking like http://acs.zenko.io/accounts/service/replication)
131+
const itSkipS3C = process.env.S3_END_TO_END ? it.skip : it;
132+
itSkipS3C('should put configuration on a bucket with versioning if ' +
130133
'user is a replication user', done =>
131134
checkVersioningError(replicationAccountS3, 'Enabled', null, done));
132135
});

tests/functional/aws-node-sdk/test/bucket/testBucketVersioning.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ describe('aws-node-sdk test bucket versioning', function testSuite() {
145145
s3.putBucketVersioning(params, done);
146146
});
147147

148-
it('should accept valid versioning configuration if user is a ' +
148+
// S3C doesn't support service account
149+
// (canonicalId looking like http://acs.zenko.io/accounts/service/replication)
150+
const itSkipS3C = process.env.S3_END_TO_END ? it.skip : it;
151+
itSkipS3C('should accept valid versioning configuration if user is a ' +
149152
'replication user', done => {
150153
const params = {
151154
Bucket: bucket,

0 commit comments

Comments
 (0)