<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-ceilometerclient.git/ceilometerclient/tests, branch stable/icehouse</title>
<subtitle>opendev.org: openstack/python-ceilometerclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/'/>
<entry>
<title>Merge "Reduce redundant parameter of some commands in CLI"</title>
<updated>2014-09-20T00:01:45+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-09-20T00:01:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=de7affee29f0412e68f3642c7ed3e86f75a7f993'/>
<id>de7affee29f0412e68f3642c7ed3e86f75a7f993</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce redundant parameter of some commands in CLI</title>
<updated>2014-09-19T13:01:38+00:00</updated>
<author>
<name>ls1175</name>
<email>liusheng@huawei.com</email>
</author>
<published>2014-01-15T08:31:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=97e9c254e3e7113bb096be689fa9159293b3920b'/>
<id>97e9c254e3e7113bb096be689fa9159293b3920b</id>
<content type='text'>
When deleting an alarm, we use "ceilometer alarm-delete -a &lt;ALARM_ID&gt;",
unlike other deleting commands of openstack, the parameter-a/--alarm_id
is redundant. The similar situations exist in showing alarm, geting alarm
state, showing resource and so on.
It is more easy to use for reducing these parameters.

New behaviour:

$ ceilometer help alarm-show
usage: ceilometer alarm-show [&lt;ALARM_ID&gt;]

Show an alarm.

Positional arguments:
  &lt;ALARM_ID&gt;  ID of the alarm to show.

$ ceilometer alarm-show
alarm_id should not be empty

$ ceilometer alarm-show abcde
Not Found (HTTP 404)

$ ceilometer alarm-show -a abcde
-a is obsolete! See help for more details.
Not Found (HTTP 404)

$ ceilometer alarm-show --alarm_id abcde
--alarm_id is obsolete! See help for more details.
Not Found (HTTP 404)

Co-Authored-By: Nejc Saje &lt;nsaje@redhat.com&gt;
Change-Id: I1fbc85aa253929bfbb5e73ed834a725b9cf828b4
Closes-bug: #1268557
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When deleting an alarm, we use "ceilometer alarm-delete -a &lt;ALARM_ID&gt;",
unlike other deleting commands of openstack, the parameter-a/--alarm_id
is redundant. The similar situations exist in showing alarm, geting alarm
state, showing resource and so on.
It is more easy to use for reducing these parameters.

New behaviour:

$ ceilometer help alarm-show
usage: ceilometer alarm-show [&lt;ALARM_ID&gt;]

Show an alarm.

Positional arguments:
  &lt;ALARM_ID&gt;  ID of the alarm to show.

$ ceilometer alarm-show
alarm_id should not be empty

$ ceilometer alarm-show abcde
Not Found (HTTP 404)

$ ceilometer alarm-show -a abcde
-a is obsolete! See help for more details.
Not Found (HTTP 404)

$ ceilometer alarm-show --alarm_id abcde
--alarm_id is obsolete! See help for more details.
Not Found (HTTP 404)

Co-Authored-By: Nejc Saje &lt;nsaje@redhat.com&gt;
Change-Id: I1fbc85aa253929bfbb5e73ed834a725b9cf828b4
Closes-bug: #1268557
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Verify alarm found before modifying"</title>
<updated>2014-09-13T07:18:03+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-09-13T07:18:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=d4bada707b863c875b9f05a8c62c494a9a2f778d'/>
<id>d4bada707b863c875b9f05a8c62c494a9a2f778d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix sample-create in v2 api calls</title>
<updated>2014-09-10T20:02:31+00:00</updated>
<author>
<name>Chris Dent</name>
<email>chdent@redhat.com</email>
</author>
<published>2014-09-10T19:58:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=c5d7f96914c1ef0dbd490fbe7899c7633d16d070'/>
<id>c5d7f96914c1ef0dbd490fbe7899c7633d16d070</id>
<content type='text'>
A dict embedded in a list is the expected input. In
47934c777c50897b649793e0960eebdaad322c45 the list was lost, this
puts it back.

Note that the _exact_ date of this failure was identified by
existing Rally jobs which started failing in early August. That made
searching the commit logs straightforward.

Change-Id: I37e794de7a23b8ce8e67a086732af5a19f182409
Closes-Bug: #1367867
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A dict embedded in a list is the expected input. In
47934c777c50897b649793e0960eebdaad322c45 the list was lost, this
puts it back.

Note that the _exact_ date of this failure was identified by
existing Rally jobs which started failing in early August. That made
searching the commit logs straightforward.

Change-Id: I37e794de7a23b8ce8e67a086732af5a19f182409
Closes-Bug: #1367867
</pre>
</div>
</content>
</entry>
<entry>
<title>Verify alarm found before modifying</title>
<updated>2014-08-29T14:04:30+00:00</updated>
<author>
<name>Eric Pendergrass</name>
<email>eap@hp.com</email>
</author>
<published>2014-07-29T15:52:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=8a01731d4e68152e9f575bea78b2baa085986726'/>
<id>8a01731d4e68152e9f575bea78b2baa085986726</id>
<content type='text'>
Current behavior is to retrieve alarm by id and conduct operations on the
object.  If the tenant doesn't own the alarm or isn't admin, the user will
receive the message: 'NoneType' object has no attribute 'to_dict'

