RETIRED, A library to assist in creating functional or integrated test suites for OpenStack projects.
Go to file
Takashi NATSUME c9c3b55333 Add update attached volume function to servers_client
os-volume_attachments API for update:
PUT /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments/{attachment_id}

tenant_id: The project ID (tenant ID) that the target server belongs to
server_id: The server ID to update the volume attachment
attachment_id: The volume attachment ID to update

Request body sample:
{
    "volumeAttachment": {
        "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f805"
    }
}

volumeId: The volume ID to attach instead of the volume
          that has already been attached

This API does not return a response body.

Reference:
- Request body sample
  https://github.com/openstack/nova/blob/master/doc/api_samples/os-volumes/update-volume-req.json

- Fuctional test
  test_volume_attachment_update method in
  VolumeAttachmentsSample class
  https://github.com/openstack/nova/blob/master/nova/tests/functional/api_sample_tests/test_volumes.py

Change-Id: Ic0258e5688be6ede3316ab4310e9ca6ac0f51659
Implements: blueprint add-nova-swap-volume-tests
2016-02-05 14:23:03 +09:00
doc/source Switch to using autogenerated ChangeLog in docs 2015-09-24 11:50:05 -04:00
tempest_lib Add update attached volume function to servers_client 2016-02-05 14:23:03 +09:00
tools Make git log messsage to shorter 2015-11-25 17:32:35 +09:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:56:08 +00:00
.gitignore Update .gitignore because of to ignore .eggs dir 2016-01-29 16:02:18 +09:00
.gitreview Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
.mailmap Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
.testr.conf Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
CONTRIBUTING.rst Fix Bugs URL on CONTRIBUTING.rst 2015-11-24 12:07:37 +09:00
HACKING.rst Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
LICENSE Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
README.rst Improve the library's documentation 2015-02-11 19:04:47 -05:00
babel.cfg Initial commit from cookiecutter 2014-08-27 22:52:05 -04:00
requirements.txt Updated from global requirements 2016-01-21 17:48:28 +00:00
setup.cfg Migrate idempotent id decortor and tooling from tempest 2015-08-25 17:48:31 -04:00
setup.py Updated from global requirements 2015-09-23 20:17:27 +00:00
test-requirements.txt Updated from global requirements 2016-01-21 17:48:28 +00:00
tox.ini Pass environment variables of proxy to tox 2015-12-03 20:20:05 +09:00

README.rst

tempest-lib

OpenStack Functional Testing Library

tempest-lib is a library of common functionality that was originally in tempest (or similar in scope to tempest)

Features

Some of the current functionality exposed from the library includes:

  • OpenStack python-* client CLI testing framework
  • subunit-trace: A output filter for subunit streams. Useful in conjunction

    with calling a test runner that emits subunit

  • A unified REST Client
  • Utility functions:
    • skip_because: Skip a test because of a bug
    • find_test_caller: Perform stack introspection to find the test caller.

      common methods