Smarter way of dealing with SQL backends in tests

Bug #1545779 reported by Jedrzej Nowak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solar
Fix Released
Undecided
Jedrzej Nowak

Bug Description

Currently for each test we create separate buckets (which are translated to tables in SQL backends).

PostgreSQL starts to be slow when there are a lot of tables. We should probably drop these tables after successful test.

Revision history for this message
Jedrzej Nowak (jnowak) wrote :
Changed in solar:
milestone: none → 0.3.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to solar (master)

Fix proposed to branch: master
Review: https://review.openstack.org/281784

Changed in solar:
assignee: nobody → Jedrzej Nowak (jnowak)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to solar (master)

Reviewed: https://review.openstack.org/281784
Committed: https://git.openstack.org/cgit/openstack/solar/commit/?id=ab96973ea947ea6b854d7904af646765c0c5825e
Submitter: Jenkins
Branch: master

commit ab96973ea947ea6b854d7904af646765c0c5825e
Author: Jedrzej Nowak <email address hidden>
Date: Thu Feb 18 12:27:31 2016 +0100

    Rework conftests + sql tables are cleared on success

    - Moved common parts to main conftest.py
    - Added one hacky fixture that reports test result
    - SQL tables are now cleared after test method succeeds

    Closes-bug: #1545779
    Closes-bug: #1546983

    Change-Id: If2d97c58d838062d3a579dc83014bc0645786da7

Changed in solar:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.