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"));