Set default Influx version to V9, update smoke test for V9
Changed default influx version to 0.9.0-rc16 Also, alarm state history in InfluxV9 is reversed from V8, fixed utils. Change-Id: I42ad9649ac76d5e5d122053214b68f5ec6bafe5b
This commit is contained in:
parent
27661d4b98
commit
d350064b63
@ -6,7 +6,7 @@
|
||||
raft_port: 9090
|
||||
seed_servers: []
|
||||
replication_factor: 1
|
||||
influxdb_version: 0.8.8 # Also set in the next play
|
||||
influxdb_version: 0.9.0-rc16 # Also set in the next play
|
||||
mini_mon_host: 192.168.10.4
|
||||
zookeeper_hosts: "{{mini_mon_host}}:2181"
|
||||
pre_tasks:
|
||||
@ -36,7 +36,7 @@
|
||||
influxdb_users:
|
||||
mon_api: password
|
||||
mon_persister: password
|
||||
influxdb_version: 0.8.8 # Also set in the previous play
|
||||
influxdb_version: 0.9.0-rc16 # Also set in the previous play
|
||||
kafka_topics:
|
||||
metrics: { replicas: 1, partitions: 4 }
|
||||
events: { replicas: 1, partitions: 4 }
|
||||
|
@ -34,8 +34,8 @@ def check_alarm_history(alarm_id, states):
|
||||
print('Wrong number of history entries, expected %d but was %d' %
|
||||
(transitions, len(result_json)), file=sys.stderr)
|
||||
return False
|
||||
# Alarm history is reverse sorted by date
|
||||
index = transitions - 1
|
||||
# Alarm history is sorted by date
|
||||
index = 0
|
||||
for i in range(0, transitions):
|
||||
old_state = states[i]
|
||||
new_state = states[i+1]
|
||||
@ -49,7 +49,7 @@ def check_alarm_history(alarm_id, states):
|
||||
if not check_expected(alarm_id, alarm_json['alarm_id'], 'alarm_id',
|
||||
i):
|
||||
result = False
|
||||
index = index - 1
|
||||
index = index + 1
|
||||
|
||||
if result:
|
||||
print('Alarm History is OK')
|
||||
|
Loading…
x
Reference in New Issue
Block a user