Monday, 2023-03-13

*** mhen_ is now known as mhen02:35
opendevreviewMilana Levy proposed openstack/barbican-tempest-plugin master: Introduce a new test for secondary encrypted volume  https://review.opendev.org/c/openstack/barbican-tempest-plugin/+/87619113:39
*** d34dh0r5- is now known as d34dh0r5313:45
avanzaghiHello everyone, I'm Axel Vanzaghi from OVHcloud, I'm trying to find a way to generate a fake python barbicanclient Client for test purpose (for Mistral test suite) which won't actually try to make the call to the endpoint, any way to do so ?14:26
dmendiza[m]Hi avanzaghi !  AFAIK we don't have a fake python-barbicanclient implementation.  If you wanted to do that you'd need to re-implement the API, which is quite a bit of work.15:24
dmendiza[m]Slightly less work would be to monkeypatch the requests library to return mocked responses that look like responses that the barbican API would reply with.15:28
avanzaghiThanks for your anwser. I dug a bit on this, there was no need for a fake client until 5.5.0 as it did not make request until this version. The commit responsible for this behavior now is the one introducing getting normalized micro version in v1/client.py (id 35599e2b98d5c4e94d75ea41bae56a3d8b52108c), with the function _get_max_supported_version16:00
avanzaghiso I'll try to mock that function. Anyway, thank you for your time and answer :)16:00

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!