Above message doesn't provide any useful diagnostic information and indicates a
programming error since an unexpected None-type is encountered and not handled.

This change verifies the alarm is found before using the object.  If alarm not
found it prints the same message for a not found Alarm as other PUT operations
like alarm-state-set:  Alarm not found: &lt;alarm_id&gt;.

This message is more useful for diagnosis and gets rid of the uncaught
None-type error.

Change-Id: I66abcd4498b24ac7cadcf29fe3ced3fcda08458c
Closes-Bug: #1348387
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Current behavior is to retrieve alarm by id and conduct operations on the
object.  If the tenant doesn't own the alarm or isn't admin, the user will
receive the message: 'NoneType' object has no attribute 'to_dict'

Above message doesn't provide any useful diagnostic information and indicates a
programming error since an unexpected None-type is encountered and not handled.

This change verifies the alarm is found before using the object.  If alarm not
found it prints the same message for a not found Alarm as other PUT operations
like alarm-state-set:  Alarm not found: &lt;alarm_id&gt;.

This message is more useful for diagnosis and gets rid of the uncaught
None-type error.

Change-Id: I66abcd4498b24ac7cadcf29fe3ced3fcda08458c
Closes-Bug: #1348387
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Check if the alarm has time constraints field before displaying"</title>
<updated>2014-08-28T18:40:33+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-08-28T18:40:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=11134c56752a0224c4458e0827a318ba8c6e2642'/>
<id>11134c56752a0224c4458e0827a318ba8c6e2642</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Check if the alarm has time constraints field before displaying</title>
<updated>2014-08-25T08:56:16+00:00</updated>
<author>
<name>Nejc Saje</name>
<email>nejc.saje@xlab.si</email>
</author>
<published>2014-05-27T10:21:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=8eee7d0eca50c846f380f1ca753cc797d22cad55'/>
<id>8eee7d0eca50c846f380f1ca753cc797d22cad55</id>
<content type='text'>
Fixes the bug that broke the alarms CLI if the alarm didn't have
a time constraints field.

Reduces code duplication of alarm printing code, so now all the alarm
printing code is actually tested.

Renames some auxiliary methods for more clarity.

Change-Id: Ib691b4a5a6cf5ae133cd0a5576f90e4d0d189a92
Closes-bug: #1316390
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes the bug that broke the alarms CLI if the alarm didn't have
a time constraints field.

Reduces code duplication of alarm printing code, so now all the alarm
printing code is actually tested.

Renames some auxiliary methods for more clarity.

Change-Id: Ib691b4a5a6cf5ae133cd0a5576f90e4d0d189a92
Closes-bug: #1316390
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace assertTrue with assertIsNotNone for check an object</title>
<updated>2014-08-11T17:38:53+00:00</updated>
<author>
<name>joey5678</name>
<email>jiadong.jia@huawei.com</email>
</author>
<published>2014-03-25T10:12:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=f40ba19b75b1ffaf112c8def48ec1a361b32ef86'/>
<id>f40ba19b75b1ffaf112c8def48ec1a361b32ef86</id>
<content type='text'>
assertTrue(*) means to check whether a boolean value/expression
is true or not. For checking an object is not None, we should use
assertIsNotNone(*), which gives more explicit expression.

Change-Id: Ia4d0dcec81e97fe4774bff4e41a017f00b899ef3
Closes-Bug: #1297156
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
assertTrue(*) means to check whether a boolean value/expression
is true or not. For checking an object is not None, we should use
assertIsNotNone(*), which gives more explicit expression.

Change-Id: Ia4d0dcec81e97fe4774bff4e41a017f00b899ef3
Closes-Bug: #1297156
</pre>
</div>
</content>
</entry>
<entry>
<title>Use HTTPClient from common Oslo code</title>
<updated>2014-07-31T15:59:58+00:00</updated>
<author>
<name>ekudryashova</name>
<email>ekudryashova@mirantis.com</email>
</author>
<published>2014-01-23T17:28:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=47934c777c50897b649793e0960eebdaad322c45'/>
<id>47934c777c50897b649793e0960eebdaad322c45</id>
<content type='text'>
In the process of unification of the clients code we should
reuse common functionality from Oslo.

bp common-client-library-2

Change-Id: I0e027c33ee42b6de032d33269caeea33e7837f40
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the process of unification of the clients code we should
reuse common functionality from Oslo.

bp common-client-library-2

Change-Id: I0e027c33ee42b6de032d33269caeea33e7837f40
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Avoid empty entity field in uri path"</title>
<updated>2014-07-24T12:32:23+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-07-24T12:32:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=3a7616cd126d8fbea0f0623dc04a2354968dc8b1'/>
<id>3a7616cd126d8fbea0f0623dc04a2354968dc8b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
