Merge "Add event storage for test_hbase_table_utils"

This commit is contained in:
Jenkins 2014-11-07 13:51:47 +00:00 committed by Gerrit Code Review
commit c9a021fcb3
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:])