Пример #1
0
def verify_router_biil(project):
    neutron_dao = NeutronDAO("mysql+pymysql://root:^[email protected]/neutron")
    routers = neutron_dao.get_routers(project.id)

    for router in routers:
        LOG.info("++++++++++++++++++++++++++++++++++++++++++++++++++")
        LOG.info("router")
        LOG.info("\tname: %s" % router.name)
        LOG.info("\tid: " + router.id)
        LOG.info("\tstatus: %s" % router.status)

        verify_billing(router.id, "router")

    LOG.info("++++++++++++++++++++++++++++++++++++++++++++++++++")
Пример #2
0
 def test_get_routers(self):
     """Test retreiving routers for the given project"""
     neutron_dao = NeutronDAO("mysql+pymysql://root:^[email protected]/neutron")
     routers = neutron_dao.get_routers("18fb285bfa4f4ddaaebb7512683b6a52")
     self.assertGreater(len(routers), 0)