[openstack-dev] [Openstack] [AodhClient] "composite alarm" unit test missing in aodhclient ?

Ryota Mibu r-mibu at cq.jp.nec.com
Thu May 19 09:01:22 UTC 2016


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.yuanzhen at zte.com.cn [mailto:li.yuanzhen at zte.com.cn]
> Sent: Thursday, May 19, 2016 5:36 PM
> To: Mibu Ryota(壬生 亮太); openstack-dev at lists.openstack.org
> Cc: aji.zqfan at gmail.com; ildiko.vancsa at ericsson.com; Julien Danjou; lianhao.lu at intel.com; liusheng2048 at 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.yuanzhen at zte.com.cn [mailto:li.yuanzhen at zte.com.cn
> > > <mailto:li.yuanzhen at zte.com.cn> ]
> > > Sent: Thursday, May 19, 2016 12:27 PM
> > > To: openstack-dev at lists.openstack.org
> > > Cc: aji.zqfan at gmail.com; ildiko.vancsa at ericsson.com;
> > > lianhao.lu at intel.com; liusheng2048 at 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.
> 
> 




More information about the OpenStack-dev mailing list