api-ref: Example verification for os-agents.inc

Currently only 'xen' is supported for the 'hypervisor'
parameter. So examples are changed to 'xen'
instead of 'hypervisor'.

Change-Id: Ibd40dcfd3801c7a4165e299a1232ea46f2f17cf4
Implements: blueprint api-ref-in-rst
This commit is contained in:
Takashi NATSUME
2016-06-27 21:23:57 +09:00
parent 76e857cade
commit ba71b8d9ab
7 changed files with 7 additions and 8 deletions

View File

@@ -1,5 +1,4 @@
.. -*- rst -*-
.. needs:example_verification
.. needs:body_verification
==========================

View File

@@ -1,6 +1,6 @@
{
"agent": {
"hypervisor": "hypervisor",
"hypervisor": "xen",
"os": "os",
"architecture": "x86",
"version": "8.0",

View File

@@ -2,7 +2,7 @@
"agent": {
"agent_id": 1,
"architecture": "x86",
"hypervisor": "hypervisor",
"hypervisor": "xen",
"md5hash": "add6bb58e139be103324d04d82d8f545",
"os": "os",
"url": "http://example.com/path/to/resource",

View File

@@ -3,7 +3,7 @@
{
"agent_id": 1,
"architecture": "x86",
"hypervisor": "hypervisor",
"hypervisor": "xen",
"md5hash": "add6bb58e139be103324d04d82d8f545",
"os": "os",
"url": "http://example.com/path/to/resource",

View File

@@ -2,7 +2,7 @@
"agent": {
"agent_id": 1,
"architecture": "x86",
"hypervisor": "hypervisor",
"hypervisor": "xen",
"md5hash": "add6bb58e139be103324d04d82d8f545",
"os": "os",
"url": "http://example.com/path/to/resource",

View File

@@ -3,7 +3,7 @@
{
"agent_id": 1,
"architecture": "x86",
"hypervisor": "hypervisor",
"hypervisor": "xen",
"md5hash": "add6bb58e139be103324d04d82d8f545",
"os": "os",
"url": "http://example.com/path/to/resource",

View File

@@ -25,7 +25,7 @@ class AgentsJsonTest(api_sample_base.ApiSampleTestBaseV21):
super(AgentsJsonTest, self).setUp()
fake_agents_list = [{'url': 'http://example.com/path/to/resource',
'hypervisor': 'hypervisor',
'hypervisor': 'xen',
'architecture': 'x86',
'os': 'os',
'version': '8.0',
@@ -62,7 +62,7 @@ class AgentsJsonTest(api_sample_base.ApiSampleTestBaseV21):
def test_agent_create(self):
# Creates a new agent build.
project = {'url': 'http://example.com/path/to/resource',
'hypervisor': 'hypervisor',
'hypervisor': 'xen',
'architecture': 'x86',
'os': 'os',
'version': '8.0',