diff options
Diffstat (limited to 'configserver/src/test')
-rw-r--r-- | configserver/src/test/java/com/yahoo/vespa/config/server/session/SessionRepositoryTest.java | 20 |
1 files changed, 0 insertions, 20 deletions
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 fec4c096c7b..07d3aac5a52 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 @@ -83,10 +83,6 @@ public class SessionRepositoryTest { private void setup(ModelFactoryRegistry modelFactoryRegistry) throws Exception { curator = new MockCurator(); - setup(modelFactoryRegistry, curator); - } - - private void setup(ModelFactoryRegistry modelFactoryRegistry, MockCurator curator) throws Exception { File configserverDbDir = temporaryFolder.newFolder().getAbsoluteFile(); ConfigserverConfig configserverConfig = new ConfigserverConfig.Builder() .configServerDBDir(configserverDbDir.getAbsolutePath()) @@ -194,22 +190,6 @@ public class SessionRepositoryTest { assertTrue(sessionRepository.getRemoteSessionsFromZooKeeper().isEmpty()); } - // If reading a session that originally failed deployment we should just skip it - @Test - public void testThatSessionThatFailedDeploymentIsIgnored() throws Exception { - setup(); - - // Create a new session, which will have status NEW, which is what will be the state if e.g. - // a deployment failed when building the config model - createSession(3, false); - - // setup() will load remote sessions, session 3 should not be loaded, since it is in state NEW - setup(new ModelFactoryRegistry(List.of(VespaModelFactory.createTestFactory())), curator); - assertTrue(sessionRepository.getRemoteSessions().isEmpty()); - Path sessionPath = TenantRepository.getSessionsPath(tenantName).append(3 + ""); - assertTrue(curator.exists(sessionPath)); - } - @Test public void require_that_new_invalid_application_throws_exception() throws Exception { MockModelFactory failingFactory = new MockModelFactory(); |