Ejemplo n.º 1
0
 def test_create_subscription_success_1(self):
     res = InfluxDBAdmin.create_subscription(
         'test_subscription_1',
         hosts=["http://localhost:5000"],
     )
     assert res is True
     InfluxDBAdmin.drop_subscription('test_subscription_1')
Ejemplo n.º 2
0
 def test_create_subscription_success_2(self):
     res = InfluxDBAdmin.create_subscription(
         'test_subscription_2',
         hosts=["http://localhost:5000", "http://localhost:6000"],
         any=True,
     )
     assert res is True
     InfluxDBAdmin.drop_subscription('test_subscription_2')