lp:~yamahata/glance/lp802883

Created by Isaku Yamahata and last modified
Get this branch:
bzr branch lp:~yamahata/glance/lp802883
Only Isaku Yamahata can upload to this branch. If you are Isaku Yamahata please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Isaku Yamahata
Project:
Glance
Status:
Merged

Recent revisions

150. By Isaku Yamahata

merged glance trunk

149. By Isaku Yamahata

updated Authors

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.

144. By Brian Waldon

Explicitly set headers rather than add them

143. By Justin Shepherd

rewrite of test_get_head_simple_post from tests/functional/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.

141. By Brian Waldon

Fixes build failures due to webob upgrade. Updated pop-requires as well

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
This branch contains Public information 
Everyone can see this information.

Subscribers