Add API sample tests to Services extension

Partially implements blueprint nova-api-samples
Bug 1091755

Change-Id: I7a0e124871c248bbb7613bfcdf335fee29a887f2
This commit is contained in:
ivan-zhu
2013-01-09 22:52:46 +08:00
parent db4877acb6
commit b3fcfdf68e
5 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{
"host": "host1",
"service": "nova-compute"
}

View File

@@ -0,0 +1,5 @@
{
"disabled": true,
"host": "host1",
"service": "nova-compute"
}

View File

@@ -0,0 +1,4 @@
{
"host": "host1",
"service": "nova-compute"
}

View File

@@ -0,0 +1,5 @@
{
"disabled": false,
"host": "host1",
"service": "nova-compute"
}

View File

@@ -0,0 +1,36 @@
{
"services": [
{
"binary": "nova-scheduler",
"host": "host1",
"state": "up",
"status": "disabled",
"updated_at": "2012-10-29T13:42:02.000000",
"zone": "internal"
},
{
"binary": "nova-compute",
"host": "host1",
"state": "up",
"status": "disabled",
"updated_at": "2012-10-29T13:42:05.000000",
"zone": "nova"
},
{
"binary": "nova-scheduler",
"host": "host2",
"state": "down",
"status": "enabled",
"updated_at": "2012-09-19T06:55:34.000000",
"zone": "internal"
},
{
"binary": "nova-compute",
"host": "host2",
"state": "down",
"status": "disabled",
"updated_at": "2012-09-18T08:03:38.000000",
"zone": "nova"
}
]
}