Add event storage for test_hbase_table_utils

event storage has been independent now, sync it to
tools/test_hbase_table_utils.py.

Change-Id: I38e467ab18c317ad12d66f641ad4419c0fe33bee
This commit is contained in:
ZhiQiang Fan 2014-10-31 03:53:17 +08:00
parent 6eac318612
commit 1e71626bba
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
@ -25,14 +25,17 @@ def main(argv):
os.getenv("CEILOMETER_TEST_HBASE_TABLE_PREFIX", "test")))
conn = storage.get_connection(url, 'ceilometer.metering.storage')
alarm_conn = storage.get_connection(url, 'ceilometer.alarm.storage')
event_conn = storage.get_connection(url, 'ceilometer.event.storage')
for arg in argv:
if arg == "--upgrade":
conn.upgrade()
alarm_conn.upgrade()
event_conn.upgrade()
if arg == "--clear":
conn.clear()
alarm_conn.clear()
event_conn.clear()
if __name__ == '__main__':
main(sys.argv[1:])
main(sys.argv[1:])