Agree, we should have it. Could you propose the change, adding liusheng as a reviewer? He made this composite alarm and can check your patch properly.
/Ryota > -----Original Message----- > From: li.yuanz...@zte.com.cn [mailto:li.yuanz...@zte.com.cn] > Sent: Thursday, May 19, 2016 5:36 PM > To: Mibu Ryota(壬生 亮太); openstack-dev@lists.openstack.org > Cc: aji.zq...@gmail.com; ildiko.van...@ericsson.com; Julien Danjou; > lianhao...@intel.com; liusheng2...@gmail.com > Subject: RE: RE: [Openstack] [AodhClient] "composite alarm" unit test missing > in aodhclient ? > > Yes, right, the "composite_rule" should be None in def test_alarm_from_args > :-) > > In addition, read the unit tests in "test_alarm_cli.py", there is no > composite test, (like "def test_validate_args_composite", > similar with "test_validate_args_threshold, > test_validate_args_gnocchi_resources_threshold " ), which is corresponding > to composite alarm. > > So, I think the "def test_validate_args_composite" may be needed, What do you > think? > > thank you > > best regards > > Rajen > > > > > Hi, > > > > > > The test case you pointed is for threshold alarm, so it is OK and expected > > that "composite_rule" is None. > > > > Checking test codes is good idea. You can add new tests when you found > > something missing by posting new patch. > > > > > > BR, > > Ryota > > > > > -----Original Message----- > > > From: li.yuanz...@zte.com.cn [mailto:li.yuanz...@zte.com.cn > > > <mailto:li.yuanz...@zte.com.cn> ] > > > Sent: Thursday, May 19, 2016 12:27 PM > > > To: openstack-dev@lists.openstack.org > > > Cc: aji.zq...@gmail.com; ildiko.van...@ericsson.com; > > > lianhao...@intel.com; liusheng2...@gmail.com; Mibu Ryota(壬生 亮 > > > 太); Julien Danjou > > > Subject: [Openstack] [AodhClient] "composite alarm" unit test missing in > > > aodhclient ? > > > > > > HI All, > > > in aodhclient/tests/unit/test_alarm_cli.py[1] > > > <https://review.openstack.org/#/c/284022/7/aodhclient/tests/unit/test_alarm_cli.py > <https://review.openstack.org/#/c/284022/7/aodhclient/tests/unit/test_alarm_cli.py> > > , the "composite_rule" is None. > > > is the composite_rule test missing? and should we add it ? > > > > > > [1] > > > https://github.com/openstack/python-aodhclient/blob/master/aodhclien > > > t/tests/unit/test_alarm_cli.py > > > <https://github.com/openstack/python-aodhclient/blob/master/aodhclie > > > nt/tests/unit/test_alarm_cli.py> > > > <https://github.com/openstack/python-aodhclient/blob/master/aodhclie > > > nt/tests/unit/test_alarm_cli.py > > > <https://github.com/openstack/python-aodhclient/blob/master/aodhclie > > > nt/tests/unit/test_alarm_cli.py> > > > > > > > Rajen(liyuanzhen) > > > > > > > > > -------------------------------------------------------- > > > ZTE Information Security Notice: The information contained in this > > > mail (and any attachment transmitted herewith) is privileged and > > > confidential and is intended for the exclusive use of the addressee(s). > > > If you are not an intended recipient, any > disclosure, reproduction, distribution or other dissemination or use of the > information contained is strictly prohibited. > > > If you have received this mail in error, please delete it and notify us > > > immediately. > > > > > > > > > > > > > > > -------------------------------------------------------- > ZTE Information Security Notice: The information contained in this mail (and > any attachment transmitted herewith) is > privileged and confidential and is intended for the exclusive use of the > addressee(s). If you are not an intended recipient, > any disclosure, reproduction, distribution or other dissemination or use of > the information contained is strictly prohibited. > If you have received this mail in error, please delete it and notify us > immediately. > > __________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev