aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java8
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java1
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionRepositoryTest.java15
3 files changed, 7 insertions, 17 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
index 2374744a762..deab507f06b 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
@@ -73,9 +73,7 @@ import com.yahoo.vespa.curator.Curator;
import com.yahoo.vespa.curator.stats.LockStats;
import com.yahoo.vespa.curator.stats.ThreadLockStats;
import com.yahoo.vespa.defaults.Defaults;
-import com.yahoo.vespa.flags.BooleanFlag;
import com.yahoo.vespa.flags.FlagSource;
-import com.yahoo.vespa.flags.Flags;
import com.yahoo.vespa.flags.InMemoryFlagSource;
import com.yahoo.vespa.orchestrator.Orchestrator;
@@ -151,8 +149,7 @@ public class ApplicationRepository implements com.yahoo.config.provision.Deploye
ConfigserverConfig configserverConfig,
Orchestrator orchestrator,
TesterClient testerClient,
- Metric metric,
- FlagSource flagSource) {
+ Metric metric) {
this(tenantRepository,
hostProvisionerProvider.getHostProvisioner(),
infraDeployerProvider.getInfraDeployer(),
@@ -164,7 +161,6 @@ public class ApplicationRepository implements com.yahoo.config.provision.Deploye
Clock.systemUTC(),
testerClient,
metric,
- flagSource,
new DefaultClusterReindexingStatusClient());
}
@@ -179,7 +175,6 @@ public class ApplicationRepository implements com.yahoo.config.provision.Deploye
Clock clock,
TesterClient testerClient,
Metric metric,
- FlagSource flagSource,
ClusterReindexingStatusClient clusterReindexingStatusClient) {
this.tenantRepository = Objects.requireNonNull(tenantRepository);
this.hostProvisioner = Objects.requireNonNull(hostProvisioner);
@@ -276,7 +271,6 @@ public class ApplicationRepository implements com.yahoo.config.provision.Deploye
clock,
testerClient,
metric,
- flagSource,
ClusterReindexingStatusClient.DUMMY_INSTANCE);
}
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java
index dae79486775..6318572ce5f 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/ApplicationRepositoryTest.java
@@ -141,7 +141,6 @@ public class ApplicationRepositoryTest {
.withProvisioner(provisioner)
.withConfigserverConfig(configserverConfig)
.withOrchestrator(orchestrator)
- .withFlagSource(flagSource)
.withLogRetriever(new MockLogRetriever())
.withClock(clock)
.build();
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionRepositoryTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionRepositoryTest.java
index d747df7cb41..a1d436a7c0b 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionRepositoryTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionRepositoryTest.java
@@ -28,8 +28,6 @@ import com.yahoo.vespa.config.server.zookeeper.ConfigCurator;
import com.yahoo.vespa.config.util.ConfigUtils;
import com.yahoo.vespa.curator.Curator;
import com.yahoo.vespa.curator.mock.MockCurator;
-import com.yahoo.vespa.flags.FlagSource;
-import com.yahoo.vespa.flags.InMemoryFlagSource;
import com.yahoo.vespa.model.VespaModel;
import com.yahoo.vespa.model.VespaModelFactory;
import org.junit.Rule;
@@ -73,10 +71,10 @@ public class SessionRepositoryTest {
public TemporaryFolder temporaryFolder = new TemporaryFolder();
public void setup() throws Exception {
- setup(new InMemoryFlagSource(), new ModelFactoryRegistry(List.of(new VespaModelFactory(new NullConfigModelRegistry()))));
+ setup(new ModelFactoryRegistry(List.of(new VespaModelFactory(new NullConfigModelRegistry()))));
}
- private void setup(FlagSource flagSource, ModelFactoryRegistry modelFactoryRegistry) throws Exception {
+ private void setup(ModelFactoryRegistry modelFactoryRegistry) throws Exception {
curator = new MockCurator();
File configserverDbDir = temporaryFolder.newFolder().getAbsoluteFile();
ConfigserverConfig configserverConfig = new ConfigserverConfig.Builder()
@@ -96,7 +94,6 @@ public class SessionRepositoryTest {
.withTenantRepository(tenantRepository)
.withProvisioner(new MockProvisioner())
.withOrchestrator(new OrchestratorMock())
- .withFlagSource(flagSource)
.build();
sessionRepository = tenantRepository.getTenant(tenantName).getSessionRepository();
}
@@ -191,7 +188,7 @@ public class SessionRepositoryTest {
okFactory.vespaVersion = new Version(1, 1, 0);
okFactory.throwOnLoad = false;
- setup(new InMemoryFlagSource(), new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
+ setup(new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
deploy();
}
@@ -207,7 +204,7 @@ public class SessionRepositoryTest {
okFactory.vespaVersion = new Version(2, 0, 0);
okFactory.throwOnLoad = false;
- setup(new InMemoryFlagSource(), new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
+ setup(new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
deploy();
}
@@ -222,7 +219,7 @@ public class SessionRepositoryTest {
okFactory.vespaVersion = new Version(2, 0, 0);
okFactory.throwErrorOnLoad = false;
- setup(new InMemoryFlagSource(), new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
+ setup(new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
File testApp = new File("src/test/apps/app-major-version-2");
deploy(applicationId, testApp);
@@ -240,7 +237,7 @@ public class SessionRepositoryTest {
okFactory.vespaVersion = new Version(1, 0, 0);
okFactory.throwErrorOnLoad = false;
- setup(new InMemoryFlagSource(), new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
+ setup(new ModelFactoryRegistry(List.of(okFactory, failingFactory)));
File testApp = new File("src/test/apps/app-major-version-2");
deploy(applicationId, testApp);