Beispiel #1
0
 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)
Beispiel #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)
Beispiel #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)