NobodyCam | Haomeng: is this what you looking at? https://github.com/openstack/ironic/blob/master/ironic/tests/api/test_ports.py#L184-L186 | 00:00 |
---|---|---|
*** WillOchanda has quit IRC | 00:02 | |
Haomeng | yes, our TestPatch will call patch_json to update object | 00:03 |
Haomeng | but can not get the port json from patch_json's response, just get 200 | 00:04 |
Haomeng | I try to retrieve " response['created_at']" from the response, but we get "TypeError: 'TestResponse' object has no attribute '__getitem__'" | 00:05 |
Haomeng | not sure if this as design | 00:05 |
NobodyCam | can you paste the code so I can see.. .its after 5 on friday... brain mushy | 00:05 |
Haomeng | sorry | 00:05 |
Haomeng | let me paste | 00:05 |
NobodyCam | don't be sorry | 00:06 |
NobodyCam | :) its all good | 00:06 |
Haomeng | http://paste.openstack.org/show/49784/ | 00:07 |
Haomeng | i pasted, help me take look | 00:07 |
NobodyCam | sure :) | 00:08 |
Haomeng | thankyou:) | 00:08 |
Haomeng | I try with response.json['created_at'], still same error, so I think patch method can not response the port json, soquestion is how to verify the patch result? | 00:11 |
NobodyCam | is this up for review? can I pull down the whole patch and run it localy | 00:13 |
NobodyCam | ? | 00:13 |
Haomeng | this ut failed, so dont want to commit the code which has ut issue | 00:14 |
Haomeng | but only two line change | 00:14 |
Haomeng | you can apply | 00:14 |
NobodyCam | just the test then? | 00:14 |
NobodyCam | the one in the past | 00:15 |
Haomeng | no | 00:15 |
Haomeng | this ismy defect | 00:16 |
Haomeng | https://review.openstack.org/#/c/53627/2 | 00:16 |
Haomeng | I want to expose created_at/updated_at properties in the REST API, so ut should cover these fields verification | 00:17 |
Haomeng | my question is if patch_json doesnot return object json string, wehave to get/retireve it again to verify if the patch/update works for our new fields | 00:19 |
Haomeng | NobodyCam, let me try again, thank you:) | 00:19 |
Haomeng | I think I can do:) | 00:19 |
Haomeng | thank you, good evening:) | 00:20 |
*** lifeless has quit IRC | 00:23 | |
NobodyCam | Haomeng: ok got the same error here | 00:24 |
NobodyCam | lets see why | 00:24 |
Haomeng | I am debuging now:) | 00:25 |
Haomeng | to see what returned for patch call | 00:25 |
NobodyCam | result['created_at'] vs. response['created_at'] | 00:27 |
*** michchap has quit IRC | 00:28 | |
NobodyCam | whole new set of errors but they look real | 00:28 |
*** pky has joined #openstack-ironic | 00:28 | |
Haomeng | yes | 00:28 |
Haomeng | NobodyCam, this is http://paste.openstack.org/show/49789/ - port-update api call details,fyi | 00:30 |
Haomeng | it return the update port already, but wecan not get from path_json result | 00:30 |
*** michchap has joined #openstack-ironic | 00:30 | |
*** pky has quit IRC | 00:31 | |
*** pky has joined #openstack-ironic | 00:32 | |
Haomeng | and almost our patch port/node code in unittest did not verify the update value from result | 00:34 |
Haomeng | this should be ut gap | 00:34 |
NobodyCam | yes we need better testing | 00:35 |
Haomeng | ok, let me try to cover these patch result verify gap, thankyou NobodyCam, nice weekend, and good evening:) | 00:39 |
NobodyCam | Haomeng: http://paste.openstack.org/show/Uwk6KDLJTM7IhvHtrbQD/ | 00:44 |
Haomeng | you mean we have to call "result = self.get_json('/ports/%s' % pdict['uuid']}" to getresult? | 00:47 |
Haomeng | ok, thank you | 00:47 |
NobodyCam | :) | 00:47 |
Haomeng | that means patch_json willnot return port json whic is patched | 00:47 |
Haomeng | ok, will addcode, thankyou | 00:48 |
Haomeng | I still understand patch_json will not return the json which is patched, so we have to retrieve again by get_json to verify | 00:51 |
NobodyCam | Haomeng: try self.assertTrue(timeutils.is_older_than( | 00:52 |
NobodyCam | response.body['created_at'][:-6], | 00:52 |
NobodyCam | 0)) | 00:52 |
NobodyCam | dinner | 00:53 |
Haomeng | ok, got, thanks | 00:57 |
Haomeng | I remenbered that i did thistry with response.body | 00:58 |
Haomeng | let me double check | 00:58 |
Haomeng | http://paste.openstack.org/show/49796/ not working with response.body but looks like working with response.json | 01:04 |
SpamapS | clarkb: re -r... why don't we have a --pip-install-U-but-dont-clear-out-venv ? | 01:08 |
clarkb | SpamapS: because tox | 01:08 |
clarkb | getting patches in is almost impossible | 01:09 |
SpamapS | we added using develop to tox, right? | 01:09 |
clarkb | yeah, after a year or so of trying by multiple people | 01:09 |
*** jbjohnso has quit IRC | 01:15 | |
*** anteaya has quit IRC | 01:33 | |
*** pky has quit IRC | 01:41 | |
*** epim has quit IRC | 01:55 | |
*** liteIRC has joined #openstack-ironic | 02:34 | |
*** lnxnut has joined #openstack-ironic | 02:57 | |
*** liteIRC has quit IRC | 03:09 | |
*** lnxnut has quit IRC | 03:15 | |
*** crandquist has joined #openstack-ironic | 03:28 | |
*** kobier has quit IRC | 03:29 | |
*** liteIRC has joined #openstack-ironic | 03:31 | |
*** lnxnut has joined #openstack-ironic | 03:39 | |
*** liteIRC has quit IRC | 04:02 | |
*** lnxnut has quit IRC | 04:34 | |
*** prekarat has joined #openstack-ironic | 04:56 | |
*** crandquist has quit IRC | 05:16 | |
*** lnxnut has joined #openstack-ironic | 05:45 | |
*** lnxnut has quit IRC | 05:49 | |
*** lifeless has joined #openstack-ironic | 05:55 | |
*** Haomeng|2 has joined #openstack-ironic | 06:39 | |
*** Haomeng has quit IRC | 06:39 | |
*** Haomeng|2 has left #openstack-ironic | 06:41 | |
*** Haomeng has joined #openstack-ironic | 06:43 | |
*** romcheg has joined #openstack-ironic | 07:16 | |
*** romcheg has left #openstack-ironic | 07:17 | |
*** romcheg1 has joined #openstack-ironic | 08:41 | |
*** romcheg has joined #openstack-ironic | 09:23 | |
*** romcheg1 has quit IRC | 09:26 | |
*** romcheg has quit IRC | 09:26 | |
openstackgerrit | Haomeng,Wang proposed a change to openstack/ironic: Expose created_at/updated_at properties in the REST API https://review.openstack.org/53627 | 10:12 |
openstackgerrit | Haomeng,Wang proposed a change to openstack/ironic: Expose created_at/updated_at properties in the REST API https://review.openstack.org/53627 | 10:19 |
openstackgerrit | Haomeng,Wang proposed a change to openstack/python-ironicclient: Enable created_at/updated_at for port-show/chassis-show https://review.openstack.org/53991 | 10:42 |
*** romcheg has joined #openstack-ironic | 11:03 | |
*** prekarat has quit IRC | 11:10 | |
*** michchap_ has joined #openstack-ironic | 11:47 | |
*** michchap has quit IRC | 11:47 | |
*** jbjohnso has joined #openstack-ironic | 12:24 | |
*** jbjohnso has quit IRC | 13:23 | |
*** jbjohnso has joined #openstack-ironic | 14:03 | |
*** datajerk has quit IRC | 14:12 | |
*** Haomeng has quit IRC | 14:28 | |
*** Haomeng has joined #openstack-ironic | 14:29 | |
*** martyntaylor has joined #openstack-ironic | 14:30 | |
*** martyntaylor has quit IRC | 14:40 | |
clarkb | SpamapS: it occurred to me that a pip install -U of the deps could be done as a test command prior to the actual tests | 14:40 |
clarkb | bypasses regular tox dep management but should work | 14:41 |
*** jbjohnso has quit IRC | 14:50 | |
NobodyCam | Haomeng: wow busy day | 15:03 |
NobodyCam | good morning Ironic | 15:03 |
*** datajerk has joined #openstack-ironic | 15:15 | |
*** WillOchanda has joined #openstack-ironic | 15:17 | |
*** Haomeng has quit IRC | 15:32 | |
*** Haomeng has joined #openstack-ironic | 15:33 | |
*** michchap_ has quit IRC | 15:55 | |
*** WillOchanda has quit IRC | 15:55 | |
*** lnxnut has joined #openstack-ironic | 15:57 | |
*** rustlebee is now known as russellb | 16:08 | |
*** prekarat has joined #openstack-ironic | 16:19 | |
*** Haomeng has quit IRC | 16:23 | |
*** lnxnut has quit IRC | 16:24 | |
*** lnxnut has joined #openstack-ironic | 16:25 | |
*** michchap has joined #openstack-ironic | 16:25 | |
*** michchap has quit IRC | 16:30 | |
*** lnxnut has quit IRC | 16:30 | |
*** ekarlso has quit IRC | 16:44 | |
*** martyntaylor has joined #openstack-ironic | 16:47 | |
*** pky has joined #openstack-ironic | 16:52 | |
*** datajerk has quit IRC | 16:55 | |
*** michchap has joined #openstack-ironic | 16:55 | |
*** datajerk has joined #openstack-ironic | 16:57 | |
*** michchap has quit IRC | 17:04 | |
*** WillOchanda has joined #openstack-ironic | 17:07 | |
*** datajerk has quit IRC | 17:08 | |
devananda | g'morning! | 17:13 |
*** WillOchanda has quit IRC | 17:16 | |
*** prekarat has quit IRC | 17:17 | |
*** michchap has joined #openstack-ironic | 17:50 | |
*** michchap has quit IRC | 17:56 | |
*** ekarlso has joined #openstack-ironic | 18:13 | |
*** martyntaylor has quit IRC | 18:20 | |
*** WillOchanda has joined #openstack-ironic | 18:27 | |
*** martyntaylor has joined #openstack-ironic | 18:38 | |
*** michchap has joined #openstack-ironic | 18:44 | |
*** michchap has quit IRC | 18:49 | |
*** WillOchanda has quit IRC | 18:53 | |
*** SpamapS has quit IRC | 19:01 | |
*** SpamapS has joined #openstack-ironic | 19:02 | |
*** WillOchanda has joined #openstack-ironic | 19:21 | |
*** WillOchanda has quit IRC | 19:28 | |
*** WillOchanda has joined #openstack-ironic | 19:56 | |
*** dkehn has quit IRC | 20:13 | |
*** martyntaylor has left #openstack-ironic | 20:23 | |
*** WillOchanda has quit IRC | 20:37 | |
*** kobier has joined #openstack-ironic | 20:44 | |
*** kobier has quit IRC | 20:45 | |
*** dkehn has joined #openstack-ironic | 21:23 | |
*** martyntaylor has joined #openstack-ironic | 21:24 | |
*** martyntaylor has left #openstack-ironic | 21:28 | |
*** martyntaylor has joined #openstack-ironic | 21:32 | |
*** martyntaylor has left #openstack-ironic | 21:32 | |
*** WillOchanda has joined #openstack-ironic | 21:36 | |
*** martyntaylor has joined #openstack-ironic | 21:37 | |
*** martyntaylor has left #openstack-ironic | 21:37 | |
*** WillOchanda has quit IRC | 21:38 | |
*** datajerk has joined #openstack-ironic | 22:09 | |
*** WillOchanda has joined #openstack-ironic | 22:26 | |
*** romcheg has quit IRC | 22:37 | |
*** lnxnut has joined #openstack-ironic | 23:41 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!