Comment 7 for bug 1963119

Revision history for this message
Martin Kopec (mkopec) wrote :

The tests was added by https://review.opendev.org/c/openstack/tempest/+/327191
Having no resources (including networks) is crucial for the test of the auto-allocate feature - as we test whether a network will be automatically created in case there is none in the current tenant.

In think that that's the reason (a guarantee there are no resources created) why the test uses dynamic credentials no matter what.

The big question here is whether is possible to use preprovisioned credentials with the 2 tests - well, we can simply set force_tenant_isolation = False and preprov creds would be used, however, that's not all - we would also need to edit tempest/cmd/account_generator.py so that it doesn't create networks for all generated accounts (which seems is the default now). Then we would end up with more complex accounts.yaml file (with and without networks) so we would need to implement further logic so that tests can pick accounts with or without networks. As I'm thinking about it, the solution becomes more and more complex until a point I'm thinking whether it's worth it.