Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
修正单元测试
  • Loading branch information
wangtuanjie committed Aug 3, 2013
commit a0f1ead6f5974586e0e76dccd2b9affe5a6a058c
4 changes: 3 additions & 1 deletion rs/rs_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ func init() {

// 删除 可能存在的 key
client.Delete(nil, bucketName, key)
client.Delete(nil, bucketName, newkey1)
client.Delete(nil, bucketName, newkey2)
}

func upFile(localFile, bucketName, key string) error {

policy := PutPolicy {
Scope: bucketName,
Scope: bucketName + ":" + key,
}
return io.PutFile(nil, nil, policy.Token(nil), key, localFile, nil)
}
Expand Down