Example #1
0
  @Test(expected = VESException.class)
  public void EtcdConfigProvider_Should_Fail_On_Unreachable_Etcd() throws VESException {
    EtcdConfigProvider cfg =
        EtcdConfigProvider.create("http://_MISSING_:2379", "VESStorage", "VESDatabase");

    assertFalse(true);
  }
Example #2
0
  @Test
  public void EtcdConfigProvider_Should_Read_Keys() throws VESException {
    EtcdConfigProvider cfg = EtcdConfigProvider.create(etcdAddress, "VESStorage", "VESDatabase");

    assertEquals("storage", cfg.getStoragePath());
    assertEquals("database", cfg.getDatabaseConnectionString());
  }
Example #3
0
  @Test(expected = VESException.class)
  public void EtcdConfigProvider_Should_Fail_On_Missing_Database_Key() throws VESException {
    EtcdConfigProvider cfg = EtcdConfigProvider.create(etcdAddress, "VESStorage", "__NODB__");

    assertFalse(true);
  }