unit tests heavy on disk IO
Bug #843062 reported by
klmitch
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Dolph Mathews |
Bug Description
When I run unit tests, I see a very large amount of disk IO. I moved the test databases to a tmpfs directory, which eliminated the disk IO and gave a 2-3x speedup in the unit tests.
Unit tests should run against an in-memory database. This will probably be incompatible with the sampledata method of populating a test database.
Changed in keystone: | |
assignee: | nobody → Dolph Mathews (dolph) |
status: | Confirmed → In Progress |
Changed in keystone: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
You're right, an in memory database will be created and destroyed on every line of sampledata.sh - rendering it useless.
I'd like to replace server start/stop and bootstrap.sh with an approach that can be utilized by setUp & tearDown for keystone. test.system, which would make an in-memory database (e.g. sqlite://:memory:) VERY desirable.