From 403f7712d088c1f74414dd86c2c47261db114d70 Mon Sep 17 00:00:00 2001 From: Morten Tokle Date: Fri, 16 Sep 2022 08:20:41 +0200 Subject: Do not change bindings for infrastructure apps --- .../vespa/model/container/xml/HandlerBuilderTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config-model/src/test') diff --git a/config-model/src/test/java/com/yahoo/vespa/model/container/xml/HandlerBuilderTest.java b/config-model/src/test/java/com/yahoo/vespa/model/container/xml/HandlerBuilderTest.java index 186842ecbf1..6d61610a84f 100644 --- a/config-model/src/test/java/com/yahoo/vespa/model/container/xml/HandlerBuilderTest.java +++ b/config-model/src/test/java/com/yahoo/vespa/model/container/xml/HandlerBuilderTest.java @@ -3,6 +3,7 @@ package com.yahoo.vespa.model.container.xml; import com.yahoo.config.model.builder.xml.test.DomBuilderTest; import com.yahoo.config.model.deploy.DeployState; import com.yahoo.config.model.deploy.TestProperties; +import com.yahoo.config.provision.ApplicationId; import com.yahoo.container.ComponentsConfig; import com.yahoo.container.jdisc.JdiscBindingsConfig; import com.yahoo.container.usability.BindingsOverviewHandler; @@ -122,6 +123,19 @@ public class HandlerBuilderTest extends ContainerModelBuilderTestBase { verifyDefaultBindings(deployState, "http://*"); } + @Test + void does_not_restrict_infrastructure() { + DeployState deployState = new DeployState.Builder() + + .properties( + new TestProperties() + .setApplicationId(ApplicationId.defaultId()) + .setHostedVespa(true) + .setUseRestrictedDataPlaneBindings(false)) + .build(); + verifyDefaultBindings(deployState, "http://*"); + } + @Test void restricts_custom_bindings_in_hosted_vespa() { DeployState deployState = new DeployState.Builder() -- cgit v1.2.3