Skip to content

Commit e5cbde7

Browse files
author
taowei.wtw
committed
update version to v1.7.12
1 parent 1ecff23 commit e5cbde7

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
## 版本号:v1.7.10日期:2022-04-22
1+
## 版本号:v1.7.12日期:2022-05-13
2+
### 变更内容
3+
- 增加: 支持cloud box
4+
- 增加: 支持v4签名
5+
6+
## 版本号:v1.7.11日期:2022-04-22
27
### 变更内容
38
- 增加: restore和set-meta支持传入文件进行批量操作
49

README-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
### [README of English](https://github.com/aliyun/ossutil/blob/master/README.md)
88

99
## 关于
10-
- 此工具采用go语言,基于OSS[阿里云对象存储服务](http://www.aliyun.com/product/oss/)官方GO SDK v2.2.2 构建。
10+
- 此工具采用go语言,基于OSS[阿里云对象存储服务](http://www.aliyun.com/product/oss/)官方GO SDK v2.2.3 构建。
1111
- 阿里云对象存储(Object Storage Service,简称OSS),是阿里云对外提供的海量,安全,低成本,高可靠的云存储服务。
1212
- OSS适合存放任意文件类型,适合各种网站、开发企业及开发者使用。
1313
- 该工具旨在为用户提供一个方便的,以命令行方式管理OSS数据的途径。
1414
- 当前版本提供了列举和删除Multipart Uploads功能。
1515
- 当前版本未提供Bucket管理功能功能,相关功能会在后续版本中开发。
1616

1717
## 版本
18-
- 当前版本:v1.7.11
18+
- 当前版本:v1.7.12
1919

2020
## 运行环境
2121
- Linux

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
### [README of Chinese](https://github.com/aliyun/ossutil/blob/master/README-CN.md)
88

99
## About
10-
- This tool is developed with Go and built on the official GO SDK v2.2.2 of OSS [Alibaba Cloud Object Storage Service](http://www.aliyun.com/product/oss/).
10+
- This tool is developed with Go and built on the official GO SDK v2.2.3 of OSS [Alibaba Cloud Object Storage Service](http://www.aliyun.com/product/oss/).
1111
- OSS is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, low cost, and high reliability.
1212
- OSS can store any type of files. It applies to various websites, development enterprises and developers.
1313
- This tool aims to provide a convenient-to-use command line for users to manage data in OSS.
1414
- The current version provides to list and delete multipart upload tasks.
1515
- The current version does not support bucket management. The feature will be available in future versions.
1616

1717
## Version
18-
- Current version: v1.7.11
18+
- Current version: v1.7.12
1919

2020
## Run environment
2121
- Linux

lib/cp_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,7 @@ func (s *OssutilCommandSuite) TestBatchCPObjectWithInvalidIncludeExcludeEqual(c
28402840

28412841
cmdline = []string{"ossutil", "cp", bucketStr, downdir, "-f", "--meta", "Cache-Control:no-cache"}
28422842
showElapse, err = s.rawCPWithFilter(args, false, true, false, DefaultBigFileThreshold, CheckpointDir, cmdline, "Cache-Control:no-cache", "")
2843-
c.Assert(err, IsNil)
2843+
c.Assert(err, NotNil)
28442844

28452845
cmdline = []string{"ossutil", "cp", bucketStr, downdir, "-f", "--acl", "public-read"}
28462846
showElapse, err = s.rawCPWithFilter(args, false, true, false, DefaultBigFileThreshold, CheckpointDir, cmdline, "", "public-read")

lib/lcb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (lc *LcbCommand) RunCommand() error {
145145
if limitedNum >= 0 && num >= limitedNum {
146146
break
147147
}
148-
fmt.Printf("%-30s %20s%s%12s%s%s\n", box.Id, box.Name, box.Owner, box.Region, box.ControlEndpoint, box.DataEndpoint)
148+
fmt.Printf("%-30s %20s%s%12s%s%s\n", box.ID, box.Name, lcr.Owner, box.Region, box.ControlEndpoint, box.DataEndpoint)
149149
num++
150150
}
151151
if !lcr.IsTruncated {

lib/restore_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"strings"
1010

1111
oss "github.com/aliyun/aliyun-oss-go-sdk/oss"
12+
. "gopkg.in/check.v1"
1213
)
1314

1415
func (s *OssutilCommandSuite) TestRestoreObject(c *C) {

lib/set_meta_test.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"strings"
99

1010
oss "github.com/aliyun/aliyun-oss-go-sdk/oss"
11+
. "gopkg.in/check.v1"
1112
)
1213

1314
func (s *OssutilCommandSuite) TestSetObjectMetaSetBucketMeta(c *C) {
@@ -67,16 +68,12 @@ func (s *OssutilCommandSuite) TestSetObjectMetaBasic(c *C) {
6768

6869
// without update, delete and force
6970
showElapse, err = s.rawSetMeta(bucketName, object, "x-oss-object-acl:default#X-Oss-Meta-A:A", false, false, false, false, DefaultLanguage)
70-
c.Assert(err, NotNil)
71-
c.Assert(showElapse, Equals, false)
71+
c.Assert(err, IsNil)
72+
c.Assert(showElapse, Equals, true)
7273

7374
showElapse, err = s.rawSetMeta(bucketName, object, "x-oss-object-acl:default#X-Oss-Meta-A:A", false, false, false, false, EnglishLanguage)
74-
c.Assert(err, NotNil)
75-
c.Assert(showElapse, Equals, false)
76-
77-
showElapse, err = s.rawSetMeta(bucketName, object, "x-oss-object-acl:default#X-Oss-Meta-A:A", false, false, false, false, LEnglishLanguage)
78-
c.Assert(err, NotNil)
79-
c.Assert(showElapse, Equals, false)
75+
c.Assert(err, IsNil)
76+
c.Assert(showElapse, Equals, true)
8077

8178
// with update and delete
8279
showElapse, err = s.rawSetMeta(bucketName, object, "x-oss-object-acl:default#X-Oss-Meta-A:A", true, true, false, true, DefaultLanguage)

0 commit comments

Comments
 (0)