s3: Add Alibaba OSS to integration tests and fix storage classes

This commit is contained in:
Nick Craig-Wood 2019-01-12 20:41:47 +00:00
parent f29757de3b
commit 1318c6aec8
3 changed files with 19 additions and 9 deletions

View file

@ -617,17 +617,21 @@ doesn't copy the ACL from the source but rather writes a fresh one.`,
Help: "Glacier storage class", Help: "Glacier storage class",
}}, }},
}, { }, {
// Mapping from here: https://www.alibabacloud.com/help/doc-detail/64919.htm
Name: "storage_class", Name: "storage_class",
Help: "The storage class to use when storing new objects in OSS.", Help: "The storage class to use when storing new objects in OSS.",
Provider: "Alibaba", Provider: "Alibaba",
Examples: []fs.OptionExample{{ Examples: []fs.OptionExample{{
Value: "Standard", Value: "",
Help: "Default",
}, {
Value: "STANDARD",
Help: "Standard storage class", Help: "Standard storage class",
}, { }, {
Value: "Archive", Value: "GLACIER",
Help: "Archive storage mode.", Help: "Archive storage mode.",
}, { }, {
Value: "IA", Value: "STANDARD_IA",
Help: "Infrequent access storage mode.", Help: "Infrequent access storage mode.",
}}, }},
}, { }, {

View file

@ -1606,12 +1606,14 @@ acl> 1
The storage class to use when storing new objects in OSS. The storage class to use when storing new objects in OSS.
Enter a string value. Press Enter for the default (""). Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value Choose a number from below, or type in your own value
1 / Standard storage class 1 / Default
\ "Standard" \ ""
2 / Archive storage mode. 2 / Standard storage class
\ "Archive" \ "STANDARD"
3 / Infrequent access storage mode. 3 / Archive storage mode.
\ "IA" \ "GLACIER"
4 / Infrequent access storage mode.
\ "STANDARD_IA"
storage_class> 1 storage_class> 1
Edit advanced config? (y/n) Edit advanced config? (y/n)
y) Yes y) Yes

View file

@ -73,6 +73,10 @@ backends:
fastlist: true fastlist: true
ignore: ignore:
- TestIntegration/FsMkdir/FsPutFiles/FsCopy - TestIntegration/FsMkdir/FsPutFiles/FsCopy
- backend: "s3"
remote: "TestS3Alibaba:"
subdir: true
fastlist: true
- backend: "sftp" - backend: "sftp"
remote: "TestSftp:" remote: "TestSftp:"
subdir: false subdir: false