Monday, 2014-11-10

*** viswanathsomanch has joined #openstack-zaqar01:38
*** viswanathsomanch has quit IRC02:40
*** jeffrey4l has joined #openstack-zaqar02:59
*** exploreshaifali has joined #openstack-zaqar03:47
exploreshaifalijeffrey4l, hello03:54
exploreshaifalifor bug https://bugs.launchpad.net/python-zaqarclient/+bug/135888903:54
exploreshaifalifirst I need to make a class for 504 error here https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/transport/errors.py03:55
exploreshaifaliand then raise it in transport/response.py03:55
exploreshaifaliright?03:55
jeffrey4lexploreshaifali, yep.03:57
jeffrey4lI think this is good.03:58
exploreshaifalijeffrey4l, when I cloned the zaqarclient repo I didn't found any test to run for it03:58
jeffrey4lit is impossible.03:58
exploreshaifaliIs there any tests cases we need to run for zaqarclient03:59
jeffrey4lu can try `tox -e py27`, the tests can be ran.03:59
exploreshaifalijeffrey4l, cool, Thanks!04:00
exploreshaifalijeffrey4l, but `tox` is what?04:01
exploreshaifaliI mean asking for knowledge04:01
jeffrey4lhere it is https://pypi.python.org/pypi/tox04:01
exploreshaifalijeffrey4l, kk Thanks :)04:05
jeffrey4l;p04:05
*** viswanathsomanch has joined #openstack-zaqar04:07
*** jeffrey4l has quit IRC04:10
*** jeffrey4l has joined #openstack-zaqar04:22
*** exploreshaifali has quit IRC05:01
*** viswanathsomanch has quit IRC06:32
*** jeffrey4l has quit IRC07:19
*** jeffrey4l has joined #openstack-zaqar07:51
*** flaper87 has quit IRC08:05
*** flaper87 has joined #openstack-zaqar08:05
*** jeffrey4l has quit IRC08:06
*** jeffrey4l has joined #openstack-zaqar08:10
*** jeffrey4l has quit IRC08:52
*** exploreshaifali has joined #openstack-zaqar08:59
*** exploreshaifali has quit IRC08:59
*** jeffrey4l has joined #openstack-zaqar09:13
*** exploreshaifali has joined #openstack-zaqar09:50
*** exploreshaifali has quit IRC09:55
*** exploreshaifali has joined #openstack-zaqar10:15
*** yfujioka has quit IRC10:15
exploreshaifalihi flaper87  I am working on bug https://bugs.launchpad.net/python-zaqarclient/+bug/135888911:12
exploreshaifaliIn file transport/response.py I should check if the response have 504 status_code or if itss content-types are not `application/JSON`11:13
exploreshaifaliif not then exception should be raised11:14
exploreshaifalibut self.header['Content-Type'] giving wrong key error11:15
exploreshaifalijeffrey4l, ^^^11:15
exploreshaifali*headers['content-type']11:16
flaper87exploreshaifali: I'd say we should just check that the content-type is `application/json`11:46
flaper87exploreshaifali: the question is, what should the client do if it's not?11:46
flaper87let me comment on that bug11:47
exploreshaifaliflaper87, in transport/response.py https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/transport/response.py I am making following changeshttp://pastebin.com/QXhTSU3C11:49
exploreshaifaliand after saving the file if I run test cases using `tox -e py27` getting `KeyError` content-type11:51
flaper87exploreshaifali: you might want to use self.headers.get('content-type', 'application/json') != .....11:52
exploreshaifalithe response object here getting inputs like content, headers etc from https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/transport/http.py11:52
flaper87exploreshaifali: also, you probably need to fix the tests to always have a content-type header11:52
exploreshaifalifix the tests?11:53
flaper87exploreshaifali: one more thing, please read my comment on that bug, I'm quite unsure about what the behavior should be if the content-type is not json11:53
flaper87exploreshaifali: forget what I said about tests :P11:54
flaper87exploreshaifali: just use `self.headers.get(.....)`11:54
exploreshaifaliokay :)11:55
exploreshaifaliflaper87, also here https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/errors.py#L26  --- exception message should be in i18n?11:55
exploreshaifaliit is not at present11:56
flaper87exploreshaifali: yes11:56
exploreshaifalishould I file a bug for this11:56
exploreshaifali?11:56
exploreshaifaliflaper87, ^11:57
flaper87exploreshaifali: yeah, please tag it as low-hanging-fruit11:59
flaper87exploreshaifali: lets keep it around for a bit for newcomers12:00
exploreshaifaliflaper87, sure :)12:00
*** malini has joined #openstack-zaqar12:08
*** malini has joined #openstack-zaqar12:09
*** malini has quit IRC12:09
*** sgotliv has joined #openstack-zaqar12:20
*** malini has joined #openstack-zaqar12:43
*** malini has quit IRC13:53
*** sgotliv has quit IRC13:57
*** openstackgerrit has joined #openstack-zaqar14:04
*** jeffrey4l has quit IRC14:06
*** sriram has joined #openstack-zaqar14:07
*** sgotliv has joined #openstack-zaqar14:07
*** exploreshaifali has quit IRC14:19
*** malini has joined #openstack-zaqar14:30
*** jchai has joined #openstack-zaqar14:33
*** ametts has joined #openstack-zaqar14:37
*** amitgandhinz has joined #openstack-zaqar15:02
*** exploreshaifali has joined #openstack-zaqar15:36
*** D3f0 has joined #openstack-zaqar16:16
*** sgotliv has quit IRC16:31
exploreshaifaliany solution for `ERROR: InvocationError: '/opt/stack/python-zaqarclient/.tox/py27/bin/nosetests'`17:40
exploreshaifaliit is coming even if I raise python in-built exceptions17:40
exploreshaifalilike NameError('')17:40
*** exploreshaifali has quit IRC18:23
*** malini has quit IRC18:47
*** malini has joined #openstack-zaqar18:49
*** sgotliv has joined #openstack-zaqar19:33
*** jchai is now known as jchai_afk19:55
*** jchai_afk is now known as jchai19:57
*** D3f0 has quit IRC20:00
*** jchai is now known as jchai_afk20:24
*** jchai_afk is now known as jchai20:25
*** malini has left #openstack-zaqar20:31
*** dagnello has joined #openstack-zaqar21:23
*** flwang has quit IRC21:45
*** flwang1 has joined #openstack-zaqar21:48
*** sriram has quit IRC22:32
*** amitgandhinz has quit IRC22:53
*** jchai has quit IRC23:13
*** sgotliv_ has joined #openstack-zaqar23:29
*** sgotliv has quit IRC23:32
*** sgotliv_ has quit IRC23:54

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!