예제 #1
0
파일: test_drivers.py 프로젝트: dims/pifpaf
 def test_aodh_with_existing_db(self):
     pg = self.useFixture(postgresql.PostgreSQLDriver(port=12345))
     a = self.useFixture(aodh.AodhDriver(database_url=pg.url))
     self.assertEqual("aodh://localhost:%d" % a.port,
                      os.getenv("PIFPAF_URL"))
     r = requests.get(os.getenv("PIFPAF_AODH_HTTP_URL"))
     self.assertEqual(200, r.status_code)
예제 #2
0
 def test_aodh_gnocchi_legacy(self):
     a = self.useFixture(aodh.AodhDriver(
         gnocchi_create_legacy_resource_types=True,
         port=8100,
         gnocchi_port=8101,
         database_port=8102,
         gnocchi_indexer_port=8201,
     ))
     self.assertEqual("aodh://localhost:%d" % a.port,
                      os.getenv("PIFPAF_URL"))
     r = requests.get(os.getenv("PIFPAF_AODH_HTTP_URL"))
     self.assertEqual(200, r.status_code)
예제 #3
0
 def test_aodh(self):
     a = self.useFixture(aodh.AodhDriver())
     self.assertEqual("aodh://localhost:%d" % a.port,
                      os.getenv("PIFPAF_URL"))
     r = requests.get(os.getenv("PIFPAF_AODH_HTTP_URL"))
     self.assertEqual(200, r.status_code)