Revision c2f6a275
b/kamaki/clients/image.py | ||
---|---|---|
111 | 111 |
for k, v in properties.items(): |
112 | 112 |
img_properties[k] = v |
113 | 113 |
self.register(img_name, location, params, img_properties) |
114 |
r.release() |
|
114 | 115 |
|
115 | 116 |
def list_members(self, image_id): |
116 | 117 |
path = path4url('images', image_id, 'members') |
b/kamaki/clients/tests.py | ||
---|---|---|
38 | 38 |
import os |
39 | 39 |
import sys |
40 | 40 |
|
41 |
from progress.bar import IncrementalBar |
|
41 |
try: |
|
42 |
from progress.bar import FillingCirclesBar as IncrementalBar |
|
43 |
except ImportError: |
|
44 |
print('No progress bars in testing!') |
|
45 |
pass |
|
42 | 46 |
|
43 | 47 |
from kamaki.clients import ClientError |
44 | 48 |
from kamaki.clients.pithos import PithosClient as pithos |
... | ... | |
49 | 53 |
|
50 | 54 |
TEST_ALL = False |
51 | 55 |
|
52 |
cnf = Config('/home/saxtouri/.kamakirc')
|
|
56 |
cnf = Config() |
|
53 | 57 |
global_username = cnf.get('global', 'account') |
54 | 58 |
token = cnf.get('global', 'token') |
55 | 59 |
|
... | ... | |
215 | 219 |
for img in self._imglist.values(): |
216 | 220 |
self.assertTrue(img != None) |
217 | 221 |
|
222 |
def test_reregister(self): |
|
223 |
"""Test reregister""" |
|
224 |
self._prepare_img() |
|
225 |
self.client.reregister(self.imglocation, |
|
226 |
properties=dict(my_property='some_value')) |
|
227 |
|
|
218 | 228 |
def test_set_members(self): |
219 | 229 |
"""Test set_members""" |
220 | 230 |
self._prepare_img() |
Also available in: Unified diff