Moved all reencoding to compute manager to satisfy both Direct API and internal cloud call.

This commit is contained in:
Yuriy Taraday
2011-05-05 07:50:58 +04:00
parent 804cf9aec6
commit e45823d51b

View File

@@ -290,8 +290,7 @@ class CloudTestCase(test.TestCase):
instance_id = rv['instancesSet'][0]['instanceId']
output = self.cloud.get_console_output(context=self.context,
instance_id=[instance_id])
self.assertEquals(b64decode(output['output']).decode('utf-8'),
u'FAKE CONSOLE\ufffdOUTPUT')
self.assertEquals(b64decode(output['output']), 'FAKE CONSOLE?OUTPUT')
# TODO(soren): We need this until we can stop polling in the rpc code
# for unit tests.
greenthread.sleep(0.3)