Wednesday, 2018-11-21

*** toure is now known as toure|gone00:30
openstackgerritzhufl proposed openstack/mistral master: Add missing ws separator between words  https://review.openstack.org/61914003:18
*** hardikjasani has joined #openstack-mistral04:43
*** akovi has joined #openstack-mistral05:39
*** d0ugal has quit IRC06:05
*** apetrich has joined #openstack-mistral06:40
*** gkadam has joined #openstack-mistral07:25
*** jtomasek has joined #openstack-mistral07:59
*** shardy has joined #openstack-mistral08:35
*** shardy has quit IRC08:39
*** bobh has joined #openstack-mistral08:43
*** d0ugal has joined #openstack-mistral09:11
*** d0ugal has quit IRC09:22
akovijosecastroleon: I think you can't do this. The workflow execution has some parameters that cannot be generalized. You should authenticate outside Mistral and target your executions separately. New execution for each target. There is no way to iterate through endpoints/regions/tenants.09:24
*** jaosorior has quit IRC09:26
*** d0ugal has joined #openstack-mistral09:26
*** shardy has joined #openstack-mistral09:51
openstackgerritKupai József proposed openstack/mistral master: Eliminating datetime.now()  https://review.openstack.org/61918910:00
*** bobh has quit IRC10:01
*** jaosorior has joined #openstack-mistral10:03
openstackgerritOleg Ovcharuk proposed openstack/mistral master: Sending TASK_FAILED event in case of MistralException  https://review.openstack.org/61919210:03
vgvolegGuys, hi all, I need your help with this ^^^^^10:10
vgvolegI can't get how to test another cases with some natural mistral workflow10:10
vgvolegNot sure that using stubs is correct10:11
vgvolegJust mocking functions from try section doesn't describe sensitive use cases10:12
*** shardy has quit IRC10:52
*** shardy has joined #openstack-mistral10:53
akovivgvoleg: it seems like this is practically copy-paste everywhere. It may be better extracted to a function. As a matter of fact, if events must be generated o state change, then this should be weaved into the state change logic instead of littering the code everywhere with notify calls. Reactive programming principles could help here but it would be a large change.11:38
akoviIf you ensure that the state change is always done through your extracted logic, then it should be enough to test the new function only.11:39
akoviPlease don't try to mock everything, that's a very unreliable way of solving testability issues.11:40
openstackgerritOleg Ovcharuk proposed openstack/mistral master: Refactor size limit check mechanism  https://review.openstack.org/60846911:44
vgvolegakovi: as I said, I don't want to use mocks there, but I have no idea about any other ways to provoke this exception11:47
akovivgvoleg: well if there are no tests for these cases now, then it would be an improvement to have but I feel like it is not completely necessary for you to test all these11:57
akoviit's stateful code, embedded in the business logic11:57
akovinoone will crucify you for doing this11:58
akovi:)11:58
vgvolegok, I got it :D11:58
openstackgerritOleg Ovcharuk proposed openstack/mistral master: Sending TASK_FAILED event in case of MistralException  https://review.openstack.org/61919212:17
vgvolegakovi: refactored ^^^12:19
vgvoleghttps://review.openstack.org/#/c/616693 anyone, need your opinion12:54
*** hardikjasani has quit IRC13:42
*** toure|gone is now known as toure14:17
*** bobh has joined #openstack-mistral14:21
*** jaosorior has quit IRC14:25
*** jaosorior has joined #openstack-mistral15:24
*** bobh has quit IRC16:19
*** gkadam has quit IRC16:40
*** akovi has quit IRC16:54
*** shardy has quit IRC17:01
*** shardy has joined #openstack-mistral17:07
*** jaosorior has quit IRC17:41
*** shardy has quit IRC18:34
*** shardy has joined #openstack-mistral18:36
*** shardy has quit IRC18:56
*** apetrich has quit IRC19:00
*** apetrich has joined #openstack-mistral19:15
*** bobh has joined #openstack-mistral19:35
*** apetrich has quit IRC20:01
*** bobh has quit IRC20:29
*** bobh has joined #openstack-mistral20:39
*** bobh has quit IRC21:28
*** toure is now known as toure|gone23:03

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