<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello everyone,</div><div><br></div><div>I was just curious about writing RBAC tests, hence while writing them I came across certain analysis and confusions.</div><div><br></div><div>Analysis:-</div><div><br></div><div>Whenever an api is called within patrole for its testing, it's the call to its respective service client. Like, let's say we need to test 'create_network:is_default', naturally for expected result we need to call the api first, which would be a call to neutron client's <span id="m_2231533235606201721goog_1235444460"></span>create_network<span id="m_2231533235606201721goog_1235444461">[1]</span>.</div><div><br></div><div>Question:-<br></div><div><br></div><div>But which api's to call for logging resource[2]?For example, let's say we need to write a RBAC test for Create log.<br></div><div>As far as I know, Openstack uses python's default logging extension. So the question is which api's to call for the expected result.<br></div><div><br></div><div>In Patrole, there are no assertions with expected and actual data. So, How do RBAC-tests test the api?</div><div><br></div><div>Any help with these confusions would be greatly appreciated. <br></div><div></div><div><br></div><div>[1] <a href="https://review.opendev.org/c/openstack/patrole/+/583340/4/patrole_tempest_plugin/tests/api/network/test_networks_rbac.py#100" target="_blank">https://review.opendev.org/c/openstack/patrole/+/583340/4/patrole_tempest_plugin/tests/api/network/test_networks_rbac.py#100</a></div><div>[2] <a href="https://docs.openstack.org/api-ref/network/v2/?expanded=#log-resource" target="_blank">https://docs.openstack.org/api-ref/network/v2/?expanded=#log-resource</a></div><div><br></div><div>Thanks and Regards,</div><div><div>Soniya Vyas</div></div></div>
</div></div>