This work is licensed under a Creative Commons Attribution 3.0 Unported
License.
http://creativecommons.org/licenses/by/3.0/legalcode
为 Icehouse 添加 Swift API 测试¶
https://blueprints.launchpad.net/tempest/+spec/add-icehouse-swift-tests
添加 Icehouse 版本 (1.13.1) 中新增的 Swift API 测试
问题描述¶
在 Havana 和 Icehouse 版本之间,Swift 添加了一些新功能。然而,Tempest 目前仅包含这些功能 API 测试的子集。
提议的变更¶
为以下新功能添加 API 测试。
新型容器同步
通过 TempURL 内联获取内容
POST 请求以批量删除多个容器和对象
带有 ‘If-None-Match:
*’ 头的 PUT 对象
将创建新的文件 test_container_sync_middleware.py 来包含新型容器同步的测试。其他两个功能的测试用例将添加到现有的适当文件中。
在新容器同步功能中,‘realm’ 和 ‘cluster’ 名称在 “X-Container-Sync-To” 头部中使用,例如 //<realm_name>/<cluster_name>/<account>/<container>,以代替旧式容器同步中使用的 URL,来指定同步对象的位置。Realm 和 cluster 名称在 Swift 的 container-sync-realms.conf 中定义,因此在 tempest.conf 中指定 realm 和 cluster 名称也是必要的。必须添加以下两个配置值
[object-storage]
realm_name=<realm name>
cluster_name=<cluster name>
实现¶
负责人¶
森田 大介 <morita.daisuke@lab.ntt.co.jp>
里程碑¶
- 完成目标里程碑
Juno-3
工作项¶
编写 Swift 新功能的测试用例
添加配置值以运行新型容器同步的测试
工作进展将在 http://goo.gl/qRLgZe (Google Doc) 中跟踪。