aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2022-09-19 09:10:33 +0200
committerGitHub <noreply@github.com>2022-09-19 09:10:33 +0200
commit229b6ec3ecf88a5920bc478cb8c902af3a48b5be (patch)
tree6af1e680b891b78671f0fb5ac76aa55b78068c68 /config-model/src/test/java/com/yahoo
parent253ed647a4bc0930b850b1dd322187166e29f462 (diff)
parent403f7712d088c1f74414dd86c2c47261db114d70 (diff)
Merge pull request #24088 from vespa-engine/mortent/fix-infra-app-bindings
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))