*** ducttape_ has joined #murano | 00:01 | |
*** sergmelikyan has quit IRC | 00:02 | |
*** zhurong has joined #murano | 00:42 | |
*** zhurong has quit IRC | 00:44 | |
*** jose-phillips has quit IRC | 00:45 | |
*** Pavo has quit IRC | 00:54 | |
*** ducttape_ has quit IRC | 00:55 | |
*** ducttape_ has joined #murano | 01:06 | |
*** jperry has quit IRC | 01:07 | |
*** ducttape_ has quit IRC | 01:39 | |
*** ducttape_ has joined #murano | 01:54 | |
*** ducttape_ has quit IRC | 02:13 | |
*** ducttape_ has joined #murano | 02:20 | |
*** ducttape_ has quit IRC | 02:20 | |
*** ducttape_ has joined #murano | 02:20 | |
*** sergmelikyan has joined #murano | 02:52 | |
*** sergmelikyan has quit IRC | 02:57 | |
*** sergmelikyan has joined #murano | 03:23 | |
*** sergmelikyan has quit IRC | 03:28 | |
*** sergmelikyan has joined #murano | 03:55 | |
*** sergmelikyan has quit IRC | 03:59 | |
*** ducttape_ has quit IRC | 04:05 | |
*** sergmelikyan has joined #murano | 04:26 | |
*** ducttape_ has joined #murano | 04:28 | |
*** sergmelikyan has quit IRC | 04:31 | |
*** ducttape_ has quit IRC | 04:38 | |
*** ducttape_ has joined #murano | 04:47 | |
*** ducttape_ has quit IRC | 05:13 | |
*** sergmelikyan has joined #murano | 05:30 | |
*** sergmelikyan has quit IRC | 05:35 | |
*** Zer0Byte has joined #murano | 06:12 | |
*** Zer0Byte has quit IRC | 06:13 | |
*** sergmelikyan has joined #murano | 06:14 | |
*** sergmelikyan has quit IRC | 06:18 | |
*** ducttape_ has joined #murano | 06:27 | |
*** ducttape_ has quit IRC | 06:31 | |
*** sergmelikyan has joined #murano | 06:42 | |
*** sergmelikyan has quit IRC | 06:46 | |
*** yamamoto has quit IRC | 07:25 | |
*** ducttape_ has joined #murano | 07:57 | |
*** ducttape_ has quit IRC | 08:02 | |
*** sergmelikyan has joined #murano | 08:05 | |
*** sergmelikyan has quit IRC | 08:13 | |
*** Serlex has joined #murano | 08:43 | |
*** Serlex has quit IRC | 08:47 | |
*** Serlex has joined #murano | 09:02 | |
*** kzaitsev_mb has joined #murano | 09:19 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/murano-dashboard: Imported Translations from Zanata https://review.openstack.org/427599 | 09:22 |
---|---|---|
*** ducttape_ has joined #murano | 09:28 | |
*** ducttape_ has quit IRC | 09:32 | |
*** zhonghua has quit IRC | 09:36 | |
*** zhonghua has joined #murano | 09:36 | |
openstackgerrit | Merged openstack/murano-dashboard: Imported Translations from Zanata https://review.openstack.org/427599 | 10:21 |
*** kzaitsev_mb has quit IRC | 10:55 | |
*** ducttape_ has joined #murano | 10:58 | |
*** ducttape_ has quit IRC | 11:03 | |
*** kzaitsev_mb has joined #murano | 11:25 | |
*** kzaitsev_mb has quit IRC | 11:29 | |
*** kzaitsev_mb has joined #murano | 11:32 | |
*** kzaitsev_mb has quit IRC | 12:03 | |
*** kzaitsev_mb has joined #murano | 12:24 | |
*** catintheroof has joined #murano | 12:28 | |
*** ducttape_ has joined #murano | 12:29 | |
*** ducttape_ has quit IRC | 12:33 | |
*** kzaitsev_mb has quit IRC | 12:39 | |
*** kzaitsev_mb has joined #murano | 12:43 | |
*** ducttape_ has joined #murano | 12:57 | |
*** ducttape_ has quit IRC | 13:42 | |
*** sergmelikyan has joined #murano | 14:01 | |
*** ducttape_ has joined #murano | 14:09 | |
*** ducttape_ has quit IRC | 14:22 | |
*** ducttape_ has joined #murano | 14:22 | |
*** ducttape_ has quit IRC | 14:23 | |
*** ducttape_ has joined #murano | 14:28 | |
*** ducttape_ has quit IRC | 14:31 | |
*** cleong has joined #murano | 14:35 | |
*** sergmelikyan has quit IRC | 14:37 | |
*** felipemonteiro has joined #murano | 14:55 | |
*** sergmelikyan has joined #murano | 15:04 | |
*** jperry has joined #murano | 15:11 | |
*** felipemonteiro has quit IRC | 15:30 | |
*** falseprotagonist has joined #murano | 15:31 | |
*** felipemonteiro has joined #murano | 15:31 | |
*** ducttape_ has joined #murano | 15:34 | |
*** ducttape_ has quit IRC | 15:34 | |
*** ducttape_ has joined #murano | 15:35 | |
*** falseprotagonist has quit IRC | 15:37 | |
*** falseprotagonist has joined #murano | 15:37 | |
*** falseprotagonist has quit IRC | 15:37 | |
*** sergmelikyan has quit IRC | 15:59 | |
*** sergmelikyan has joined #murano | 16:00 | |
*** sergmelikyan has quit IRC | 16:05 | |
*** _ducttape_ has joined #murano | 16:09 | |
*** ducttape_ has quit IRC | 16:13 | |
*** learnmore has joined #murano | 16:51 | |
learnmore | Hello | 16:52 |
*** learnmore has quit IRC | 16:52 | |
*** kzaitsev_mb has quit IRC | 17:05 | |
*** sergmelikyan has joined #murano | 17:43 | |
*** _ducttape_ has quit IRC | 17:54 | |
*** ducttape_ has joined #murano | 17:54 | |
*** ducttape_ has quit IRC | 17:54 | |
*** ducttape_ has joined #murano | 17:55 | |
*** ducttape_ has quit IRC | 17:55 | |
*** ducttape_ has joined #murano | 17:56 | |
openstackgerrit | Felipe Monteiro proposed openstack/murano: Fixes various Cfapi bugs. https://review.openstack.org/427860 | 18:48 |
openstackgerrit | Felipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi. https://review.openstack.org/427861 | 18:49 |
openstackgerrit | Felipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi. https://review.openstack.org/427861 | 18:51 |
*** ducttape_ has quit IRC | 19:02 | |
*** ducttape_ has joined #murano | 19:03 | |
*** Serlex has left #murano | 19:12 | |
*** kzaitsev_mb has joined #murano | 19:56 | |
*** _ducttape_ has joined #murano | 20:58 | |
*** ducttape_ has quit IRC | 21:02 | |
*** jose-phillips has joined #murano | 21:05 | |
jose-phillips | Hey felipemonteiro are you there? | 21:05 |
openstackgerrit | Felipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi. https://review.openstack.org/427861 | 21:18 |
felipemonteiro | jose-phillips: Yes. | 21:18 |
jose-phillips | can you help me with something very quick | 21:18 |
felipemonteiro | Sure | 21:19 |
felipemonteiro | jose-phillips: What do you need help with? | 21:23 |
jose-phillips | ok im trying to mock | 21:23 |
jose-phillips | soirry i was on phone | 21:24 |
jose-phillips | im trying to mock the object heat_api.stack_get | 21:24 |
jose-phillips | but idk if im doing wrong | 21:24 |
jose-phillips | http://pastebin.com/v2zJVFpF | 21:25 |
jose-phillips | current_stack = heat_api.stack_get(request, stack.id) | 21:26 |
jose-phillips | if environment_id in current_stack.description: | 21:26 |
jose-phillips | and fail in current_stack.description because | 21:26 |
jose-phillips | AttributeError: 'tuple' object has no attribute 'description' | 21:26 |
felipemonteiro | jose-phillips: One second, my proxy blocks that link. Let me log into a different network, brb. | 21:29 |
jose-phillips | ok | 21:32 |
*** felipemonteiro_ has joined #murano | 21:33 | |
*** felipemonteiro has quit IRC | 21: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 IRC | 21:37 | |
*** catintheroof has quit IRC | 21:37 | |
jose-phillips | http://pastebin.com/5n5sF5ML | 21:37 |
*** ducttape_ has joined #murano | 21:37 | |
jose-phillips | that what im trying to do | 21:37 |
*** catintheroof has joined #murano | 21:37 | |
jose-phillips | ommit the import pdb | 21:37 |
jose-phillips | http://pastebin.com/H3mecazQ | 21:38 |
jose-phillips | this is the unit testing | 21: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-phillips | ok let m try | 21:45 |
jose-phillips | question felipemonteiro_ i put this on the side_effect? | 21:54 |
*** catintheroof has quit IRC | 21:57 | |
*** catintheroof has joined #murano | 21:58 | |
felipemonteiro_ | jose-phillips: http://pastebin.com/Z0CddcpG | 21: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-phillips | you are right | 22:03 |
jose-phillips | descripting i guess should be a string | 22:03 |
jose-phillips | description | 22:03 |
*** ducttape_ has quit IRC | 22:09 | |
*** ducttape_ has joined #murano | 22:10 | |
*** cleong has quit IRC | 22:14 | |
*** Pavo has joined #murano | 22:15 | |
*** ducttape_ has quit IRC | 22:15 | |
*** sergmelikyan has quit IRC | 22:27 | |
*** sergmelikyan has joined #murano | 22:29 | |
*** sergmelikyan has quit IRC | 22:30 | |
*** sergmelikyan has joined #murano | 22:30 | |
*** catintheroof has quit IRC | 22:35 | |
jose-phillips | c | 22:38 |
*** Pavo has quit IRC | 22:39 | |
*** ducttape_ has joined #murano | 22:47 | |
openstackgerrit | Felipe Monteiro proposed openstack/murano: Increase unit test coverage for Cfapi. https://review.openstack.org/427861 | 22:48 |
*** ducttape_ has quit IRC | 22:49 | |
*** _ducttape_ has joined #murano | 22:49 | |
*** _ducttape_ has quit IRC | 22:53 | |
*** felipemonteiro_ has quit IRC | 23:04 | |
*** jperry has quit IRC | 23:09 | |
*** yamamoto has joined #murano | 23:24 | |
*** ducttape_ has joined #murano | 23:51 | |
*** sergmelikyan has quit IRC | 23:56 | |
*** sergmelikyan has joined #murano | 23:56 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!