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:
@@ -1,5 +1,4 @@
|
||||
.. -*- rst -*-
|
||||
.. needs:example_verification
|
||||
.. needs:body_verification
|
||||
|
||||
==========================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"agent": {
|
||||
"hypervisor": "hypervisor",
|
||||
"hypervisor": "xen",
|
||||
"os": "os",
|
||||
"architecture": "x86",
|
||||
"version": "8.0",
|
||||
|
@@ -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",
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"agent_id": 1,
|
||||
"architecture": "x86",
|
||||
"hypervisor": "hypervisor",
|
||||
"hypervisor": "xen",
|
||||
"md5hash": "add6bb58e139be103324d04d82d8f545",
|
||||
"os": "os",
|
||||
"url": "http://example.com/path/to/resource",
|
||||
|
@@ -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",
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"agent_id": 1,
|
||||
"architecture": "x86",
|
||||
"hypervisor": "hypervisor",
|
||||
"hypervisor": "xen",
|
||||
"md5hash": "add6bb58e139be103324d04d82d8f545",
|
||||
"os": "os",
|
||||
"url": "http://example.com/path/to/resource",
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user