Add unit tests for example syntax

Tests api/examples, examples, and any embedded json in readme.
This commit is contained in:
Clayton Coleman
2014-07-23 14:08:16 -04:00
parent 60aa8639fa
commit 044779126b
5 changed files with 216 additions and 11 deletions

View File

@@ -9,13 +9,16 @@
},
"podTemplate": {
"desiredState": {
"image": "dockerfile/nginx",
"networkPorts": [
{
"hostPort": 8080,
"containerPort": 80
}
]
"manifest": {
"version": "v1beta1",
"image": "dockerfile/nginx",
"networkPorts": [
{
"hostPort": 8080,
"containerPort": 80
}
]
}
},
"labels": {
"name": "testRun"

View File

@@ -11,12 +11,13 @@
"version": "v1beta1",
"id": "my-pod-1",
"containers": [{
"name": "nginx",
"image": "dockerfile/nginx",
"ports": [{
"hostPort": 8080,
"containerPort": 80
}]
}
}]
}
},
"currentState": {
@@ -34,12 +35,13 @@
"version": "v1beta1",
"id": "my-pod-2",
"containers": [{
"name": "nginx",
"image": "dockerfile/nginx",
"ports": [{
"hostPort": 8080,
"containerPort": 80
}]
}
}]
}
},
"currentState": {

View File

@@ -5,7 +5,7 @@
"port": 8000,
"labels": {
"name": "nginx"
}
},
"selector": {
"name": "nginx"
}
@@ -16,7 +16,7 @@
"labels": {
"env": "prod",
"name": "jetty"
}
},
"selector": {
"env": "prod",
"name": "jetty"