Add coverage extension to nova API.

This adds a new extension to nova API. It allows for internal use of
Ned Batchelder's coverage_ module. (what is used for the nosecoverage
plugin)

The api allows for coverage to be enabled and a report to be output to
a file with API calls. The intended use of this is for instrumenting
client based tests like Tempest. Coverage on tempest will not give
information regarding how much of nova is covered.

Implements: blueprint coverage-extension
Change-Id: I47497f5be3fd5956250f2dcd1630c86c72725ce8
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
This commit is contained in:
Matthew Treinish
2012-10-15 14:47:28 -04:00
parent 4132827420
commit 93d238a314
2 changed files with 11 additions and 0 deletions

View File

@@ -128,6 +128,14 @@
"namespace": "http://docs.openstack.org/compute/ext/os-consoles/api/v2", "namespace": "http://docs.openstack.org/compute/ext/os-consoles/api/v2",
"updated": "2011-12-23T00:00:00+00:00" "updated": "2011-12-23T00:00:00+00:00"
}, },
{
"alias": "os-coverage",
"description": "Enable Nova Coverage",
"links": [],
"name": "Coverage",
"namespace": "http://docs.openstack.org/compute/ext/coverage/api/v2",
"updated": "2012-10-15T00:00:00+00:00"
},
{ {
"alias": "os-create-server-ext", "alias": "os-create-server-ext",
"description": "Extended support to the Create Server v1.1 API", "description": "Extended support to the Create Server v1.1 API",

View File

@@ -60,6 +60,9 @@
<extension alias="os-consoles" updated="2011-12-23T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/os-consoles/api/v2" name="Consoles"> <extension alias="os-consoles" updated="2011-12-23T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/os-consoles/api/v2" name="Consoles">
<description>Interactive Console support.</description> <description>Interactive Console support.</description>
</extension> </extension>
<extension alias="os-coverage" updated="2012-10-15T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/coverage/api/v2" name="Coverage">
<description>Enable Nova Coverage</description>
</extension>
<extension alias="os-create-server-ext" updated="2011-07-19T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/createserverext/api/v1.1" name="Createserverext"> <extension alias="os-create-server-ext" updated="2011-07-19T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/createserverext/api/v1.1" name="Createserverext">
<description>Extended support to the Create Server v1.1 API</description> <description>Extended support to the Create Server v1.1 API</description>
</extension> </extension>