qa-specs/specs/tempest/implemented/centralized-workspaces.rst
Ken'ichi Ohmichi 1d9981734e Move implemented blueprints to implemented
list-plugins is done with If28311bc2e8d29a97ee46d7d73edba2a93aed7ce
centralized-workspaces is done with I9595e3ba809e457951a0ffdf4b15f641f2fec4f4
client-manager-refactor is done with I6a4845edb95031243bca12a8d03c60cf18528212

Change-Id: I7be211308debb82a7e08ca997f924adda5af1707
2016-09-14 16:28:16 -07:00

2.7 KiB

Centralized Tempest Workspace Management

https://blueprints.launchpad.net/tempest/+spec/centralized-workspaces

Create a consistent means for creation and management of Tempest workspaces.

Problem description

Currently there is no way to track workspaces in a consistent manner. This becomes problematic as the number of workspaces increases.

Proposed change

Create a .tempest file in the user's home directory to be used as a source of truth for Tempest workspaces. Users can register new workspaces via the tempest workspace register command. New workspaces are automatically registered via tempest init. The workspace manager automatically unregisters any workspaces that no longer exist.

Action Command
Register a workspace: tempest workspace register --name <name> --path <path>
Rename a workspace: tempest workspace update --key <key> --old-value <old> --new-value <new>
List workspaces: tempest workspace list

Example Usage

> cd ~/devstack
> tempest init --name devstack

> tempest workspace register --name staging --path /etc/staging

> tempest workspace list
+----------+----------------+
| Name     |    Location    |
+----------+--------------- +
| devstack | /root/devstack |
| staging  | /etc/staging   |
+----------+----------------+

Projects

  • openstack/tempest

Implementation

Assignee(s)

  • slowrie
  • dwalleck

Milestones

Target Milestone for completion:

  • Mitaka-2

Work Items

  • Create argparse to handle new workspace command and subcommands
  • Create tracking file and class to represent it
  • Add code to list that unregisters workspaces when locations no longer exist

References