aboutsummaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorgjoranv <gv@yahoo-inc.com>2017-02-06 14:43:42 +0100
committergjoranv <gv@yahoo-inc.com>2017-02-06 14:43:42 +0100
commit7523f62165528859df9ff12e7c8c04f5437edf11 (patch)
tree65996c2c57722945fe3c349088414ec03bea2da7 /config-model
parent5d80e766a40afec1be6f02b9e188c6a622e36203 (diff)
Skip 'jdisc' element where unnecessary.
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/container/xml/AccessControlTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/container/xml/AccessControlTest.java b/config-model/src/test/java/com/yahoo/vespa/model/container/xml/AccessControlTest.java
index 08abc89de90..fa49feabb9c 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/container/xml/AccessControlTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/container/xml/AccessControlTest.java
@@ -9,6 +9,7 @@ import com.yahoo.vespa.model.container.ContainerCluster;
import com.yahoo.vespa.model.container.http.AccessControl;
import com.yahoo.vespa.model.container.http.Http;
import com.yahoo.vespa.model.container.http.Http.Binding;
+import com.yahoo.vespa.model.container.http.xml.HttpBuilder;
import org.junit.Test;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;
@@ -50,15 +51,15 @@ public class AccessControlTest extends ContainerModelBuilderTestBase {
@Test
public void access_control_filter_chain_is_set_up() throws Exception {
Element clusterElem = DomBuilderTest.parse(
- "<jdisc version='1.0'>",
" <http>",
" <filtering>",
" <access-control domain='foo' />",
" </filtering>",
- " </http>",
- "</jdisc>");
+ " </http>");
+
+ Http http = new HttpBuilder().build(root, clusterElem);
+ root.freezeModelTopology();
- Http http = getHttp(clusterElem);
assertTrue(http.getFilterChains().hasChain(AccessControl.ACCESS_CONTROL_CHAIN_ID));
}