[openstack-dev] [qa] [tempest] [patrole] Service client duplication between Tempest and Tempest plugins
MONTEIRO, FELIPE C
fm577c at att.com
Mon Jul 23 19:22:47 UTC 2018
** Intention **
Intention is to expand Patrole testing to some service clients that already exist in some Tempest plugins, for core services only.
** Background **
Digging through Neutron testing, it seems like there is currently a lot of test duplication between neutron-tempest-plugin and Tempest . Under some circumstances it seems OK to have redundant testing/parallel testing: "Having potential duplication between testing is not a big deal especially compared to the alternative of removing something which is actually providing value and is actively catching bugs, or blocking incorrect patches from landing" .
This leads me to the following question: If API test duplication is OK, what about service client duplication? Patches like  and  promote service client duplication with neutron-tempest-plugin. As far as I can tell, Neutron builds out some of its service clients dynamically here: . Which includes segments service client (proposed as an addition to tempest.lib in ) here: .
This leads to a situation where if we want to offer RBAC testing for these APIs (to validate their policy enforcement), we can't really do so without adding the service client to Tempest, unless we rely on the neutron-tempest-plugin (for example) in Patrole's .zuul.yaml.
** Path Forward **
Option #1: For the core services, most service clients should live in tempest.lib for standardization/governance around documentation and stability for those clients. Service client duplication should try to be minimized as much as possible. API testing related to some service clients, though, should remain in the Tempest plugins.
Option #2: Proceed with service client duplication, either by adding the service client to Tempest (or as yet another alternative, Patrole). This leads to maintenance overhead: have to maintain service clients in the plugins and Tempest itself.
Option #3: Don't offer RBAC testing in Patrole plugin for those APIs.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev