Пример #1
0
 def test_gnocchi_with_existing_swift(self):
     self.useFixture(swift.SwiftDriver())
     self.useFixture(
         gnocchi.GnocchiDriver(storage_url=os.getenv("PIFPAF_URL")))
     self.assertEqual("gnocchi://localhost:8041", os.getenv("PIFPAF_URL"))
     r = requests.get("http://localhost:8041/")
     self.assertEqual(200, r.status_code)
Пример #2
0
 def test_swift(self):
     a = self.useFixture(swift.SwiftDriver())
     self.assertEqual("http://*****:*****@localhost:8080/auth/v1.0",
         os.getenv("PIFPAF_SWIFT_URL"))
     self.assertEqual(
         "swift://test%3Atester:testing@localhost:8080/auth/v1.0",
         os.getenv("PIFPAF_URL"))