lp:~jaypipes/glance/bug802883
- Get this branch:
- bzr branch lp:~jaypipes/glance/bug802883
Branch merges
- Devin Carlen (community): Approve
- Brian Waldon (community): Approve
-
Diff: 103 lines (+17/-10)6 files modifiedAuthors (+1/-0)
glance/registry/db/api.py (+1/-2)
glance/registry/db/models.py (+9/-0)
run_tests.py (+4/-2)
tests/functional/__init__.py (+1/-5)
tests/unit/test_config.py (+1/-1)
Recent revisions
- 151. By Jay Pipes
-
Reverts commit that did db migration during configure_db() and makes functional tests use in-memory database again. The issues we were seeing had to do with the timeout not being long enough when starting servers with disk-based registry databases and migrate taking too long when spinning up the registry server... this was shown in almost random failures of tests saying failure to start servers. Rather than increase the timeout from 3 seconds, I reverted the change that runs migrate on every startup and cut the total test duration down about 15 seconds.
- 148. By Isaku Yamahata
-
run_tests.py: make test runner accepts plugins
With this changeset, useful plugins are available
for unit test. Thus we can use debugger for unit tests with
say, --pdb, --pudb, ... - 147. By Isaku Yamahata
-
run_tests.py: make run_tests.py work.
Without this patch, the following exception occurs.
Traceback (most recent call last):
File "run_tests.py", line 280, in <module>
sys.exit(not core.run(config=c, testRunner=runner))
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 283, in run
return TestProgram(*arg, **kw).success
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 118, in __init__
**extra_args)
File "/usr/lib/python2. 6/unittest. py", line 817, in __init__
self.runTests()
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 197, in runTests
result = self.testRunner.run(self. test)
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 59, in run
result = self._makeResult()
File "run_tests.py", line 268, in _makeResult
self.config)
File "run_tests.py", line 183, in __init__
if colorizer.supported( ):
File "run_tests.py", line 92, in supported
curses.setupterm( ) - 146. By Isaku Yamahata
-
unit/test_
config. py: make it independent on sys.argv The first test in test_config.
TestConfig. test_parse_ options tests
no options are specified. But it checks sys.argv when default parameter
is used. So it fails when some parameter is passed to run_test.py.
So pass empty list to the parser as argument explicitly in order to
make it pass independent sys.argv. - 145. By Yuriy Taraday
-
Switch image_data to be a file-like object instead of bare string in image creating and updating
Without this Glance loads all image into memory, then copies it one time, then writes it to temp file, and only after all this copies image to target repository. - 143. By Justin Shepherd
-
rewrite of test_get_
head_simple_ post from tests/functiona l/test_ curl_api. py using httplib2. - 142. By Ewan Mellor
-
Bug #801703: No logging is configured for unit tests
Configure logging to go to stderr during the unit test run. This gets
captured by run_tests.sh into run_tests.err.log.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~hudson-openstack/glance/trunk