zun-tempest-plugin/zun_tempest_plugin/tests/tempest
Hongbin Lu 07e391ee17 Handle the case that the time is zero
If a container is created but not started yet, the "StartedAt" field
of the Docker container will be January 1, year 1, 00:00:00 UTC.
This commit will check for this case and print "Created" to the
status_detail field.

Depends-On: I6185e3b8fc5e5b132656ff416e08917edd938fc8
Change-Id: If3eca41e52f32dddb9cbc34d64fdc931e1d219e6
2017-03-11 18:34:31 -06:00
..
api Handle the case that the time is zero 2017-03-11 18:34:31 -06:00
__init__.py Initial work for zun tempest plugin 2016-06-17 04:27:22 -04:00
base.py Initial work for zun tempest plugin 2016-06-17 04:27:22 -04:00
config.py Stop adding ServiceAvailable group option 2016-10-04 20:42:47 +05:30
plugin.py Stop adding ServiceAvailable group option 2016-10-04 20:42:47 +05:30
README.rst changed the spelling 2017-02-17 15:40:48 +05:30
utils.py Implement the sandbox proposal - Part 1 2016-11-21 20:47:44 -06:00

Tempest Plugin

This directory contains Tempest tests to cover Zun project.

Tempest installation

To install Tempest you can issue the following commands:

$ git clone https://github.com/openstack/tempest/
$ cd tempest/
$ pip install .

The folder you are into now will be called <TEMPEST_DIR> from now onwards.

Please note that although it is fully working outside a virtual environment, it is recommended to install within a venv.

Zun Tempest testing setup

Before using zun tempest plugin, you need to install zun first:

$  pip install -e <ZUN_SRC_DIR>

To list all Zun tempest cases, go to tempest directory, then run:

$ testr list-tests zun

Need to adopt tempest.conf, an example as follows:

$ cat /etc/tempest/tempest.conf

[auth]
use_dynamic_credentials=True
admin_username=admin
admin_password=123
admin_project_name=admin

[identity]
disable_ssl_certificate_validation=True
uri=http://127.0.0.1:5000/v2.0/
auth_version=v2
region=RegionOne

[identity-feature-enabled]
api_v2 = true
api_v3 = false
trust = false

[oslo_concurrency]
lock_path = /tmp/

[container_management]
catalog_type = container

[debug]
trace_requests=true

To run only these tests in tempest, go to tempest directory, then run:

$ ./run_tempest.sh -N -- zun

To run a single test case, go to tempest directory, then run with test case name, e.g.:

$ ./run_tempest.sh -- -N zun.tests.tempest.api.test_containers.TestContainer.test_create_list_delete