percent_of_overlap=0 to validate gnocchi alarm

As we do in evaluator, api must pass percent_of_overlap=0 to validate
the query.

Change-Id: Iecb8d256339f8026dbc1b88d8d6ee5c46463dd15
This commit is contained in:
Mehdi Abaakouk 2015-09-01 10:52:15 +02:00
parent ea0b9e9da9
commit 78d5608f09
2 changed files with 4 additions and 2 deletions

View File

@ -169,7 +169,8 @@ class AggregationMetricByResourcesLookupRule(AlarmGnocchiThresholdRule):
rule.metric),
'headers': {'Content-Type': "application/json",
'X-Auth-Token': ks_client.auth_token},
'params': {'aggregation': rule.aggregation_method},
'params': {'aggregation': rule.aggregation_method,
'percent_of_overlap': 0},
'data': rule.query,
}

View File

@ -2929,7 +2929,8 @@ class TestAlarmsRuleGnocchi(TestAlarmsBase):
'resource/instance/metric/ameter'),
headers={'Content-Type': 'application/json',
'X-Auth-Token': mock.ANY},
params={'aggregation': 'count'},
params={'aggregation': 'count',
'percent_of_overlap': 0},
data=expected_query)],
fake_post.mock_calls),