Merge pull request #8054 from estesp/6830-fix-json-strings

Proper JSON handling of strings that could be represented as other types
This commit is contained in:
Tibor Vass
2014-09-16 15:11:25 -04:00
3 changed files with 6 additions and 2 deletions
@@ -46,6 +46,10 @@ func TestInspectContainerResponse(t *testing.T) {
t.Fatalf("%s does not exist in reponse for %s version", key, testVersion)
}
}
//Issue #6830: type not properly converted to JSON/back
if _, ok := inspect_json["Path"].(bool); ok {
t.Fatalf("Path of `true` should not be converted to boolean `true` via JSON marshalling")
}
}
deleteAllContainers()