aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorMorten Tokle <mortent@yahooinc.com>2022-09-16 08:20:41 +0200
committerMorten Tokle <mortent@yahooinc.com>2022-09-16 08:20:41 +0200
commit403f7712d088c1f74414dd86c2c47261db114d70 (patch)
treefc8419203494498e4513278957ef25e0961efb49 /config-model/src/test/java/com/yahoo
parenta1c6dd8df10d22599cac7b8fe6b5a989aafb871a (diff)
Do not change bindings for infrastructure apps
Diffstat (limited to 'config-model/src/test/java/com/yahoo')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/container/xml/HandlerBuilderTest.java14
1 files changed, 14 insertions, 0 deletions
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;
@@ -123,6 +124,19 @@ public class HandlerBuilderTest extends ContainerModelBuilderTestBase {
}
@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()
.properties(new TestProperties().setHostedVespa(true).setUseRestrictedDataPlaneBindings(true))