summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-swift
diff options
context:
space:
mode:
authorVu Tran <vu.tran@windriver.com>2014-04-09 16:45:51 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-04-11 14:15:28 -0400
commitc173214e9c25409944144c9b4bd9892949a834ba (patch)
tree96067b1f4364eaf1dc4a374f706d2b2f34cb919d /meta-openstack/recipes-devtools/python/python-swift
parent8178afe2b2b27459c36e9c08c22117f1b6a39650 (diff)
downloadmeta-cloud-services-c173214e9c25409944144c9b4bd9892949a834ba.tar.gz
swift: add tests
Introduce swift test package which contains all Swift unit tests. Swift unit tests can be run as: $ cd /usr/lib64/python2.7/site-packages/swift $ nosetests -v test Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-swift')
-rw-r--r--meta-openstack/recipes-devtools/python/python-swift/test.conf44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-swift/test.conf b/meta-openstack/recipes-devtools/python/python-swift/test.conf
new file mode 100644
index 0000000..12ee253
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-swift/test.conf
@@ -0,0 +1,44 @@
1[func_test]
2auth_version = 2
3auth_host = localhost
4auth_port = 5000
5auth_ssl = no
6auth_prefix = /v2.0/
7
8# Primary functional test account (needs admin access to the account)
9account = %ADMIN_TENANT_NAME%
10username = %ADMIN_USER%
11password = %ADMIN_PASSWORD%
12
13# User on a second account (needs admin access to the account)
14account2 = %SERVICE_TENANT_NAME%
15username2 = %SERVICE_USER%
16password2 = %SERVICE_PASSWORD%
17
18# User on same account as first, but without admin access
19username3 = %DEMO_USER%
20password3 = %DEMO_PASSWORD%
21
22# Default constraints if not defined here, the test runner will try
23# to set them from /etc/swift/swift.conf. If that file isn't found,
24# the test runner will skip tests that depend on these values.
25# Note that the cluster must have "sane" values for the test suite to pass.
26max_file_size = 5242880
27max_meta_name_length = 128
28max_meta_value_length = 256
29max_meta_count = 90
30max_meta_overall_size = 4096
31max_object_name_length = 1024
32container_listing_limit = 10000
33account_listing_limit = 10000
34max_account_name_length = 256
35max_container_name_length = 256
36
37collate = C
38
39[unit_test]
40fake_syslog = False
41
42[probe_test]
43# check_server_timeout = 30
44# validate_rsync = false