Cleanup bad JSON files

- Add missing commas
- Replace single quote with double quote
- events field contains a list of events (event-create-req.json)
- Remove empty files
- Adds a JSON validation test to the docs pipeline

Co-Authored-By: Nicolas Simonds <nic@metacloud.com>
Change-Id: I9a4a9b6b8e2da73b5f25145be3b2faa44ebdb340
This commit is contained in:
Davanum Srinivas 2015-01-21 22:25:10 -05:00 committed by Nicolas Simonds
parent 31d0f5acc6
commit aff3e8699a
14 changed files with 23 additions and 22 deletions

View File

@ -1,7 +1,6 @@
{
'dns_entry' :
{
'ip': '192.168.53.11',
'dns_type': 'A'
}
"dns_entry": {
"ip": "192.168.53.11",
"dns_type": "A"
}
}

View File

@ -1,8 +1,7 @@
{
'domain_entry' :
{
'domain': 'domain1.example.org',
'scope': 'public',
'project': 'project1'
}
"domain_entry": {
"domain": "domain1.example.org",
"scope": "public",
"project": "project1"
}
}

View File

@ -3,7 +3,7 @@
"name" : "new-server-test",
"imageRef" : "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
"flavorRef" : "http://openstack.example.com/openstack/flavors/1",
"availability_zone" : "test"
"availability_zone" : "test",
"metadata" : {
"My Server Name" : "Apache1"
}

View File

@ -1,6 +1,6 @@
{
"floating_ips_bulk_create": {
"ip_range": "192.168.1.0/24"
"ip_range": "192.168.1.0/24",
"pool": "nova",
"interface": "eth0"
}

View File

@ -1,9 +1,10 @@
{
"events": {[
{
"name": "test-event",
"tag": "foo",
"status": "completed",
"server_uuid": "3df201cf-2451-44f2-8d25-a4ca826fc1f3"
}]}
}
"events": [
{
"name": "test-event",
"tag": "foo",
"status": "completed",
"server_uuid": "3df201cf-2451-44f2-8d25-a4ca826fc1f3"
}
]
}

View File

@ -59,7 +59,9 @@ commands =
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
commands =
python setup.py build_sphinx
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126