Friday, 2017-02-17

openstackgerritMonty Taylor proposed openstack-infra/shade master: DNM - Patch to verify 2.0 usage payload behavior  https://review.openstack.org/43448200:00
*** gouthamr has joined #openstack-shade00:39
*** jamielennox is now known as jamielennox|away01:18
*** jamielennox|away is now known as jamielennox01:25
*** dct360 has quit IRC03:18
*** deepbook5broo has joined #openstack-shade04:19
*** deepbook5broo has left #openstack-shade04:19
*** gouthamr has quit IRC04:38
morganmordred: oh man... complete_qs doesn't do exactly what I expected04:41
morganmordred: this is a bigger issue with just plain query_string matching not even complete_qs04:41
morganmordred: oh found the issue04:50
morgansigh04:50
morgani can fix it.04:51
morganit is a bug in register_uris... but also because i was assuming order didn't matter... and it doesn't... somewhat04:51
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Require `complete_qs` if a query_string is in the mocked uri  https://review.openstack.org/43512705:05
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Convert use of .register_uri to .register_uris  https://review.openstack.org/43451605:05
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Convert test_object to use .register_uris  https://review.openstack.org/43453205:05
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Convert test_object to use .register_uris  https://review.openstack.org/43453205:06
morganmordred: ^ should fix all of our issues05:06
morganwrt .register_uris05:06
morganjamielennox: i made some assumptions about order that were incorrect05:06
jamielennoxmorgan: order of what?05:07
morganjamielennox: the order we register the uris in05:08
jamielennoxoh, you override the same url05:08
jamielennoxtry not to :)05:08
morganin the case of something like images?next=<blah>05:08
morgani don't have a choice05:08
morganunless i want to rip the qs off the uri before passing it to register_uri because of the tracking we do to bundle things into a response_list05:09
morganinstead of overriding things a ton05:09
jamielennoxoh, i see - tricky05:10
morganyeah05:10
jamielennoxi mean you can always do a callback and do responses that way05:10
morganwe don't do it except in the case of query_strings05:10
morgannow05:10
morganjamielennox: i don't feel like the callback is warranted here in shade05:11
jamielennoxmorgan: yea, i try not to use them if possible05:11
jamielennoxmorgan: so is there something that needs fixing in requests-mock/05:12
morganjamielennox: it is a lot more moving bits. i already eliminated 90% of the URI duplicates05:12
morganthere is something that could be more explicit05:12
morganlike complete_qs is not super explicit05:12
morganand not intuative05:13
morgani'd like to add an "ignore_qs" option as well05:13
morganthat is mutually exclusive to complete_qs05:13
morganso we can say doesn't matter if I mock with a QS or not05:14
morganbecause we might be mirroring some real-responses/requests but not care qs wise05:14
morganit's not a big deal05:14
morganthe QS-case sensitivity is... also not really na issue here05:14
morganso, meh we're all good05:14
jamielennoxwhat do you mean ignore_qs?05:15
jamielennoxcomplete_qs means match the entire qs05:15
jamielennoxignore would just seem to be the oposite05:15
jamielennoxand complete_qs should be false by default05:15
morganyes i would like the opposite ability05:17
morganor... actually05:17
morgantake that back05:17
morgani would like to explicitly be able to pass a QS into .register_uri vs it being part of the uri... or store it as part of the response list somehow05:18
morgannone of this is super important05:18
* morgan goes back to... not digging into the depths of request_mock05:19
jamielennox:)05:19
jamielennoxi was thinking i'd like some way of overriding the mocker or something to let people set their own values for this sort of thing05:20
jamielennoxbut i don't know who cares05:20
morgani do... but i'm kindof an edge case05:21
morganyanno05:21
morgan:P05:21
jamielennoxmorgan: if you have an idea of how let me know05:24
jamielennoxif it doesn't mess with the core i don't have an objection05:24
openstackgerritMorgan Fainberg proposed openstack-infra/shade master: Convert test_object to use .register_uris  https://review.openstack.org/43453205:44
*** jordanP has joined #openstack-shade08:49
*** cdent has joined #openstack-shade09:50
*** yolanda has quit IRC11:36
*** yolanda has joined #openstack-shade11:39
*** abregman has joined #openstack-shade13:59
*** gouthamr has joined #openstack-shade14:01
*** abregman has quit IRC14:05
*** dct360 has joined #openstack-shade15:17
openstackgerritMerged openstack-infra/shade master: Convert use of .register_uri to .register_uris  https://review.openstack.org/43451615:17
openstackgerritMerged openstack-infra/shade master: Convert test_object to use .register_uris  https://review.openstack.org/43453215:21
mordredShrews, rcarrillocruz: this old PR is ready to land: https://github.com/ansible/ansible/pull/18648 - we released a new occ with the needed patch ages ago16:45
Shrewsmordred: i'm not certain if that's considered part of ansible core or not so i'm hesitant to merge it (see https://groups.google.com/forum/#!topic/ansible-devel/S3DAPlqMIk0)16:51
mordredhrm. lemme go ask folks- it's also a bug fix rather than a feature ...16:55
rcarrillocruzAh, thought it was your mega change switching constructor16:58
rcarrillocruzLgtm16:58
rcarrillocruzI think is simple enough and is a bugfix, thus we could merge17:00
*** jordanP has quit IRC17:07
mordredbcoca has merged for us17:09
mordredrcarrillocruz: also - I think https://github.com/ansible/ansible/pull/21540 is safe - the CI failure is not related17:12
mordredthe cloud constructor one is definitely a post-release sort of thing17:12
*** cdent has quit IRC17:47
morganmordred: ok i'm packing and travelling17:52
morganmordred: see you next week17:53
mordredmorgan: see you then!17:59
-openstackstatus- NOTICE: Restarting gerrit due to performance problems19:04
rcarrillocruzmordred: merged20:49
*** gouthamr has quit IRC22:11
*** dct360 has quit IRC22:28
*** gouthamr has joined #openstack-shade22:34

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