Tuesday, 2016-12-06

*** VW has joined #craton00:41
*** VW has quit IRC00:46
*** Syed__ has quit IRC01:18
*** valw_ has quit IRC01:25
*** valw has joined #craton01:26
*** Mudpuppy has quit IRC02:36
*** Mudpuppy has joined #craton02:37
*** Mudpuppy has quit IRC02:41
*** valw has quit IRC04:57
*** ahsa518 has joined #craton05:04
*** Syed__ has joined #craton05:13
*** VW has joined #craton05:27
*** VW has quit IRC05:32
*** Mudpuppy has joined #craton07:09
*** Mudpuppy has quit IRC07:14
*** ahsa518 has quit IRC07:15
*** klindgren has joined #craton07:34
*** klindgren_ has quit IRC07:34
*** klindgren_ has joined #craton07:45
*** klindgren has quit IRC07:46
*** Syed__ has quit IRC08:07
suloo/10:01
*** VW has joined #craton10:27
*** VW has quit IRC10:32
sigmavirusworkflows code name "hot taters"13:46
*** valw has joined #craton13:59
*** valw_ has joined #craton14:02
*** valw has quit IRC14:04
*** VW has joined #craton14:28
*** Syed__ has joined #craton15:14
*** VW_ has joined #craton15:19
*** VW_ has quit IRC15:20
*** VW_ has joined #craton15:20
*** VW_ has quit IRC15:20
*** VW_ has joined #craton15:21
*** VW has quit IRC15:21
*** Mudpuppy has joined #craton15:24
jimbakersigmavirus, don't forget about https://review.openstack.org/#/c/401438/ - just a small minor doc update and we can get that in15:26
*** jovon has joined #craton15:32
*** Mudpuppy_ has joined #craton15:50
sigmavirussorry, been distracted with other things (HAProxy/TLS nonsense)15:50
*** Mudpuppy has quit IRC15:53
*** VW has joined #craton15:59
*** VW has quit IRC15:59
*** VW__ has joined #craton15:59
*** VW_ has quit IRC16:02
*** valw_ is now known as valw16:50
*** Mudpuppy_ is now known as Mudpuppy16:50
jimbakerjovon, palendae, sigmavirus, sulo, Syed__, tojuvone - craton client/ecosystem meeting in 2 minutes on vidyo16:58
jimbakerwe also plan to discuss rbac, based on yesterday's irc meeting16:58
palendaeWill listen in16:59
palendaehttps://review.openstack.org/#/q/project:openstack/openstack-ansible+topic:%5Einventory.*+status:open17:07
palendaehttps://etherpad.openstack.org/p/craton_osa is the etherpad I remember17:11
sulook i guess .. vidyo does not like me today17:32
*** VW__ has quit IRC17:36
*** VW has joined #craton17:43
sigmavirussulo: no, it just likes your productivity today17:44
sigmavirus;P17:44
*** VW_ has joined #craton17:45
suloheh17:45
jimbakerhttp://docs.sqlalchemy.org/en/latest/orm/query.html#sqlalchemy.orm.query.Query.with_entities17:46
*** VW has quit IRC17:47
jimbakersulo, right, you got to miss me drone on about rbac and secret storage18:02
jimbakerso certainly a productivity boost :)18:02
sulo:( those are my favourite topics18:04
sulotojuvone: you should take https://bugs.launchpad.net/craton/+bug/1643356 from me18:13
openstackLaunchpad bug 1643356 in craton "API: inconsistent network endpoint names" [Low,Confirmed] - Assigned to Sulochan Acharya (sulochan-acharya)18:13
suloafk18:13
*** VW_ has quit IRC18:23
*** VW has joined #craton18:32
*** VW has quit IRC20:44
*** jovon has quit IRC20:48
*** VW has joined #craton20:53
*** david-lyle has quit IRC20:55
*** VW has quit IRC20:59
*** VW has joined #craton21:01
Syed__Hi21:05
Syed__i need some help with https://gist.github.com/ahsan518/16dabafe8677cf262eebd061066715d921:05
Syed__so its a basic test case for net devices, but i am running into an error stating no such thing as hostname, where as i edited fake_resources.py already21:06
Syed__jimbaker: sulo any thoughts would be appreciated21:06
git-harrySyed__: '/v1/netdevices?region_id=1' looks wrong if you're trying to get by ID.21:12
Syed__so i tried using /v1/netdevices/1 it gave me this error :21:13
Syed__https://www.irccloud.com/pastebin/DMZQOHsv/21:13
Syed__but i agree this should be simple /v1/netdevices/1 when i try to get that from region_id since the schema endpoints has already been updated21:14
Syed__so basically it says craton.api.v1.resources.inventory.networks: ERROR: Error during NetDeviceById.get: 'NetDevice' object has no attribute 'resolved'\21:14
git-harrySyed__: it looks like the fake object is missing a resolved attribute21:17
git-harrySyed__: https://github.com/openstack/craton/blob/master/craton/api/v1/resources/inventory/networks.py#L12421:18
jimbakeryeah, that would do it. real objects derived from Device will have this attribute21:22
jimbakerSyed__, are the actions of you unit tests working the same against an actual running instance? or different as hypothesized here21:23
Syed__i am totally lost by the last sentence :s i am sorry21:25
jimbakerSyed__, so one thing that's really important in unit testing - especially when mocks or other fake setups are involved - is to properly prepare the system under test such it is like a real system21:26
jimbakerto the extent being tested21:27
Syed__hmm ..21:27
Syed__but isn't the data being fetched is from fake_resources in this case21:27
jimbakerotherwise, the test can have no correlation whatsoever to what we think is being tested21:27
Syed__so however the data is in fake resources, it goes and compare to that ?21:27
jimbakerSyed__, i think what git-harry is suggesting - and i have not confirmed, just asking further - is that it appears the fake resource may not be setup properly21:28
Syed__hmm ...21:28
jimbakerone simple smoke test you can just try is to simply test the system from the rest api21:28
Syed__let me look into it21:28
jimbakeras if you were running the same sequence of actions against it as the unit test21:28
jimbakerone would hope for being the same21:28
jimbakerhowever... not always the case!21:28
jimbakerso when i'm testing things... i try it out several different ways. in fact, that's how i develop, because i usually do my early code in the python console, then extract to a test script, then to actual classes with tests, ...21:30
jimbakerso at each step, i probably have a good idea of what is working, and why not. otherwise, it's easy to develop a component that actually does nothing that we expect it to do :)21:31
jimbakeranyway, there are several approaches. but the key thing is to treat tests as just one more part of what you're doing to verify things - each test only tells you a little bit. but collectively, if independent, you can build up confidence in the overall system21:32
jimbakerconsider it some guiding philosophy :)21:32
jimbakerbiab21:33
*** VW has quit IRC21:43
*** VW has joined #craton21:46
*** jovon has joined #craton22:13
*** mdorman_ has quit IRC22:23
*** mdorman has joined #craton22:23
*** david-lyle has joined #craton22:24
*** VW_ has joined #craton22:28
*** VW has quit IRC22:32
*** VW_ has quit IRC22:32
*** david-lyle has quit IRC22:41
*** harlowja has quit IRC22:43
*** harlowja has joined #craton22:43
*** VW has joined #craton22:59
*** VW has quit IRC23:02
*** VW has joined #craton23:02
*** VW has quit IRC23:28

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