Test combined with jdisc tag
@@ -238,13 +238,15 @@ public class ModelProvisioningTest {
@Test
public void testCombinedCluster() {
+ var containerElements = Set.of("jdisc", "container");
+ for (var containerElement : containerElements) {
String xmlWithNodes =
"<?xml version='1.0' encoding='utf-8' ?>" +
"<services>" +
- " <container version='1.0' id='container1'>" +
+ " <" + containerElement + " version='1.0' id='container1'>" +
" <search/>" +
" <nodes of='content1'/>" +
- " </container>" +
+ " </" + containerElement + ">" +
" <content version='1.0' id='content1'>" +
" <redundancy>2</redundancy>" +
" <documents>" +
@@ -264,6 +266,7 @@ public class ModelProvisioningTest {
assertProvisioned(0, ClusterSpec.Id.from("container1"), ClusterSpec.Type.container, model);
assertProvisioned(2, ClusterSpec.Id.from("content1"), ClusterSpec.Type.combined, model);
}
+ }
@Test
public void testCombinedClusterWithJvmOptions() {
