Don't allow defining 'routes' toplevel

Doesn't make much sense to deploy more than one app with the same route (this will result in an error, you can only bind one thing to a route / host).
This commit is contained in:
Kris De Volder
2017-05-04 10:56:19 -07:00
parent 3d8d7ca119
commit b72f84eedd
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ public class ManifestYmlSchema implements YamlSchema {
public final AbstractType t_route_string;
private static final Set<String> TOPLEVEL_EXCLUDED = ImmutableSet.of(
"name", "host", "hosts"
"name", "host", "hosts", "routes"
);
@Override

View File

@@ -291,8 +291,8 @@ public class ManifestYamlEditorTest {
// ---------------
"random-route: <*>",
// ---------------
"routes:\n"+
"- route: <*>",
// "routes:\n"+
// "- route: <*>",
// ---------------
"services:\n"+
"- <*>",