diff options
Diffstat (limited to 'config-model/src/test/java/com/yahoo/config/model/QrserverAndGatewayPortAllocationTest.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/config/model/QrserverAndGatewayPortAllocationTest.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/config-model/src/test/java/com/yahoo/config/model/QrserverAndGatewayPortAllocationTest.java b/config-model/src/test/java/com/yahoo/config/model/QrserverAndGatewayPortAllocationTest.java deleted file mode 100644 index a06da645e17..00000000000 --- a/config-model/src/test/java/com/yahoo/config/model/QrserverAndGatewayPortAllocationTest.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.config.model; - -import com.yahoo.vespa.model.VespaModel; -import com.yahoo.vespa.model.container.Container; -import com.yahoo.vespa.model.container.ApplicationContainer; -import com.yahoo.vespa.model.test.utils.VespaModelCreatorWithFilePkg; -import org.junit.Test; - -import java.util.List; - -import static org.junit.Assert.assertEquals; - -/** - * Tests that qrserver is assigned port Defaults.getDefaults().vespaWebServicePort() even if there is a HTTP gateway configured earlier in - * vespa-services.xml - * - * @author hmusum - */ -public class QrserverAndGatewayPortAllocationTest { - - @Test - public void testPorts() { - String appDir = "src/test/cfg/application/app_qrserverandgw/"; - VespaModelCreatorWithFilePkg creator = new VespaModelCreatorWithFilePkg(appDir); - VespaModel vespaModel = creator.create(); - List<ApplicationContainer> qrservers = vespaModel.getContainerClusters().get("container").getContainers(); - assertEquals(1, qrservers.size()); - assertEquals(Container.BASEPORT, qrservers.get(0).getSearchPort()); - } - -} |