Refactor identity v3 rbac_base to use classmethods.

Currently, identity v3 rbac_base uses self.addCleanup to do cleanup
for the resources it creates. But this locks the tests into using
only test-level resources. This is inefficient. Instead,
class-level resources should be used wherever possible.

This patch changes the identity v3 rbac_base to create class-level
resources, that are then set up in resource_setup and cleaned up
in resource_cleanup.

This patch also refactors test_roles_rbac in identity v3 to work
with these changes.

Change-Id: I80f56464a9391e0e41548b266e9b748bf961e1b6
2 files changed