Friday, 2015-04-24

*** achanda has quit IRC00:07
*** amitgandhinz has joined #openstack-zaqar00:27
*** flaper87 has quit IRC01:27
*** flaper87 has joined #openstack-zaqar01:28
*** flaper87 has quit IRC01:33
*** flaper87 has joined #openstack-zaqar01:39
*** amitgandhinz has quit IRC01:49
*** amitgandhinz has joined #openstack-zaqar01:49
*** amitgandhinz has quit IRC01:54
*** OneLostSoul has joined #openstack-zaqar02:18
*** flwang1 has quit IRC02:31
*** flwang1 has joined #openstack-zaqar02:31
OneLostSoulI have questions about the testing.02:37
*** achanda has joined #openstack-zaqar02:37
*** flwang1 has quit IRC02:43
*** flwang1 has joined #openstack-zaqar02:43
*** flwang1 has quit IRC02:46
vkmcOneLostSoul, shoot103:03
vkmcs/1/!03:03
OneLostSoulI have been looking at notifier.py03:07
OneLostSoulI do not see any functional testing for that feature.03:07
OneLostSoulIn test_notifier.py NotifierTest.test_post() ....03:09
OneLostSoulI do not understand why the first two calls to assert_called_with have the same arguments.03:10
OneLostSoulvkmc, can you shed light on these?03:11
vkmcOneLostSoul, could you share me a link?03:11
vkmccode is hosted here https://github.com/openstack/zaqar03:11
OneLostSoulhttps://github.com/openstack/zaqar/tree/master/tests/functional is the link for the directory of functional testing (if I understand).03:15
OneLostSoulas also is https://github.com/openstack/zaqar/tree/master/zaqar/tests/functional03:17
OneLostSoulhttps://github.com/openstack/zaqar/tree/master/zaqar/tests/unit/notification/test_notifier.py seems to be the unit test.03:18
vkmcits ok, its under zaqar/tests/unit03:19
vkmcits a unit test03:19
vkmc:)03:19
OneLostSoulMaybe I should have directed my questions to flwang.03:19
vkmcsure03:20
OneLostSoulHe asked me to look at notifier03:20
vkmcI don't understand your concern though03:20
vkmcyou say that there is no notifications functional test?03:20
vkmcif that is... yes you are right03:20
vkmcthere are only unit tests for that feature03:20
vkmcand we should add the functional ones03:20
OneLostSoulFirst question: answered!03:21
vkmccool :)03:22
OneLostSoulThe sequence of six calls to assert_called_with() I expected to do a vector expansion of the two lists; but it is not (0,0), (0,1), (1,0), (1,1), (2,0), (2,1).03:23
OneLostSoulDoes that mean the unit test doesn't properly test?03:24
OneLostSoulOr does the second call to assert_called_with() do something other than an exact repeat of the previous call?03:27
OneLostSoulflwang, can you comment?03:28
*** sriram has joined #openstack-zaqar03:38
*** achanda has quit IRC03:44
*** sriram has quit IRC03:57
*** sriram has joined #openstack-zaqar03:57
*** sriram has quit IRC04:03
flwangOneLostSoul: sorry, I was away. now back04:08
flwangi'm reading your 2nd question04:09
flwangOneLostSoul: there are three subscriptions for the queue, and two messages posted to the queue, then the expected behaviour is the requests.post will be called 6 times04:13
flwangbut I didn't really understand what's your question, would you mind explaining more?04:15
OneLostSoulPlease compare the first two calls to assert_called_with.04:16
OneLostSoulThe arguments are, if I read correctly, identical.04:16
OneLostSoulThe six calls should have the pattern (0,0), (0,1), (1,0), (1,1), (2,0), (2,1) ; but it does not.04:17
flwangah, shit happened :) I will submit a new patch, thanks for the headsup04:17
flwangi definitely missed two cases i think04:18
flwangOneLostSoul: nice catch04:18
OneLostSoulI am thinking that we need a new assert method.04:18
flwangwhat did you mean a new assert method?04:19
OneLostSoulOne that will take the lists and expand out the cross products.04:19
OneLostSoulThen you would have only coded one call with the lists and it would have been right.04:20
flwangbut the assert method is from mock library04:26
flwangare you saying to create a customized one?04:26
OneLostSoulNot sure.04:26
*** achanda has joined #openstack-zaqar04:35
*** OneLostSoul has quit IRC05:17
*** dynarro has joined #openstack-zaqar07:09
*** dynarro has quit IRC07:16
*** achanda has quit IRC07:24
*** achanda has joined #openstack-zaqar07:36
*** achanda has quit IRC07:57
*** flwang1 has joined #openstack-zaqar09:39
*** flaper87 has quit IRC10:05
*** flaper87 has joined #openstack-zaqar10:05
*** dguerri is now known as _dguerri10:59
*** _dguerri is now known as dguerri11:00
*** dguerri is now known as _dguerri11:20
*** _dguerri is now known as dguerri11:37
*** flwang1 has quit IRC11:59
*** exploreshaifali has joined #openstack-zaqar12:04
*** vkmc has quit IRC12:08
*** vkmc has joined #openstack-zaqar12:08
*** kgriffs|afk is now known as kgriffs12:39
*** sriram has joined #openstack-zaqar13:11
*** kgriffs is now known as kgriffs|afk13:33
*** dguerri is now known as _dguerri14:01
*** _dguerri is now known as dguerri14:05
*** amitgandhinz has joined #openstack-zaqar14:13
*** csoukup has joined #openstack-zaqar14:23
*** achanda has joined #openstack-zaqar15:03
*** davideagnello has quit IRC15:07
*** achanda has quit IRC15:08
*** exploreshaifali has quit IRC15:50
*** kgriffs|afk is now known as kgriffs16:39
*** achanda has joined #openstack-zaqar16:52
*** davideagnello has joined #openstack-zaqar16:54
*** exploreshaifali has joined #openstack-zaqar17:08
*** dguerri is now known as _dguerri17:24
*** _dguerri is now known as dguerri17:25
*** VeggieMeat has quit IRC17:29
*** VeggieMeat has joined #openstack-zaqar17:29
*** dguerri is now known as _dguerri18:09
*** exploreshaifali has quit IRC18:25
*** _dguerri is now known as dguerri19:30
*** dguerri is now known as _dguerri20:57
*** csoukup has quit IRC20:59
*** mpanetta has joined #openstack-zaqar21:35
*** _dguerri is now known as dguerri22:12
*** dguerri is now known as _dguerri22:22
*** amitgandhinz has quit IRC22:44
*** kgriffs is now known as kgriffs|afk22:47
*** ametts has quit IRC22:51
*** achanda has quit IRC22:53
*** sriram has quit IRC23:09
*** kgriffs|afk is now known as kgriffs23:47
*** achanda has joined #openstack-zaqar23:53
*** kgriffs is now known as kgriffs|afk23:58
*** achanda has quit IRC23:59

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