Package org.apache.ambari.server.orm.dao

Examples of org.apache.ambari.server.orm.dao.MetainfoDAO.findAll()


    // check updating all
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, null);
   
    MetainfoDAO dao = injector.getInstance(MetainfoDAO.class);
   
    Collection<MetainfoEntity> entities = dao.findAll();
    Assert.assertTrue(entities.size() > 0);
   
    for (MetainfoEntity entity : entities) {
      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
View Full Code Here


      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
    }
   
    reset (stackName, stackVersion);
    entities = dao.findAll();
    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6");
View Full Code Here

    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6");

    entities = dao.findAll();
    for (MetainfoEntity entity : entities) {
      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/centos6"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
    }
View Full Code Here

      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/centos6"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
    }

    reset (stackName, stackVersion);
    entities = dao.findAll();
    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6 and centos5
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6,centos5");
View Full Code Here

    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6 and centos5
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6,centos5");

    entities = dao.findAll();
    for (MetainfoEntity entity : entities) {
      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/centos6") ||
          entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/centos5"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
    }
View Full Code Here

    // check updating all
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, null);
   
    MetainfoDAO dao = injector.getInstance(MetainfoDAO.class);
   
    Collection<MetainfoEntity> entities = dao.findAll();
    Assert.assertTrue(entities.size() > 0);
   
    for (MetainfoEntity entity : entities) {
      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
View Full Code Here

      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
    }
   
    reset (stackName, stackVersion);
    entities = dao.findAll();
    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6");
View Full Code Here

    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6");

    entities = dao.findAll();
    for (MetainfoEntity entity : entities) {
      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/centos6") ||
          entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/redhat6"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
    }
View Full Code Here

          entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/redhat6"));
      Assert.assertEquals(localRepoUrl, entity.getMetainfoValue());
    }

    reset (stackName, stackVersion);
    entities = dao.findAll();
    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6 and centos5
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6,centos5");
View Full Code Here

    Assert.assertTrue(0 == entities.size());
   
    // check updating only centos6 and centos5
    stackUpgradeUtil.updateLocalRepo(stackName, stackVersion, localRepoUrl, "centos6,centos5");

    entities = dao.findAll();
    for (MetainfoEntity entity : entities) {
      Assert.assertTrue(entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/centos6") ||
          entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/redhat6") ||
          entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/redhat5") ||
          entity.getMetainfoName().startsWith("repo:/HDP/1.3.0/centos5"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.