*** rcernin has quit IRC | 03:10 | |
*** anilvenkata has joined #openstack-rally | 03:10 | |
*** rcernin has joined #openstack-rally | 03:25 | |
*** Anticimex has quit IRC | 05:10 | |
*** Anticimex has joined #openstack-rally | 05:15 | |
*** nikparasyr has joined #openstack-rally | 06:19 | |
*** tosky has joined #openstack-rally | 07:30 | |
*** threestrands has quit IRC | 07:56 | |
openstackgerrit | Andrey Kurilin proposed openstack/rally master: Improve rally-docker jobs to be usefull for rally-openstack https://review.opendev.org/720474 | 08:32 |
---|---|---|
openstackgerrit | Andrey Kurilin proposed openstack/rally-openstack master: Add regular pushes to dockerhub https://review.opendev.org/720199 | 09:15 |
marosg | andreykurilin: you were right about network_id, I made copy/paste mistake. thanks | 09:26 |
openstackgerrit | Merged openstack/rally master: Improve rally-docker jobs to be usefull for rally-openstack https://review.opendev.org/720474 | 09:26 |
andreykurilin | nice | 09:26 |
*** anilvenkata has quit IRC | 10:06 | |
*** anilvenkata has joined #openstack-rally | 10:08 | |
*** nikparasyr has quit IRC | 11:35 | |
*** nikparasyr has joined #openstack-rally | 11:41 | |
*** rcernin has quit IRC | 12:11 | |
openstackgerrit | Andrey Kurilin proposed openstack/rally-openstack master: Add regular pushes to dockerhub https://review.opendev.org/720199 | 12:36 |
marosg | hello andreykurilin I would like to make sanity checks for parameters. context now requires new dict and using json schema I cna make sure that if this dict is specified then there is a mandatory key in that dict | 12:57 |
marosg | but, how could I check in scenario that this specific key is provided? | 12:58 |
andreykurilin | `if "super-new-key" in self.config` | 12:58 |
marosg | sorry, I meant using decorators, not in code | 12:59 |
andreykurilin | what do you mean? | 12:59 |
andreykurilin | can you elaborate? | 13:00 |
*** anilvenkata has quit IRC | 13:12 | |
marosg | andreykurilin: https://paste.ubuntu.com/p/TSHTztzbj5/ | 13:24 |
marosg | in scenario I can set validation that zone context is there | 13:24 |
marosg | but I would like also a check that test_existing_designate_from_VM was specified | 13:25 |
marosg | I know I can do if-then test in my code | 13:25 |
marosg | but was wondering if i can use decorator | 13:26 |
andreykurilin | so you want to add validation to a scenario that it should work only if the context is configured with this key, right? | 13:27 |
marosg | correct | 13:28 |
andreykurilin | ok | 13:28 |
andreykurilin | marosg: you need to implement a custom validation plugin for that. take a look at - https://github.com/openstack/rally/blob/master/rally/plugins/common/validators.py#L305 | 13:30 |
andreykurilin | https://github.com/openstack/rally/blob/master/rally/plugins/common/validators.py#L331 <-this dict contains a configuration of contexts | 13:31 |
andreykurilin | after you implement a new plugin, you will able to use decorator to scenario like @validation.add("name-of-my-new-validator") | 13:31 |
marosg | I hoped there was something I could already use :) | 13:34 |
andreykurilin | unfortunately no | 13:34 |
marosg | I checked validators.py and saw many promising, but they check 'args' section of config | 13:34 |
*** mpjetta has quit IRC | 14:29 | |
*** anilvenkata has joined #openstack-rally | 15:16 | |
openstackgerrit | Merged openstack/rally-openstack master: Add regular pushes to dockerhub https://review.opendev.org/720199 | 16:06 |
*** nikparasyr has quit IRC | 17:18 | |
*** anilvenkata has quit IRC | 17:46 | |
*** tosky has quit IRC | 23:21 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!