Package org.apache.ambari.server.controller

Examples of org.apache.ambari.server.controller.ControllerModule


    injector.getInstance(PersistService.class).stop();
  }

  @Test
  public void testNormal() throws Exception {
    injector = Guice.createInjector(new ControllerModule(properties));
    injector.getInstance(GuiceJpaInitializer.class);

    injector.getInstance(Clusters.class);
  }
View Full Code Here


  }
 
  @Test
  public void testJdbcProperty() throws Exception {
    properties.setProperty(Configuration.SERVER_JDBC_PROPERTIES_PREFIX + "shutdown", "true");
    injector = Guice.createInjector(new ControllerModule(properties));
    injector.getInstance(GuiceJpaInitializer.class);
    try {
      injector.getInstance(Clusters.class);
      Assert.fail("Expected in-memory to fail because property 'shutdown' specified.");
    } catch (Throwable t) {
View Full Code Here

    properties.setProperty(Configuration.OS_VERSION_KEY, "centos5");
  }
 
  @Test
  public void testNormal() throws Exception {
    Injector injector = Guice.createInjector(new ControllerModule(properties));
    injector.getInstance(GuiceJpaInitializer.class);

    injector.getInstance(Clusters.class);
  }
View Full Code Here

  }
 
  @Test
  public void testJdbcProperty() throws Exception {
    properties.setProperty(Configuration.SERVER_JDBC_PROPERTIES_PREFIX + "shutdown", "true");
    Injector injector = Guice.createInjector(new ControllerModule(properties));
    injector.getInstance(GuiceJpaInitializer.class);
    try {
      injector.getInstance(Clusters.class);
      Assert.fail("Expected in-memory to fail because property 'shutdown' specified.");
    } catch (Throwable t) {
View Full Code Here

    properties.setProperty(Configuration.SERVER_VERSION_FILE,
            "target/version");
    properties.setProperty(Configuration.OS_VERSION_KEY,
        "centos5");
    try {
      install(new ControllerModule(properties));
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

    //make ambari detect active configuration
    properties.setProperty(Configuration.LDAP_BASE_DN_KEY, "dc=ambari,dc=the apache,dc=org");
    properties.setProperty(Configuration.LDAP_GROUP_BASE_KEY, "ou=the groups,dc=ambari,dc=the apache,dc=org");

    try {
      install(new ControllerModule(properties));
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

        "centos5");
    //make ambari detect active configuration
    properties.setProperty(Configuration.LDAP_GROUP_BASE_KEY, "ou=groups,dc=ambari,dc=apache,dc=org");

    try {
      install(new ControllerModule(properties));
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

  public void testUpgrade() throws Exception {
    String targetVersion = getLastVersion();
    List<String> failedVersions = new ArrayList<String>();

    for (String version : VERSIONS) {
      injector = Guice.createInjector(new ControllerModule(properties));

      try {
        createSourceDatabase(version);

        performUpgrade(targetVersion);
View Full Code Here

      LOG.info("Database dropped ", ignored); //error 08006 expected
    }
  }

  private void testUpgradedSchema() throws Exception {
    injector = Guice.createInjector(new ControllerModule(properties));
    injector.getInstance(PersistService.class).start();

    //TODO join() in AmbariServer.run() prevents proper start testing, figure out

    //check dao selects
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.ControllerModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.