Wednesday, 2017-02-01

*** ducttape_ has joined #murano00:01
*** sergmelikyan has quit IRC00:02
*** zhurong has joined #murano00:42
*** zhurong has quit IRC00:44
*** jose-phillips has quit IRC00:45
*** Pavo has quit IRC00:54
*** ducttape_ has quit IRC00:55
*** ducttape_ has joined #murano01:06
*** jperry has quit IRC01:07
*** ducttape_ has quit IRC01:39
*** ducttape_ has joined #murano01:54
*** ducttape_ has quit IRC02:13
*** ducttape_ has joined #murano02:20
*** ducttape_ has quit IRC02:20
*** ducttape_ has joined #murano02:20
*** sergmelikyan has joined #murano02:52
*** sergmelikyan has quit IRC02:57
*** sergmelikyan has joined #murano03:23
*** sergmelikyan has quit IRC03:28
*** sergmelikyan has joined #murano03:55
*** sergmelikyan has quit IRC03:59
*** ducttape_ has quit IRC04:05
*** sergmelikyan has joined #murano04:26
*** ducttape_ has joined #murano04:28
*** sergmelikyan has quit IRC04:31
*** ducttape_ has quit IRC04:38
*** ducttape_ has joined #murano04:47
*** ducttape_ has quit IRC05:13
*** sergmelikyan has joined #murano05:30
*** sergmelikyan has quit IRC05:35
*** Zer0Byte has joined #murano06:12
*** Zer0Byte has quit IRC06:13
*** sergmelikyan has joined #murano06:14
*** sergmelikyan has quit IRC06:18
*** ducttape_ has joined #murano06:27
*** ducttape_ has quit IRC06:31
*** sergmelikyan has joined #murano06:42
*** sergmelikyan has quit IRC06:46
*** yamamoto has quit IRC07:25
*** ducttape_ has joined #murano07:57
*** ducttape_ has quit IRC08:02
*** sergmelikyan has joined #murano08:05
*** sergmelikyan has quit IRC08:13
*** Serlex has joined #murano08:43
*** Serlex has quit IRC08:47
*** Serlex has joined #murano09:02
*** kzaitsev_mb has joined #murano09:19
openstackgerritOpenStack Proposal Bot proposed openstack/murano-dashboard: Imported Translations from Zanata  https://review.openstack.org/42759909:22
*** ducttape_ has joined #murano09:28
*** ducttape_ has quit IRC09:32
*** zhonghua has quit IRC09:36
*** zhonghua has joined #murano09:36
openstackgerritMerged openstack/murano-dashboard: Imported Translations from Zanata  https://review.openstack.org/42759910:21
*** kzaitsev_mb has quit IRC10:55
*** ducttape_ has joined #murano10:58
*** ducttape_ has quit IRC11:03
*** kzaitsev_mb has joined #murano11:25
*** kzaitsev_mb has quit IRC11:29
*** kzaitsev_mb has joined #murano11:32
*** kzaitsev_mb has quit IRC12:03
*** kzaitsev_mb has joined #murano12:24
*** catintheroof has joined #murano12:28
*** ducttape_ has joined #murano12:29
*** ducttape_ has quit IRC12:33
*** kzaitsev_mb has quit IRC12:39
*** kzaitsev_mb has joined #murano12:43
*** ducttape_ has joined #murano12:57
*** ducttape_ has quit IRC13:42
*** sergmelikyan has joined #murano14:01
*** ducttape_ has joined #murano14:09
*** ducttape_ has quit IRC14:22
*** ducttape_ has joined #murano14:22
*** ducttape_ has quit IRC14:23
*** ducttape_ has joined #murano14:28
*** ducttape_ has quit IRC14:31
*** cleong has joined #murano14:35
*** sergmelikyan has quit IRC14:37
*** felipemonteiro has joined #murano14:55
*** sergmelikyan has joined #murano15:04
*** jperry has joined #murano15:11
*** felipemonteiro has quit IRC15:30
*** falseprotagonist has joined #murano15:31
*** felipemonteiro has joined #murano15:31
*** ducttape_ has joined #murano15:34
*** ducttape_ has quit IRC15:34
*** ducttape_ has joined #murano15:35
*** falseprotagonist has quit IRC15:37
*** falseprotagonist has joined #murano15:37
*** falseprotagonist has quit IRC15:37
*** sergmelikyan has quit IRC15:59
*** sergmelikyan has joined #murano16:00
*** sergmelikyan has quit IRC16:05
*** _ducttape_ has joined #murano16:09
*** ducttape_ has quit IRC16:13
*** learnmore has joined #murano16:51
learnmoreHello16:52
*** learnmore has quit IRC16:52
*** kzaitsev_mb has quit IRC17:05
*** sergmelikyan has joined #murano17:43
*** _ducttape_ has quit IRC17:54
*** ducttape_ has joined #murano17:54
*** ducttape_ has quit IRC17:54
*** ducttape_ has joined #murano17:55
*** ducttape_ has quit IRC17:55
*** ducttape_ has joined #murano17:56
openstackgerritFelipe Monteiro proposed openstack/murano: Fixes various Cfapi bugs.  https://review.openstack.org/42786018:48
openstackgerritFelipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi.  https://review.openstack.org/42786118:49
openstackgerritFelipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi.  https://review.openstack.org/42786118:51
*** ducttape_ has quit IRC19:02
*** ducttape_ has joined #murano19:03
*** Serlex has left #murano19:12
*** kzaitsev_mb has joined #murano19:56
*** _ducttape_ has joined #murano20:58
*** ducttape_ has quit IRC21:02
*** jose-phillips has joined #murano21:05
jose-phillipsHey felipemonteiro are you there?21:05
openstackgerritFelipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi.  https://review.openstack.org/42786121:18
felipemonteirojose-phillips: Yes.21:18
jose-phillipscan you help me with something very quick21:18
felipemonteiroSure21:19
felipemonteirojose-phillips: What do you need help with?21:23
jose-phillipsok im trying to mock21:23
jose-phillipssoirry i was on phone21:24
jose-phillipsim trying to mock the object heat_api.stack_get21:24
jose-phillipsbut idk if im doing wrong21:24
jose-phillipshttp://pastebin.com/v2zJVFpF21:25
jose-phillipscurrent_stack = heat_api.stack_get(request, stack.id)21:26
jose-phillipsif environment_id in current_stack.description:21:26
jose-phillipsand fail in current_stack.description because21:26
jose-phillipsAttributeError: 'tuple' object has no attribute 'description'21:26
felipemonteirojose-phillips: One second, my proxy blocks that link. Let me log into a different network, brb.21:29
jose-phillipsok21:32
*** felipemonteiro_ has joined #murano21:33
*** felipemonteiro has quit IRC21:34
felipemonteiro_jose-phillips: Hard to say what the exact solution is, but can you do environment_id in current_stack[0].description? Assuming current_stack = mock_heat_api.stack_get()21:34
felipemonteiro_Without seeing all the code, I mean, it's hard to say what the right answer is.21:35
*** _ducttape_ has quit IRC21:37
*** catintheroof has quit IRC21:37
jose-phillipshttp://pastebin.com/5n5sF5ML21:37
*** ducttape_ has joined #murano21:37
jose-phillipsthat what im trying to do21:37
*** catintheroof has joined #murano21:37
jose-phillipsommit the import pdb21:37
jose-phillipshttp://pastebin.com/H3mecazQ21:38
jose-phillipsthis is the unit testing21:38
felipemonteiro_Try:21:40
felipemonteiro_test_description = {environment_id: 'random_test_value'} mock_heat_api.stack_get.return_value = mock.Mock(description=test_description)21:40
jose-phillipsok let m try21:45
jose-phillipsquestion felipemonteiro_ i put this on the side_effect?21:54
*** catintheroof has quit IRC21:57
*** catintheroof has joined #murano21:58
felipemonteiro_jose-phillips: http://pastebin.com/Z0CddcpG21:58
felipemonteiro_mock.side_effect = [5, 4, 3, 2, 1] means that each time you call mock(), the next item in the list is returned. mock.return_value = 5 will always return 5.22:00
felipemonteiro_Also, the reason why mock_heat_api.stacks_list.side_effect returns a tuple is because "stacks, has_more, has_prev = heat_api.stacks_list" a 3-tuple to be returned. However, current_stack = heat_api.stack_get only expects 1 argument, no tuple is needed.22:01
jose-phillipsyou are right22:03
jose-phillipsdescripting i guess should be a string22:03
jose-phillipsdescription22:03
*** ducttape_ has quit IRC22:09
*** ducttape_ has joined #murano22:10
*** cleong has quit IRC22:14
*** Pavo has joined #murano22:15
*** ducttape_ has quit IRC22:15
*** sergmelikyan has quit IRC22:27
*** sergmelikyan has joined #murano22:29
*** sergmelikyan has quit IRC22:30
*** sergmelikyan has joined #murano22:30
*** catintheroof has quit IRC22:35
jose-phillipsc22:38
*** Pavo has quit IRC22:39
*** ducttape_ has joined #murano22:47
openstackgerritFelipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi.  https://review.openstack.org/42786122:48
*** ducttape_ has quit IRC22:49
*** _ducttape_ has joined #murano22:49
*** _ducttape_ has quit IRC22:53
*** felipemonteiro_ has quit IRC23:04
*** jperry has quit IRC23:09
*** yamamoto has joined #murano23:24
*** ducttape_ has joined #murano23:51
*** sergmelikyan has quit IRC23:56
*** sergmelikyan has joined #murano23:56

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