diff options
author | Vu Tran <vu.tran@windriver.com> | 2014-04-09 16:45:51 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-11 14:15:28 -0400 |
commit | c173214e9c25409944144c9b4bd9892949a834ba (patch) | |
tree | 96067b1f4364eaf1dc4a374f706d2b2f34cb919d /meta-openstack/recipes-devtools/python/python-swift | |
parent | 8178afe2b2b27459c36e9c08c22117f1b6a39650 (diff) | |
download | meta-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.conf | 44 |
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] | ||
2 | auth_version = 2 | ||
3 | auth_host = localhost | ||
4 | auth_port = 5000 | ||
5 | auth_ssl = no | ||
6 | auth_prefix = /v2.0/ | ||
7 | |||
8 | # Primary functional test account (needs admin access to the account) | ||
9 | account = %ADMIN_TENANT_NAME% | ||
10 | username = %ADMIN_USER% | ||
11 | password = %ADMIN_PASSWORD% | ||
12 | |||
13 | # User on a second account (needs admin access to the account) | ||
14 | account2 = %SERVICE_TENANT_NAME% | ||
15 | username2 = %SERVICE_USER% | ||
16 | password2 = %SERVICE_PASSWORD% | ||
17 | |||
18 | # User on same account as first, but without admin access | ||
19 | username3 = %DEMO_USER% | ||
20 | password3 = %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. | ||
26 | max_file_size = 5242880 | ||
27 | max_meta_name_length = 128 | ||
28 | max_meta_value_length = 256 | ||
29 | max_meta_count = 90 | ||
30 | max_meta_overall_size = 4096 | ||
31 | max_object_name_length = 1024 | ||
32 | container_listing_limit = 10000 | ||
33 | account_listing_limit = 10000 | ||
34 | max_account_name_length = 256 | ||
35 | max_container_name_length = 256 | ||
36 | |||
37 | collate = C | ||
38 | |||
39 | [unit_test] | ||
40 | fake_syslog = False | ||
41 | |||
42 | [probe_test] | ||
43 | # check_server_timeout = 30 | ||
44 | # validate_rsync = false | ||