Bug 1051327 - [RFE][keystone]: Move functional tests into their own repository
Summary: [RFE][keystone]: Move functional tests into their own repository
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/keys...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-10 05:05 UTC by RHOS Integration
Modified: 2015-03-19 17:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:37:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description RHOS Integration 2014-01-10 05:05:41 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/keystone/+spec/keystone-testing-repo.

Description:

Keystone is kindof unique amongst open stack in that it has no other Open Stack service dependencies.  Tie means that it is really easy for us to change something that breaks the rest of Open Stack.  And thus, we are paranoid.

One side effect of that paranoia is that many of our "Unit tests" are really functional tests.  For example, then entir v3 API requires spinning up a Keystone server and making an HTTP call.  This is really a functional test, not a unit test.

Running the tests inside of Keystone takes a long time....too long.  Unit tests are a key component of development, and need to be run constantly.  If we make tyhe unit tests too slow, we slow down development.

I'd like to split off the functional tests from the unit tests.  Now, in the past we had suggested moving these to  Tempest, but I think that puts the burden of review on people that do not understand Keystone concepts as well as the core team.    While we can certainly make use of the Tempest infrastructure, I think the right place for the Keystone functional tests is a repo managed by the Keystone team, but not in either the Keystone nor the Keystone client repositories.  This repository would be responsible for any tests that:

Make a web call
Use any version of the Keystone client to talk to Keystone
Require diffferent "real backends" to run tests (LDAP, PostgreSQL, MySQL, Cassandra)

The existing Keystone server repositority would maintain a set of unit tests that exercise the backends against in memory KVS.,FakeLDAP and SQLite (or the MySQL based replacement for in memory SQL).  These tests could be called from the keystone-testing repository with the alternative backends.

Changes to Keystone and Keystone client would both gate on the keystone-testing repository.







Specification URL (additional information):

None


Note You need to log in before you can comment on or make changes to this bug.