mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
s3: fix testing tiers which don't exist except on AWS
This commit is contained in:
parent
d8bc542ffc
commit
bf57087a6e
@ -23,14 +23,20 @@ func SetupS3Test(t *testing.T) (context.Context, *Options, *http.Client) {
|
|||||||
|
|
||||||
// TestIntegration runs integration tests against the remote
|
// TestIntegration runs integration tests against the remote
|
||||||
func TestIntegration(t *testing.T) {
|
func TestIntegration(t *testing.T) {
|
||||||
fstests.Run(t, &fstests.Opt{
|
opt := &fstests.Opt{
|
||||||
RemoteName: "TestS3:",
|
RemoteName: "TestS3:",
|
||||||
NilObject: (*Object)(nil),
|
NilObject: (*Object)(nil),
|
||||||
TiersToTest: []string{"STANDARD", "STANDARD_IA"},
|
TiersToTest: []string{"STANDARD"},
|
||||||
ChunkedUpload: fstests.ChunkedUploadConfig{
|
ChunkedUpload: fstests.ChunkedUploadConfig{
|
||||||
MinChunkSize: minChunkSize,
|
MinChunkSize: minChunkSize,
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
// Test wider range of tiers on AWS
|
||||||
|
if *fstest.RemoteName == "" || *fstest.RemoteName == "TestS3:" {
|
||||||
|
opt.TiersToTest = []string{"STANDARD", "STANDARD_IA"}
|
||||||
|
}
|
||||||
|
fstests.Run(t, opt)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestIntegration2(t *testing.T) {
|
func TestIntegration2(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user