Skip to content

Commit 87b0f49

Browse files
add bucket quota test for xml input
ISSUE: CLDSRV-818
1 parent 0375cec commit 87b0f49

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ describe('Test update bucket quota', () => {
3434
}
3535
});
3636

37+
it('should update quota with XML format', async () => {
38+
try {
39+
const xmlQuota = '<QuotaConfiguration><Quota>3000</Quota></QuotaConfiguration>';
40+
await sendRequest('PUT', '127.0.0.1:8000', `/${bucket}/?quota=true`, xmlQuota);
41+
assert.ok(true);
42+
} catch (err) {
43+
assert.fail(`Expected no error, but got ${err}`);
44+
}
45+
});
46+
3747
it('should return no such bucket error', async () => {
3848
try {
3949
await sendRequest('PUT', '127.0.0.1:8000', `/${nonExistantBucket}/?quota=true`, JSON.stringify(quota));

0 commit comments

Comments
 (0)