diff options
author | Harald Musum <musum@oath.com> | 2018-05-23 13:49:42 +0200 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2018-05-23 13:49:42 +0200 |
commit | 542e437cabfc6c11a204a22d8803a50cb883ea9c (patch) | |
tree | 77e3d1a92e763057c49bbfdd2eb989c6cfa6673e | |
parent | e3615e953e154cee870c36eb79c135c0f4fc9436 (diff) |
Remove useless test
Test itself has race conditions, other tests covers the features
-rw-r--r-- | configserver/src/test/java/com/yahoo/vespa/config/server/tenant/TenantRepositoryTest.java | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/tenant/TenantRepositoryTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/tenant/TenantRepositoryTest.java index 42c2d8db968..9a4b0b05186 100644 --- a/configserver/src/test/java/com/yahoo/vespa/config/server/tenant/TenantRepositoryTest.java +++ b/configserver/src/test/java/com/yahoo/vespa/config/server/tenant/TenantRepositoryTest.java @@ -128,32 +128,6 @@ public class TenantRepositoryTest extends TestWithCurator { } @Test - public void testTenantsChanged() { - tenantRepository.close(); // Close the repo created in setup() - TenantRepository tenantRepository = new TenantRepository(globalComponentRegistry); - tenantRepository.addTenant(tenant2); - tenantRepository.createTenants(); - Set<TenantName> allTenants = tenantRepository.getAllTenantNames(); - assertTrue(allTenants.contains(tenant2)); - tenantRepository.deleteTenant(tenant1); - tenantRepository.deleteTenant(tenant2); - tenantRepository.createTenants(); - allTenants = tenantRepository.getAllTenantNames(); - assertFalse(allTenants.contains(tenant1)); - assertFalse(allTenants.contains(tenant2)); - TenantName foo = TenantName.from("foo"); - TenantName bar = TenantName.from("bar"); - tenantRepository.addTenant(tenant2); - tenantRepository.addTenant(foo); - tenantRepository.addTenant(bar); - tenantRepository.createTenants(); - allTenants = tenantRepository.getAllTenantNames(); - assertTrue(allTenants.contains(tenant2)); - assertTrue(allTenants.contains(foo)); - assertTrue(allTenants.contains(bar)); - } - - @Test public void testTenantWatching() throws Exception { TenantName newTenant = TenantName.from("newTenant"); List<TenantName> expectedTenants = Arrays.asList(TenantName.defaultName(), newTenant); |