Merge "missing result of the alarm show by name"

This commit is contained in:
Zuul 2019-04-18 01:54:44 +00:00 committed by Gerrit Code Review
commit 884dd61dc7

View File

@ -425,6 +425,7 @@ class AodhClientGnocchiRulesTest(base.ClientTestBase):
# GET BY NAME # GET BY NAME
result = self.aodh( result = self.aodh(
'alarm', params="show --name alarm_gn1") 'alarm', params="show --name alarm_gn1")
alarm_show = self.details_multiple(result)[0]
self.assertEqual(ALARM_ID, alarm_show["alarm_id"]) self.assertEqual(ALARM_ID, alarm_show["alarm_id"])
self.assertEqual(PROJECT_ID, alarm_show["project_id"]) self.assertEqual(PROJECT_ID, alarm_show["project_id"])
self.assertEqual('alarm_gn1', alarm_show['name']) self.assertEqual('alarm_gn1', alarm_show['name'])